/* BayPIGgies modern look. Loaded after style.css; remove its <link> to revert.
   Palette taken from content/images/baypiggies_logo.svg */
:root {
  --bp-blue-light: #5A9FD4;
  --bp-blue: #306998;
  --bp-blue-dark: #234e73;
  --bp-yellow: #FFD43B;
  --bp-yellow-light: #FFE873;
  --bp-ink: #1f2933;
  --bp-muted: #52606d;
  --bp-bg: #f4f7fa;
  --bp-card: #ffffff;
  --bp-line: #e1e8ef;
  --bp-radius: 12px;
  --bp-shadow: 0 1px 2px rgba(31,41,51,.06), 0 4px 14px rgba(31,41,51,.06);
}

/* ---------- base ---------- */
body {
  background: var(--bp-bg);
  color: var(--bp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--bp-blue-dark);
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
a, a:hover { text-decoration: none; }
a { color: var(--bp-blue); }
a:hover, a:focus { color: var(--bp-blue-dark); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--bp-yellow); outline-offset: 2px; }
hr { border-top: 1px solid var(--bp-line); }

/* ---------- navbar ----------
   White bar; the 4px rule underneath is split blue | yellow, echoing the two
   interlocking snakes in the logo, so the logo reads clearly against white. */
.navbar-fixed-top {
  background: #fff;
  border: 0;
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, var(--bp-blue) 50%, var(--bp-yellow) 50%) 1;
  box-shadow: 0 6px 18px rgba(31,41,51,.08);
  margin-bottom: 0;
  min-height: 68px;
}
.navbar-default .navbar-brand {
  color: var(--bp-blue-dark);
  font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  height: 68px; padding: 12px 15px; line-height: 44px;
}
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: var(--bp-blue); text-decoration: none; }
.navbar-brand img { height: 44px; width: auto; margin: 0 4px 0 0; }
.navbar-default .navbar-nav > li > a {
  color: var(--bp-ink);
  font-size: 15px; font-weight: 600;
  padding: 24px 14px 21px;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--bp-blue); background: transparent; border-bottom-color: var(--bp-blue-light); text-decoration: none;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--bp-blue-dark); background: transparent; border-bottom-color: var(--bp-yellow);
}
.navbar-default .navbar-nav > li > a.nav-cta {
  background: var(--bp-yellow); color: var(--bp-ink);
  border: 0; border-radius: 999px;
  margin: 16px 0 0 10px; padding: 9px 20px; line-height: 20px;
  box-shadow: 0 1px 0 rgba(31,41,51,.18);
  transition: background .15s, transform .1s;
}
.navbar-default .navbar-nav > li > a.nav-cta:hover,
.navbar-default .navbar-nav > li > a.nav-cta:focus { background: var(--bp-yellow-light); color: var(--bp-ink); transform: translateY(-1px); }
.navbar-default .navbar-toggle { border-color: var(--bp-blue); margin-top: 17px; }
.navbar-default .navbar-toggle .icon-bar { background: var(--bp-blue); }
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { background: rgba(48,105,152,.1); }
.navbar-default .navbar-collapse { border-color: var(--bp-line); }
/* medium widths: tighten so the menu stays on one row, drop the button
   (Meetup is also in the sidebar) */
@media (min-width: 768px) and (max-width: 1199px) {
  .navbar-default .navbar-nav > li > a { padding-left: 9px; padding-right: 9px; font-size: 14px; }
  .navbar-default .navbar-brand { font-size: 18px; }
  .navbar-nav > .nav-cta-item { display: none; }
}

/* ---------- cards ---------- */
.entry-content, article, .page-header + .entry-content { }
article, #sidebar .list-group-item, .entry-content > .panel {
  border-radius: var(--bp-radius);
}
.col-sm-9 > article,
.col-sm-9 > .entry-content,
.col-sm-9 > header.page-header + .entry-content,
.col-lg-12 > article {
  background: var(--bp-card);
  border: 1px solid var(--bp-line);
  box-shadow: var(--bp-shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
article > hr, .col-sm-9 > hr { display: none; }
.page-header { border-bottom: 3px solid var(--bp-yellow); margin: 0 0 1.25rem; padding-bottom: .5rem; }
.entry-content .panel { box-shadow: none; border: 0; background: transparent; }
.entry-content .panel-body { padding: 0; }
.entry-content { max-width: 100%; }
.entry-content p, .entry-content li { max-width: 75ch; }
.entry-content h1, .entry-content h2 { margin-top: 1.6em; }
.summary { color: var(--bp-muted); }

/* ---------- sidebar ---------- */
#sidebar .list-group { border-radius: var(--bp-radius); }
#sidebar > aside > .list-group,
#sidebar > aside > ul.list-group { background: transparent; }
#sidebar > aside > .list-group > .list-group-item {
  background: var(--bp-card);
  border: 1px solid var(--bp-line);
  box-shadow: var(--bp-shadow);
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}
#sidebar h4 {
  font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bp-blue);
  padding-bottom: .4rem; border-bottom: 2px solid var(--bp-yellow); display: inline-block;
}
#sidebar a { color: var(--bp-blue); }
#sidebar .list-group-item .list-group-item { background: transparent; padding: .25rem 0; }
#sidebar #social i { color: var(--bp-blue); width: 1.4em; text-align: center; }
#sidebar #social a:hover i { color: var(--bp-blue-dark); }

/* ---------- buttons, labels, tags ---------- */
.btn { border-radius: 999px; font-weight: 600; transition: transform .1s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-default {
  background: var(--bp-yellow); border-color: var(--bp-yellow); color: var(--bp-ink);
}
.btn-default:hover, .btn-default:focus { background: var(--bp-yellow-light); border-color: var(--bp-yellow-light); color: var(--bp-ink); }
.btn-primary { background: var(--bp-blue); border-color: var(--bp-blue); }
.btn-primary:hover { background: var(--bp-blue-dark); border-color: var(--bp-blue-dark); }
.label, .tag, .tagcloud a { border-radius: 999px; }
.label-default { background: var(--bp-blue-light); }
.well { background: #eef4f9; border: 0; border-radius: var(--bp-radius); box-shadow: none; }

/* ---------- content ---------- */
blockquote { border-left: 4px solid var(--bp-yellow); background: #fffbe6; padding: .75rem 1.25rem; border-radius: 0 var(--bp-radius) var(--bp-radius) 0; font-size: 1em; }
pre, .highlight pre, .highlighttable { border-radius: 10px; }
pre { background: #1e2a38; color: #e6edf3; border: 0; }
code { color: var(--bp-blue-dark); background: #e8f0f7; border-radius: 6px; }
pre code { color: inherit; background: transparent; }
table { background: var(--bp-card); }
.table > thead > tr > th { border-bottom: 2px solid var(--bp-blue); color: var(--bp-blue-dark); }
.table-striped > tbody > tr:nth-of-type(odd) { background: #f1f6fa; }
.breadcrumb { background: transparent; padding-left: 0; }
.pagination > li > a, .pager li > a { border-radius: 999px; color: var(--bp-blue); }
.pagination > .active > a { background: var(--bp-blue); border-color: var(--bp-blue); }
.entry-content img { border-radius: 8px; }

/* ---------- footer ---------- */
footer, #footer, .footer {
  background: var(--bp-blue-dark); color: #dbe7f3; margin-top: 2.5rem; padding: 1.5rem 0;
  border-top: 4px solid var(--bp-yellow);
}
footer a, #footer a, .footer a { color: var(--bp-yellow-light); }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .col-sm-9 > article, .col-sm-9 > .entry-content, .col-lg-12 > article { padding: 1.1rem; }
  .navbar-default .navbar-nav > li > a { padding: 12px 15px; border-bottom: 0; border-left: 4px solid transparent; }
  .navbar-default .navbar-nav > li > a:hover { border-left-color: var(--bp-blue-light); }
  .navbar-default .navbar-nav > .active > a { border-left-color: var(--bp-yellow); }
  .navbar-default .navbar-nav > li > a.nav-cta { margin: 8px 15px 12px; text-align: center; display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- FA6 brand icons (Discord, Meetup) next to FA 4.7 ----------
   Only the FA6 brands font is pulled from the CDN and just two glyphs are
   defined here. Loading FA6's own CSS would remap FA 4.7 icon names such as
   fa-youtube-square. */
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/webfonts/fa-brands-400.woff2") format("woff2");
}
.fa-brands {
  font-family: "Font Awesome 6 Brands";
  font-style: normal; font-weight: 400;
  display: inline-block; line-height: 1; text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.fa-brands.fa-lg { font-size: 1.3333em; line-height: .75em; vertical-align: -15%; }
.fa-brands.fa-discord:before { content: "\f392"; }
.fa-brands.fa-meetup:before { content: "\f2e0"; }
