/* ==========================================================================
Custom Styling for Inside Insight Blog - Max Leong, Trent Steenholdt
========================================================================== */

/* ==========================================================================
CSS Variables
========================================================================== */
:root {
  /* Colors */
  --insight-purple: #B01C87;
  --insight-purple-dark: #582873;
  --insight-purple-hover: #D40E8C;
  --insight-dark-grey: #3A3939;
  --insight-grey: #e0e0e0;
  --light-grey: #E5F6FF;
  --very-light-grey: #f5f5f5;
  --headings: #3A3939;
  --body: #3A3939;
  --danger: #dc3545;
  --warning: #ffc107;
  --success: #198754;

  --blue: #0d6efd;
  --indigo: #6610f2;
  --purple: #6f42c1;
  --pink: #d63384;
  --red: #dc3545;
  --orange: #fd7e14;
  --yellow: #ffc107;
  --green: #198754;
  --teal: #20c997;
  --cyan: #0dcaf0;
  --white: #ffffff;
  --black: #000000;

  /* Social colors */
  --twitter: #000000;
  --github: #24292e;
  --rss: #b9501f;

  /* Gradients */
  --insight-gradient: linear-gradient(to right,
      #D30C55 0%,
      #B01C87 50%,
      #582873 100%);

  /* Typography */
  --h1: 2.5rem;
  --h2: 2rem;
  --h3: 1.75rem;
  --h4: 1.5rem;
  --h5: 1.25rem;
  --h6: 1rem;
  --p: 1rem;
}

/* ==========================================================================
Dark Theme Variables
========================================================================== */
[data-bs-theme="dark"] {
  /* Dark mode colors */
  --insight-dark-grey: #e0e0e0;
  --insight-grey: #444444;
  --light-grey: #2a2a2a;
  --very-light-grey: #333333;
  --headings: #e0e0e0;
  --body: #d0d0d0;
  --white: #1a1a1a;
  --black: #ffffff;

  /* Social colors for dark mode */
  --twitter: #1da1f2;
  --github: #ffffff;

  /* Keep the same gradient for consistency */
  --insight-gradient: linear-gradient(to right,
      #D30C55 0%,
      #B01C87 50%,
      #582873 100%);
}

/* Dark theme body */
[data-bs-theme="dark"] body {
  background-color: #1a1a1a !important;
  color: #d0d0d0;
}

/* Dark theme header - keep white background for logo visibility */
[data-bs-theme="dark"] header {
  background-color: #ffffff !important;
  border-bottom-color: #e0e0e0 !important;
}

/* Follow buttons - maintain consistent styling across both themes */
header .btn-dark,
[data-bs-theme="dark"] header .btn-dark {
  background-color: #24292e !important;
  border-color: #24292e !important;
  color: #ffffff !important;
}

header .btn-dark:hover,
[data-bs-theme="dark"] header .btn-dark:hover {
  background-color: #3a3a3a !important;
  border-color: #3a3a3a !important;
  color: #ffffff !important;
}

header .btn-outline-dark,
[data-bs-theme="dark"] header .btn-outline-dark {
  color: #24292e !important;
  border-color: #24292e !important;
  background-color: transparent !important;
}

header .btn-outline-dark:hover,
[data-bs-theme="dark"] header .btn-outline-dark:hover {
  background-color: #24292e !important;
  border-color: #24292e !important;
  color: #ffffff !important;
}

header .btn-linkedin,
[data-bs-theme="dark"] header .btn-linkedin,
.btn-linkedin {
  background-color: #0a66c2 !important;
  border-color: #0a66c2 !important;
  color: #ffffff !important;
}

header .btn-linkedin:hover,
[data-bs-theme="dark"] header .btn-linkedin:hover,
.btn-linkedin:hover {
  background-color: #0958a5 !important;
  border-color: #0958a5 !important;
  color: #ffffff !important;
}

.btn-linkedin i {
  color: #ffffff !important;
}

header .btn-github,
[data-bs-theme="dark"] header .btn-github {
  background-color: #24292e !important;
  border-color: #24292e !important;
  color: #ffffff !important;
}

header .btn-github:hover,
[data-bs-theme="dark"] header .btn-github:hover {
  background-color: #3a3a3a !important;
  border-color: #3a3a3a !important;
  color: #ffffff !important;
}

header .btn-rss,
[data-bs-theme="dark"] header .btn-rss {
  background-color: #ff6600 !important;
  border-color: #ff6600 !important;
  color: #ffffff !important;
}

header .btn-rss:hover,
[data-bs-theme="dark"] header .btn-rss:hover {
  background-color: #ff8533 !important;
  border-color: #ff8533 !important;
  color: #ffffff !important;
}

/* Dark theme backgrounds - cards and other white elements stay dark */
[data-bs-theme="dark"] .card.bg-white {
  background-color: #2a2a2a !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: #1a1a1a !important;
}

/* Dark theme cards */
[data-bs-theme="dark"] .card {
  background-color: #2a2a2a;
  border-color: #444444;
  color: #d0d0d0;
}

[data-bs-theme="dark"] .card-body {
  color: #d0d0d0;
}

[data-bs-theme="dark"] .card-title {
  color: #e0e0e0;
}

/* Dark theme links */
[data-bs-theme="dark"] a {
  color: #66b3ff;
}

[data-bs-theme="dark"] a:hover {
  color: #99ccff;
}


[data-bs-theme="dark"] .btn-insight-purple-dark {
  background-color: #8b4f8a;
  border-color: #8b4f8a;
  color: #ffffff;
}

[data-bs-theme="dark"] .btn-insight-purple-dark:hover {
  background-color: #a366a2;
  border-color: #a366a2;
  color: #ffffff;
}

[data-bs-theme="dark"] .btn-insight-purple {
  background-color: #c94a9c;
  border-color: #c94a9c;
  color: #ffffff;
}

[data-bs-theme="dark"] .btn-insight-purple:hover {
  background-color: #d665af;
  border-color: #d665af;
  color: #ffffff;
}

/* Dark theme footer */
[data-bs-theme="dark"] footer {
  background-color: #0f0f0f !important;
  color: #d0d0d0;
}

[data-bs-theme="dark"] footer a {
  color: #66b3ff;
}

[data-bs-theme="dark"] footer a:hover {
  color: #99ccff;
}

/* Dark theme code blocks */
[data-bs-theme="dark"] code {
  background-color: #2a2a2a;
  color: #d0d0d0;
}

[data-bs-theme="dark"] pre {
  background-color: #2a2a2a;
  color: #d0d0d0;
}

/* Dark theme syntax highlighting */
[data-bs-theme="dark"] .highlight {
  background-color: #1e1e1e !important;
}

[data-bs-theme="dark"] .highlight pre {
  background-color: #1e1e1e;
  color: #d4d4d4;
}

/* Dark theme syntax highlighting colors */
[data-bs-theme="dark"] .highlight .c,
[data-bs-theme="dark"] .highlight .cd,
[data-bs-theme="dark"] .highlight .cm,
[data-bs-theme="dark"] .highlight .c1,
[data-bs-theme="dark"] .highlight .cs {
  color: #6a9955;
}

[data-bs-theme="dark"] .highlight .k,
[data-bs-theme="dark"] .highlight .kc,
[data-bs-theme="dark"] .highlight .kd,
[data-bs-theme="dark"] .highlight .kn,
[data-bs-theme="dark"] .highlight .kp,
[data-bs-theme="dark"] .highlight .kr,
[data-bs-theme="dark"] .highlight .kv,
[data-bs-theme="dark"] .highlight .ow {
  color: #569cd6;
}

[data-bs-theme="dark"] .highlight .kt,
[data-bs-theme="dark"] .highlight .nc {
  color: #4ec9b0;
}

[data-bs-theme="dark"] .highlight .s,
[data-bs-theme="dark"] .highlight .sb,
[data-bs-theme="dark"] .highlight .sc,
[data-bs-theme="dark"] .highlight .sd,
[data-bs-theme="dark"] .highlight .s2,
[data-bs-theme="dark"] .highlight .se,
[data-bs-theme="dark"] .highlight .sh,
[data-bs-theme="dark"] .highlight .si,
[data-bs-theme="dark"] .highlight .sx,
[data-bs-theme="dark"] .highlight .s1 {
  color: #ce9178;
}

[data-bs-theme="dark"] .highlight .sr {
  color: #d16969;
}

[data-bs-theme="dark"] .highlight .m,
[data-bs-theme="dark"] .highlight .mb,
[data-bs-theme="dark"] .highlight .mf,
[data-bs-theme="dark"] .highlight .mh,
[data-bs-theme="dark"] .highlight .mi,
[data-bs-theme="dark"] .highlight .mo,
[data-bs-theme="dark"] .highlight .mx,
[data-bs-theme="dark"] .highlight .il {
  color: #b5cea8;
}

[data-bs-theme="dark"] .highlight .na,
[data-bs-theme="dark"] .highlight .no,
[data-bs-theme="dark"] .highlight .nv,
[data-bs-theme="dark"] .highlight .vc,
[data-bs-theme="dark"] .highlight .vg,
[data-bs-theme="dark"] .highlight .vi {
  color: #9cdcfe;
}

[data-bs-theme="dark"] .highlight .ss {
  color: #ce9178;
}

[data-bs-theme="dark"] .highlight .nb,
[data-bs-theme="dark"] .highlight .nf,
[data-bs-theme="dark"] .highlight .nl {
  color: #dcdcaa;
}

[data-bs-theme="dark"] .highlight .nn,
[data-bs-theme="dark"] .highlight .nt {
  color: #4ec9b0;
}

[data-bs-theme="dark"] .highlight .nd,
[data-bs-theme="dark"] .highlight .ni,
[data-bs-theme="dark"] .highlight .ne {
  color: #c586c0;
}

[data-bs-theme="dark"] .highlight .err {
  color: #f48771;
  background-color: transparent;
}

[data-bs-theme="dark"] .highlight .gd {
  color: #f48771;
  background-color: #5a1e1e;
}

[data-bs-theme="dark"] .highlight .gi {
  color: #b5cea8;
  background-color: #1e3a1e;
}

[data-bs-theme="dark"] .highlight .gh,
[data-bs-theme="dark"] .highlight .go,
[data-bs-theme="dark"] .highlight .gp,
[data-bs-theme="dark"] .highlight .gu {
  color: #808080;
}

[data-bs-theme="dark"] .highlight .w,
[data-bs-theme="dark"] .highlight .o {
  color: #d4d4d4;
}

/* Dark theme blockquotes */
[data-bs-theme="dark"] blockquote {
  color: #d0d0d0;
  border-left-color: #444444;
}

/* Dark theme tables */
[data-bs-theme="dark"] table {
  border-color: #444444;
  color: #d0d0d0;
}

[data-bs-theme="dark"] table th,
[data-bs-theme="dark"] table td {
  border-color: #444444;
}

[data-bs-theme="dark"] table thead th,
[data-bs-theme="dark"] table thead td {
  border-bottom-color: #555555;
  background-color: #2a2a2a;
}

/* Dark theme publish date marker */
[data-bs-theme="dark"] .publish-date::after {
  background-color: #2a2a2a;
  border-color: #666666;
}

/* Dark theme posts list */
[data-bs-theme="dark"] .posts {
  border-left-color: #555555;
}

/* Dark theme strava card */
[data-bs-theme="dark"] .strava-card {
  background-color: #2a2a2a;
  border-color: #444444;
}

[data-bs-theme="dark"] .strava-card .label {
  color: #b0b0b0;
}

/* Dark theme search input */
[data-bs-theme="dark"] .search-container input {
  color: #e0e0e0;
  border-bottom-color: #666666;
}

[data-bs-theme="dark"] .search-container input::placeholder {
  color: #888888;
}

/* Dark theme hr */
[data-bs-theme="dark"] hr {
  color: #444444;
  opacity: 1;
}

/* Dark theme headings */
[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: #e0e0e0;
}

/* Dark theme badges */
[data-bs-theme="dark"] .badge {
  background-color: #444444;
  color: #e0e0e0;
}


/* ==========================================================================
Page setup
========================================================================== */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
  line-height: 1.5;
  font-family: "Allumi Pro", "Roboto", "Helvetica Neue", "Helvetica", Helvetica,
    Arial, sans-serif;
  font-weight: 400;
  color: var(--body);
  background-color: var(--white);
  margin: 0;
  height: 100vh;
}

/* ==========================================================================
Typography
========================================================================== */
@font-face {
  font-family: "Allumi Pro";
  src: url("../fonts/AllumiPro-Light.woff2") format("woff2"),
    url("../fonts/AllumiPro-Light.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Klinic Slab";
  src: url("../fonts/KlinicSlab-Light.woff2") format("woff2"),
    url("../fonts/KlinicSlab-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Greycliff-Regular";
  src: url("../fonts/Greycliff-Regular.ttf") format("truetype");
  font-weight: normal;
  font-display: optional;
}

h1,
.h1 {
  font-family: "Greycliff-Regular", "Roboto", "Helvetica Neue", "Helvetica", Helvetica,
    Arial, sans-serif;
  color: var(--heading);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0.5rem !important;
  margin-top: 1rem !important;
}

h2,
.h2 {
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
}

h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: "Greycliff-Regular", "Roboto", "Helvetica Neue", "Helvetica", Helvetica,
    Arial, sans-serif;
  color: var(--heading);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0.5rem !important;
  margin-top: 1.5rem !important;
}

h1,
.h1 {
  font-size: calc(0.8 * var(--h1));
}

h2,
.h2 {
  font-size: calc(0.8 * var(--h2));
}

h3,
.h3 {
  font-size: calc(0.8 * var(--h3));
}

h4,
.h4 {
  font-size: calc(0.8 * var(--h4));
}

h5,
.h5 {
  font-size: var(--h5);
}

h6,
.h6 {
  font-size: var(--h6);
}

p,
.p {
  font-size: var(--p);
}

/* ==========================================================================
Background
========================================================================== */
.bg-insight-purple {
  background-color: var(--insight-purple);
}

.bg-insight-purple-dark {
  background-color: var(--insight-purple-dark);
}

.bg-light-grey {
  background-color: var(--light-grey);
}

.bg-danger {
  background-color: var(--danger);
}

.bg-warning {
  background-color: var(--warning);
}

.bg-success {
  background-color: var(--success);
}

.bg-blue {
  background-color: var(--blue);
}

.bg-purple {
  background-color: var(--purple);
}

.bg-pink {
  background-color: var(--pink);
}

.bg-red {
  background-color: var(--red);
}

.bg-orange {
  background-color: var(--orange);
}

.bg-yellow {
  background-color: var(--yellow);
}

.bg-green {
  background-color: var(--green);
}

.bg-teal {
  background-color: var(--teal);
}

.bg-cyan {
  background-color: var(--cyan);
}

.bg-white {
  background-color: var(--white);
}

.bg-black {
  background-color: var(--black);
}

/* ==========================================================================
Header
========================================================================== */
header {
  padding: 1rem 1rem 0.5rem 1rem;
  border-bottom: 5px solid var(--insight-grey);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header a {
  display: flex;
}

header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
}

.mobile-menu-toggle {
  display: none;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-nav .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: stretch;
  height: 100%;
}

.header-nav .nav-menu li {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.header-nav .nav-menu li:not(:last-child)::after {
  content: " | ";
  color: #3A3939;
  font-size: 1rem;
  padding: 0 0.75rem;
  font-weight: 300;
}

.header-nav .nav-menu a {
  color: #3A3939;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color 0.2s ease;
  width: 100%;
}

.header-nav .nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -0.55rem;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--insight-gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.header-nav .nav-menu a:hover {
  color: var(--insight-purple);
  text-decoration: none;
}

.header-nav .nav-menu a:hover::after {
  opacity: 1;
}

/* Dark theme header nav - keep same colors since header is white */
[data-bs-theme="dark"] .header-nav .nav-menu li:not(:last-child)::after {
  color: #3A3939;
}

[data-bs-theme="dark"] .header-nav .nav-menu a {
  color: #3A3939;
}

[data-bs-theme="dark"] .header-nav .nav-menu a:hover {
  color: var(--insight-purple);
}

[data-bs-theme="dark"] .header-nav .nav-menu a:hover::after {
  opacity: 1;
}

.follow-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.follow-btns .btn+.btn {
  margin-left: 0;
}

/* Search and theme toggle - plain icon buttons without outline */
header .btn-search,
header .btn-theme-toggle {
  background: transparent !important;
  border: none !important;
  color: #24292e !important;
  padding: 0.375rem 0.75rem;
}

header .btn-search:hover,
header .btn-theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  color: #24292e !important;
}

[data-bs-theme="dark"] header .btn-search,
[data-bs-theme="dark"] header .btn-theme-toggle {
  color: #24292e !important;
}

[data-bs-theme="dark"] header .btn-search:hover,
[data-bs-theme="dark"] header .btn-theme-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #24292e !important;
}

/* Mobile responsive header */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  header > a {
    order: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: auto;
  }

  header > a img {
    height: 24px;
    width: auto;
  }

  .follow-btns {
    order: 2;
    gap: 0.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
  }

  .mobile-menu-toggle {
    display: block;
    order: 3;
    flex-shrink: 0;
  }

  .follow-btns .btn {
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
  }

  .follow-btns .btn i {
    font-size: 0.875rem;
  }

  /* Hide some buttons on very small screens */
  @media (max-width: 480px) {
    .follow-btns .btn-rss,
    .follow-btns .btn-github {
      display: none;
    }
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .header-nav.open {
    max-height: 300px;
    padding-bottom: 0.5rem;
  }

  .header-nav .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    width: 100%;
  }

  .header-nav .nav-menu li {
    width: 100%;
    flex: none;
  }

  .header-nav .nav-menu li:not(:last-child)::after {
    content: "";
    padding: 0;
  }

  .header-nav .nav-menu a {
    display: block;
    padding: 0.75rem 0;
    width: 100%;
    justify-content: flex-start;
  }

  .header-nav .nav-menu a::after {
    display: none;
  }

  [data-bs-theme="dark"] .header-nav {
    background: #ffffff;
  }
}

/* ==========================================================================
Nav (hidden - navigation moved to header)
========================================================================== */
nav.top-nav {
  display: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  align-items: center;
}

.nav-menu li {
  margin: 0;
  position: relative;
}

.nav-menu li:not(:last-child)::after {
  content: " | ";
  color: var(--insight-dark-grey);
  font-size: 1rem;
  padding: 0 0.75rem;
  font-weight: 300;
}

.nav-menu a {
  color: var(--insight-dark-grey);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 0;
  display: inline-block;
  position: relative;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--insight-gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-menu a:hover {
  color: var(--insight-purple);
  text-decoration: none;
}

.nav-menu a:hover::after {
  opacity: 1;
}

/* Dark theme nav styles */
[data-bs-theme="dark"] nav.top-nav {
  background: #1a1a1a;
  border-bottom-color: #444444;
}

[data-bs-theme="dark"] .nav-menu li:not(:last-child)::after {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .nav-menu a {
  color: #e0e0e0;
}

[data-bs-theme="dark"] .nav-menu a:hover {
  color: var(--insight-purple-hover);
}

[data-bs-theme="dark"] .nav-menu a:hover::after {
  opacity: 1;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-menu li:not(:last-child)::after {
    content: "";
    padding: 0;
  }
}

/* ==========================================================================
Page Container
========================================================================== */
.page-container {
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
Containers
========================================================================== */
.container {
  padding: 2rem 1rem 1rem 1rem;
  margin: 0 auto;
}

.container main {
  margin-bottom: 4rem;
  padding-bottom: 5rem;
}

/* ==========================================================================
Main
========================================================================== */
main img {
  max-width: 100%;
  width: auto !important;
}

article h2 {
  margin-bottom: 0;
}

.col {
  height: auto;
  display: flex;
}

.card {
  height: auto;
}

.card-body {
  min-height: 220px !important;
}

.card .card-img-top .height {
  max-height: 150px;
}

.card a {
  text-align: left !important
}

/* ==========================================================================
Posts
========================================================================== */
.posts {
  border-left: 1px dashed #aeaeae;
  list-style: none;
  padding-left: 1.25rem;
}

.posts li {
  margin-bottom: 1.5rem;
}

.posts a {
  font-size: 1.15rem;
}

.posts .publish-date {
  font-size: 0.75rem;
  position: relative;
}

.publish-date {
  font-size: 0.9rem;
  margin-top: 0;
}

.publish-date::after {
  border: 1px solid #bdbbbb;
  border-radius: 50%;
  background-color: var(--white);
  content: "";
  height: 0.5rem;
  left: -1.5rem;
  position: absolute;
  top: calc(50% - 0.2rem);
  width: 0.5rem;
}

figure {
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

blockquote {
  position: relative;
}

blockquote::before {
  background-color: var(--success);
  border-radius: 4px;
  bottom: 0px;
  content: "";
  left: -40px;
  position: absolute;
  top: 0px;
  width: 4px;
}

/* ==========================================================================
Tags, Authors and Search 
========================================================================== */
.author-container,
.search-container,
.tag-container {
  margin-bottom: 2.5rem;
}

.items {
  font-size: 0.9rem;
}

/* ==========================================================================
Profile
========================================================================== */
.img-profile {
  border-radius: 50%;
  max-height: 150px;
  margin: 3rem 0 1.2rem 0;
}

.img-profile-small {
  max-height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  float: left;
}

.location {
  font-weight: bold;
}

.bio {
  font-size: 0.9rem;
}

.handle {
  font-size: 0.8rem;
  font-style: italic;
  margin: 0;
}

.profile-header {
  margin-top: 0;
}

/* ==========================================================================
Badge
========================================================================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

a.badge:hover {
  text-decoration: none;
  filter: brightness(80%);
  color: var(--white);
}

a.badge:not(:last-child) {
  margin-right: 5px;
}

/* ==========================================================================
Strava Card
========================================================================== */
.strava-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 6px;
  border: 1px solid var(--insight-grey);
  margin-top: 10px;
}

.strava-card .card-header {
  margin-bottom: 1rem;
}

.strava-card h3 {
  margin-bottom: 0;
  margin-top: 0;
  font-weight: 300;
  font-size: 20px;
}

.strava-card .activity-name {
  margin-bottom: 1rem;
}

.strava-card .stats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.strava-card .label {
  color: var(--body);
  font-size: 0.75rem;
}

.strava-card .label+div {
  font-size: 1.15rem;
  line-height: 1.2;
}

/* ==========================================================================
Links
========================================================================== */
a {
  color: var(--insight-purple);
  text-decoration: none;
}

a:hover {
  color: var(--insight-purple-hover);
  text-decoration: underline;
}

.social-share {
  margin: 2rem 0 10rem;
}

.social-share a img.img-button {
  margin-right: 5px;
}

.img-button-external {
  margin-right: 5px;
}

/* ==========================================================================
Code
========================================================================== */
code {
  background-color: var(--very-light-grey);
  border-radius: 4px;
  font-size: 0.85rem;
  padding: 3px 6px;
  display: inline-block;
  max-width: 960px;
}

pre.highlight {
  padding-left: 0.5rem;
}

pre {
  font-size: 0.85rem;
  line-height: 1.5;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* ==========================================================================
Screen Reader Only for Accessibility
========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
Search 
========================================================================== */

.search-container input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--insight-dark-grey);
  background: none;
  padding: 10px 10px;
  font-size: 1.3em;
  font-weight: 300;
  font-family: "Allumi Pro", "Roboto", "Helvetica Neue", "Helvetica", Helvetica,
    Arial, sans-serif;
}

/* ==========================================================================
Table
========================================================================== */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  border: 1px solid var(--light-grey);
}

table th,
table td {
  padding: 0.75rem;
  vertical-align: top;
  border: 1px solid var(--light-grey);
}

table thead th {
  vertical-align: bottom;
}

table thead th,
table thead td {
  border-bottom: 2px solid var(--light-grey);
}

table tbody+tbody {
  border-top: 2px solid var(--light-grey);
}

/* ==========================================================================
Footer
========================================================================== */
footer {
  background: #101010;
  display: block;
  margin-top: auto;
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem;
  color: #ffffff;
}

footer .footer-end {
  margin-top: 2rem;
}

footer .footer-title {
  margin-top: 0rem;
}

/* ==========================================================================
General utility classes
========================================================================== */
.text-center {
  text-align: center;
}

.text-capitalize {
  text-transform: capitalize;
}

hr {
  color: var(--light-grey);
  margin: 2rem auto;
}

.horizontal-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.horizontal-list li {
  display: inline-block;
}

.horizontal-list li:not(:last-child) {
  margin-right: 1rem;
}

video {
  max-width: 100%;
}

.no-shadow {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.highlight {
  overflow-x: auto;
}

.border {
  border: 1px solid var(--light-grey);
}

.border-rounded {
  border: 1px solid var(--light-grey);
  border-radius: 4px;
}

/* ==========================================================================
Responsive Media queries
========================================================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  header {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .follow-btns {
    padding: 0;
    text-align: right;
    display: flex;
  }

  footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  footer .footer-end {
    margin-top: 0;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

  h1,
  .h1 {
    font-size: var(--h1);
  }

  h2,
  .h2 {
    font-size: var(--h2);
  }

  h3,
  .h3 {
    font-size: var(--h3);
  }

  h4,
  .h4 {
    font-size: var(--h4);
  }

  .container {
    width: 100%;
    max-width: 992px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  figure {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }

  .container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .container main {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
  }

  .float-right {
    float: right;
    clear: both;
    max-width: 300px !important;
  }
}