/* boardhoard.org - plain 1990s style: browser default fonts, white background, black text */

*,
*::before,
*::after {
 box-sizing: inherit;
}

body {
 display: block;
 margin: 8px;
 background-color: #ffffff;
 color: #000000;
}

header {
 text-align: center;
 align-items: center;
}

/* the site title links home but looks like a heading */
h1 a,
h1 a:visited {
 color: inherit;
 text-decoration: none;
}

img {
 max-width: 100%;
 display: block;
}

/* no border or outline on image links (keyboard users still get a focus ring) */
a img {
 border: 0;
}
a:focus:not(:focus-visible) {
 outline: none;
}

nav {
 margin-bottom: 16px;
}

footer {
 text-align: center;
}

/* ---- the boards (thumbnail nav) ---- */
#board-nav p {
 margin: 0;
}

.board-nav-container {
 box-sizing: border-box;
 max-width: 1200px;
 margin: 0 auto;
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
 grid-gap: 8px;
 margin-bottom: 8px;
 place-items: center;
}

.board-nav-thumbnail img {
 width: 64px;
 height: auto;
}

#links-to-board-types p {
 margin: 4px 0;
}

/* ---- brief board list ---- */
.board-list-brief-container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0px;
}

.latest-updates-container,
.not-found-container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0px;
}

.board-list-brief-container > h2 {
 margin-top: 0;
}

.board-list-brief-row {
 display: grid;
 grid-template-columns: 300px 1fr;
 column-gap: 16px;
 margin-bottom: 16px;
}

.board-list-brief-thumbnail img {
 width: 100%;
 height: auto;
}

.board-list-brief-text h4 {
 margin: 0;
}

.board-list-brief-text p {
 margin: 0;
}

.board-list-brief-text ul {
 margin: 4px 0 0 0;
 padding-left: 24px;
}

/* phones: smaller photo so the text still fits beside it */
@media (max-width: 600px) {
 .board-list-brief-row {
  grid-template-columns: 120px 1fr;
  column-gap: 8px;
 }
 .board-list-brief-text ul {
  padding-left: 16px;
 }
}

/* ---- single board page ---- */
/* text is centered and at most 1200px wide, like the brief list; the photos below stay full width */
.board-full-info-container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0px;
}

/* long product addresses wrap instead of widening the page on phones */
#board-list-full-info a,
.board-list-brief-container a {
 overflow-wrap: anywhere;
}

#board-list-full-info img {
 width: 100%;
 height: auto;
}

/* "1200w | 1920w | original" links under each photo */
.image-size-links {
 text-align: center;
 margin: 4px 0 16px 0;
}
