@import url("pygment_highlights.css");
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  /* config file CSS variables */
  --page-col: #f3f6f7;
  --text-col: #2b3b45;
  --link-col: #276b91;
  --hover-col: #245c79;
  --navbar-col: #fbfcfc;
  --navbar-text-col: #2b3b45;
  --navbar-border-col: #dce5e9;
  --footer-col: #e8eff2;
  --footer-text-col: #465b67;
  --footer-link-col: #276b91;
  --footer-hover-col: #194f70;

  /* common CSS variables */
  --body-font: 'Lora', 'Times New Roman', serif;
  --header-font: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mid-col: #808080;
}

/* --- General --- */

html {
  font-size: 100%
}

body {
  font-family: var(--body-font);
  font-size: 1.125rem;
  color: var(--text-col);
  position: relative;
  background-color: var(--page-col);
  
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1;
}
p {
  line-height: 1.5;
  margin: 1.875rem 0;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--header-font);
  font-weight: 800;
  line-height: 1.1;
}
h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.875rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.125rem;
}
h1, h2, h3, h4 {
  margin-top: 1.25rem;
}
a {
  color: var(--link-col);
}
a:hover,
a:focus {
  color: var(--hover-col);
}
blockquote {
  color: var(--mid-col);
  font-style: italic;
}
blockquote p:first-child {
  margin-top: 0;
}
.jumbotron {
  background: #EEE;
}
hr.small {
  max-width: 6.25rem;
  margin: 1rem auto;
  border-width: 0.25rem;
  border-color: inherit;
  border-radius: 0.1875rem;
}

/* fix in-page anchors to not be behind fixed header */
:target:before {
  content: "";
  display: block;
  height: 3.125rem; /* navbar height */
  margin: -3.125rem 0 0;
}

.hideme {
  display: none;
}

::-moz-selection {
  color: var(--page-col);
  background-color: var(--hover-col);
  text-shadow: none;
}
::selection {
  color: var(--page-col);
  background-color: var(--hover-col);
  text-shadow: none;
}
img::selection {
  color: var(--hover-col);
  background: transparent;
}
img::-moz-selection {
  color: var(--hover-col);
  background: transparent;
}

img {
  max-width: 100%;
}

.linked-section {
  padding-top: 3.75rem;
  margin-top: -1.5625rem;
}

/* Comments */

.disqus-comments {
  margin-top: 1.875rem;
}

@media (min-width: 768px) {
  .disqus-comments {
    margin-top: 2.5rem;
  }
}

/* --- Navbar --- */

.navbar-custom {
  background-color: var(--navbar-col);
  border-bottom: 1px solid var(--navbar-border-col);
  font-family: var(--header-font);
  
  -webkit-transition: padding .5s ease-in-out;
  -moz-transition: padding .5s ease-in-out;
  transition: padding .5s ease-in-out;
}

.navbar-custom,
.navbar-custom.top-nav-short,
.navbar-custom.top-nav-short-permanent {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-custom .navbar-brand {
  line-height: 1.5;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 1.125rem;
}

@media (max-width: 1199px) {
  .navbar-custom .navbar-brand {
    white-space: normal;
  }
}

.navbar-custom .navbar-brand-logo {
  -webkit-transition: padding .5s ease-in-out;
  -moz-transition: padding .5s ease-in-out;
  transition: padding .5s ease-in-out;
}

.navbar-custom .navbar-brand-logo,
.navbar-custom.top-nav-short .navbar-brand-logo,
.navbar-custom.top-nav-short-permanent .navbar-brand-logo {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
}

.navbar-custom .navbar-brand-logo img {
  -webkit-transition: height .5s ease-in-out;
  -moz-transition: height .5s ease-in-out;
  transition: height .5s ease-in-out;
}

.navbar-custom .navbar-brand-logo img,
.navbar-custom.top-nav-short .navbar-brand-logo img,
.navbar-custom.top-nav-short-permanent .navbar-brand-logo img {
  height: 2.5rem;
}

.navbar-custom .navbar-nav .nav-item {
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.0625rem;
}

.navbar-custom .navbar-nav .nav-link {
  line-height: 1.25rem;
  padding-top: 0.9375rem;
  padding-bottom: 0.9375rem;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
  font-weight: 800;
  color: var(--navbar-text-col);
}

.navbar-toggler {
  font-size: 1rem;
  margin: 0.5rem 0;
}
.navbar-custom .navbar-toggler:focus,
.navbar-custom .navbar-toggler:hover {
  background-color: initial;
}

.navbar-custom .navbar-toggler[aria-expanded="true"] {
  background-color: rgba(0, 0, 0, 0.2);
}

.dropdown-toggle::after {
  border-width: 0.4em;
}

@media (min-width: 1200px) {
  .navbar-custom {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .navbar-custom .navbar-brand-logo {
    padding-top: 0;
    padding-bottom: 0;
  }

  .navbar-custom .navbar-brand-logo img {
    height: 3.125rem;
  }

  .navbar-expand-xl .navbar-nav .nav-link {
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
  }

  .navbar-expand-xl .navbar-nav .nav-item:not(.dropdown):last-child .nav-link {
    padding-right: 0;
  }
}

@media (min-width: 1200px) {
  .navbar-custom .nav-item.dropdown:hover {
    background: rgba(0, 0, 0, 0.1);
  }
}

.navbar-custom .nav-item.dropdown.show {
  background: rgba(0, 0, 0, 0.2);
}

.navbar-custom .nav-item.dropdown .dropdown-menu {
  margin-top: 0;
  font-size: 1em;
  border: 0;
  padding: 0;
  
  min-width: 0;
  width: 100%;
  word-break: break-word;
  
}

.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
  padding: 0.625rem;
  background-color: var(--navbar-col);
  text-decoration: none !important;
  font-weight: normal;
  color: var(--navbar-text-col);
  
  white-space: normal;
  
}

@media (min-width: 1200px) {
  .navbar-custom .nav-item.dropdown .dropdown-menu {
    text-align: center;
  }

  .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
    padding-left: 0.625rem;
    border: 1px solid var(--navbar-border-col);
    border-width: 0 1px 1px;
  }

  .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:first-child {
    border-top-width: 1px;
  }
}

@media (max-width: 1199px) {
  .navbar-custom .navbar-collapse {
    border-top: 1px solid var(--navbar-border-col);
    margin: 0 -1rem;
  }

  .navbar-custom .navbar-nav {
    padding: 0.5rem 0;
  }

  .navbar-custom .navbar-nav .nav-link {
    padding: 0.675rem 0 0.675rem 1rem;
  }

  .navbar-custom .nav-item.dropdown.show {
    background: rgba(0, 0, 0, 0.2);
  }

  .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
    padding-left: 2rem;
  }
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus ,
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus,
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-custom .navbar-nav .dropdown-menu .dropdown-item:focus {
  color: var(--hover-col);
}

.navbar-custom .avatar-container {
  position: absolute;
  left: 50%;
  width: 3.125rem;
  bottom: -1.5rem;
  transition: opacity 0.5s ease-in-out;
  -webkit-transition: opacity 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out;
}
.navbar-custom.top-nav-short .avatar-container {
  opacity: 0;
  visibility: hidden;
  transition: visibility linear 0.5s, opacity 0.5s ease-in-out;
  -webkit-transition: visibility linear 0.5s, opacity 0.5s ease-in-out;
  -moz-transition: visibility linear 0.5s, opacity 0.5s ease-in-out;
}

.navbar-custom .avatar-container .avatar-img-border {
  width: 100%;
  margin-left: -50%;
  
    border-radius: 50%;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, .8);
    -webkit-box-shadow: 0 0 0.3125rem rgba(0, 0, 0, .8);
    -moz-box-shadow: 0 0 0.5rem rgba(0, 0, 0, .8);
  
}
.navbar-custom .avatar-container .avatar-img {
  width: 100%;
  
    border-radius: 50%;
  
  display: block;
}

.navbar-custom.top-nav-expanded .avatar-container {
  display: none;
}

@media (min-width: 1200px) {
  .navbar-custom.top-nav-regular .avatar-container {
    width: 6.25rem;
    bottom: -1.9375rem;
  }

  .navbar-custom.top-nav-regular .avatar-container .avatar-img-border {
    width: 100%;
    
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
    -webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
    -moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
    
  }

  .navbar-custom.top-nav-regular .avatar-container .avatar-img {
    width: 100%;
  }
}

/* --- Footer --- */

footer {
  padding: 1.875rem 0;
  border-top: 1px var(--footer-col) solid;
  margin-top: 3.125rem;
  font-size: 0.875rem;
  background-color: var(--footer-col);
  
}

footer p.text-muted {
  color: var(--footer-text-col) !important;
}

footer a {
  color: var(--footer-link-col);
}
footer .footer-links a {
  color: var(--text-col);
}
footer .footer-links .fa-inverse {
  color: var(--page-col);
}

footer a:hover,
footer a:focus {
  color: var(--footer-hover-col);
}

footer .list-inline {
  margin: 0;
  padding: 0;
  margin-bottom: 1.375rem;
}
footer .list-inline .list-inline-item {
  margin-bottom: 0.5rem;
}
footer .copyright {
  font-family: var(--header-font);
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
}
footer .theme-by {
  text-align: center;
  margin: 0.625rem 0 0;
}
footer .footer-custom-content {
  text-align: center;
  margin-bottom: 0.9375rem;
  font-family: var(--header-font);
}

@media (min-width: 768px) {
  footer {
    padding: 3.125rem 0;
  }
  footer .footer-links {
    font-size: 1.125rem;
  }
  footer .copyright {
    font-size: 1rem;
  }
  footer .footer-custom-content {
    font-size: 1rem;
  }
}

/* --- Post preview (feed) --- */

.posts-list {
    margin: 0;
}

.post-preview {
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

@media (min-width: 768px) {
  .post-preview {
    padding: 2.1875rem 0;
  }
}

.post-preview:last-child {
  border-bottom: 0;
}

.post-preview a {
  text-decoration: none;
  font-family: var(--header-font);
  color: var(--text-col);
}

.post-preview a:focus,
.post-preview a:hover {
  text-decoration: none;
  color: var(--hover-col);
}

.post-preview .post-title {
  font-size: 1.875rem;
  margin-top: 0;
}
.post-preview .post-subtitle {
  margin: 0;
  font-weight: 300;
  margin-bottom: 0.625rem;
}
.post-preview .post-meta,
.post-heading .post-meta {
  color: var(--mid-col);
  font-size: 1.125rem;
  font-style: italic;
  margin: 0 0 0.625rem;
  font-family: var(--body-font);
}
.post-heading .post-meta {
  display: inline-block;
}
@media (max-width: 767px) {
  .post-heading .post-meta {
    display: block;
    margin-bottom: 0;
  }
}
.post-heading .post-meta .middot {
  margin: 0 0.625rem;
}
.post-preview .post-entry {
  width: 100%;
}
.post-preview .post-image {
  float: right;
  margin-left: 0.625rem;
  height: 12rem;
  width: 12rem;
}
.post-preview .post-image {
  filter: grayscale(40%);
}
.post-preview .post-image:hover {
  filter: grayscale(0%);
}
.post-preview .post-image img {
  max-height: 100%;
  max-width: 100%;
}
.post-preview .post-image-short {
  margin-top: -2.1875rem;
}
@media (max-width: 767px) {
  .post-preview .post-image {
    height: 9rem;
    width: 9rem;
  }
  .post-preview .post-image-short {
    margin-top: 0;
  }
}
.post-preview .post-image-small {
  width: 100%;
  height: 100%;
  text-align: center;
  display: none;
}
.post-preview .post-image-small img {
  max-width: 6.25rem;
  max-height: 6.25rem;
}
@media (max-width: 500px) {
  .post-preview .post-image {
    display: none;
  }
  .post-preview .post-image-small {
    display: block;
  }
}

.post-preview .post-read-more {
  font-weight: 800;
}

@media (min-width: 768px) {
  .post-preview .post-title {
    font-size: 2.25rem;
  }
}

/* --- Tags --- */

.blog-tags {
  font-family: var(--header-font);
  font-size: 0.9375rem;
  margin: 1.875rem 0;
}

.blog-tags span {
  color: var(--text-col);
  opacity: 0.8;
}

.blog-tags .list-inline-item {
  margin-right: 0;
}

.blog-tags a {
  color: var(--text-col);
  text-decoration: none;
  padding: 0 0.3125rem;
  opacity: 0.8;
  border: 1px solid transparent;
  border-radius: 0.1875rem;
}

.blog-tags a:hover {
  opacity: 1;
  color: var(--text-col);
  border-color: var(--text-col);
}

.post-preview .blog-tags {
  margin-top: 0.3125rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .post-preview .blog-tags {
    margin-top: 0.625rem;
  }
}

/* Tags page */

.tag-btn {
  margin: 0.3125rem;
}

#full-tags-list {
  font-family: var(--header-font);
}

#full-tags-list .tag-entry {
  margin: 0 0 0.9375rem 1.5625rem;
}

#full-tags-list .tag-entry a {
  font-size: 1.25rem;
}

#full-tags-list .tag-entry .entry-date {
  color: var(--mid-col);
  font-style: italic;
  font-size: 1rem;
}

/* --- Post and page headers --- */

.intro-header {
  margin: 5rem 0 1.25rem;
  position: relative;
}
.intro-header.big-img {
  background: no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  margin-top: 3.1875rem; /* The small navbar is 50px tall + 1px border */
  margin-bottom: 2.1875rem;
}
nav.top-nav-short-permanent ~ header > .intro-header {
  margin-top: 5rem;
}
nav.top-nav-short-permanent ~ header > .intro-header.big-img {
  margin-top: 3.1875rem;
}
.intro-header.big-img .big-img-transition {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  -o-background-size: cover;
  -webkit-transition: opacity 1s linear;
  -moz-transition: opacity 1s linear;
  transition: opacity 1s linear;
}
.intro-header .page-heading {
  text-align: center;
}
.intro-header.big-img .page-heading,
.intro-header.big-img .post-heading {
  padding: 6.25rem 0;
  color: #FFF;
  text-shadow: 1px 1px 3px #000;
}
.intro-header .page-heading h1 {
  margin-top: 0;
  font-size: 3.125rem;
}
.intro-header .post-heading h1 {
  margin-top: 0;
  font-size: 2.1875rem;
}
.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
  font-size: 1.6875rem;
  line-height: 1.1;
  display: block;
  font-family: var(--header-font);
  font-weight: 300;
  margin: 0.625rem 0 0;
}
.intro-header .post-heading .post-subheading {
  margin-bottom: 1.25rem;
}
.intro-header.big-img .page-heading .page-subheading,
.intro-header.big-img .post-heading .post-subheading {
  font-weight: 400;
}
.intro-header.big-img .page-heading hr {
  box-shadow: 1px 1px 3px #000;
  -webkit-box-shadow: 1px 1px 3px #000;
  -moz-box-shadow: 1px 1px 3px #000;
}
.intro-header.big-img .post-heading .post-meta {
  color: #EEE;
}
.intro-header.big-img .img-desc {
  background: rgba(30, 30, 30, 0.6);
  position: absolute;
  padding: 0.3125rem 0.625rem;
  font-size: 0.6875rem;
  color: #EEE;
  font-family: var(--header-font);
  right: 0;
  bottom: 0;
  display: none;
}
@media (min-width: 1200px) {
  .intro-header {
    margin-top: 8.125rem;
  }
  .intro-header.big-img {
    margin-top: 5.6875rem; /* Full navbar is small navbar + 20px padding on each side when expanded */
  }
  .intro-header.big-img .page-heading,
  .intro-header.big-img .post-heading {
    padding: 9.375rem 0;
  }
  .intro-header .page-heading h1 {
    font-size: 5rem;
  }
  .intro-header .post-heading h1 {
    font-size: 3.125rem;
  }
  .intro-header.big-img .img-desc {
    font-size: 0.875rem;
  }
}

#header-gh-btns {
  margin-bottom: 0.9375rem;
}
@media (max-width: 500px) {
  #header-gh-btns > iframe {
    display: block;
    margin-bottom: 0.3125rem;
  }
}

/* --- Pagination --- */

.pagination {
  margin: 0.625rem 0 0;
  justify-content: space-between;
}

.pagination.blog-pager {
  margin-top: 0;
}

.pagination .page-item.next {
  margin-left: auto;
}

@media (min-width: 768px) {
  .pagination.blog-pager {
    margin-top: 0.625rem;
  }
}

.pagination .page-item .page-link {
  font-family: var(--header-font);
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.625rem 0.3125rem;
  background-color: var(--page-col);
  border-radius: 0;
  color: var(--text-col);
  padding: 0.75rem 1rem;
}
@media (min-width: 768px) {
  .pagination .page-item .page-link {
    padding: 0.9375rem 1.5625rem;
  }
}
.pagination .page-item .page-link:hover,
.pagination .page-item .page-link:focus {
  color: var(--page-col);
  border: 1px solid var(--hover-col);
  background-color: var(--hover-col);
}

/* --- Tables --- */

table {
  padding: 0;
  overflow-x: auto;
  display: block;
}
table tr {
  border-top: 1px solid #cccccc;
  background-color: var(--page-col);
  margin: 0;
  padding: 0;
}
table tr:nth-child(2n) {
  background-color: #f8f8f8;
}
table tr th,
table tr td {
  border: 1px solid #cccccc;
  text-align: left;
  margin: 0;
  padding: 0.375rem 0.8125rem;
}
table tr th {
  font-weight: bold;
}
table tr th :first-child,
table tr td :first-child {
  margin-top: 0;
}
table tr th :last-child,
table tr td :last-child {
  margin-bottom: 0;
}

/* --- Code blocks --- */

code {
  padding: 0.125rem 0.25rem;
  color: #c7254e;
  background-color: #f9f2f4;
  border-radius: 0.25rem;
}

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

pre {
  font-size: 0.875rem;
  line-height: 1.5em;
  border-radius: 0.25rem;
  padding: 0.59375rem;
}
.highlight pre {
  border: none;
  background: none;
  margin: 0;
}
.highlight > pre {
  background-image: linear-gradient(
    rgba(0,0,0,0.03), rgba(0,0,0,0.03) 1.5em, rgba(0,0,0,0.02) 1.5em, rgba(0,0,0,0.02) 3em);
  background-size: auto 3em;
  background-position-y: 0.625rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-left: 0.4375rem solid #444;
}
.highlight > pre:not([class~="highlight"]) { /* code block with line number */
  padding: 0;
}
.highlight table,
.highlight tr,
.highlight td { /* to be removed after fixing table styles */
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}
.highlight pre.lineno {
  color: rgba(0,0,0,0.3);
  border-radius: 0;
  border-right: 2px solid #444;
}

/* Make line numbers unselectable: excludes line numbers from copy-paste user ops */
.lineno {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.lineno::selection, .lineno::-moz-selection {
  background: none;
}

/* Fix table border github gist snippets */

.gist, .gist-file table tr {
  border: unset;
}

.gist, .gist-file table tr td {
  border: unset;
}

/* --- Social media sharing section --- */

#social-share-section {
  margin-bottom: 1.875rem;
  margin-top: 1.875rem;
}

/* --- Notification boxes --- */
.box-note,
.box-warning,
.box-error,
.box-success {
  padding: 0.9375rem 0.9375rem 0.9375rem 0.625rem;
  margin: 1.25rem 1.25rem 1.25rem 0.3125rem;
  border: 1px solid #eee;
  border-left-width: 0.3125rem;
  border-radius: 0.3125rem 0.1875rem 0.1875rem 0.3125rem;
}

.box-note {
  background-color: #eee;
  border-left-color: #2980b9;
}

.box-warning {
  background-color: #fdf5d4;
  border-left-color: #f1c40f;
}

.box-error {
  background-color: #f4dddb;
  border-left-color: #c0392b;
}

.box-success {
  background-color: #98FB98;
  border-left-color: #3CB371;
}

/* --- Misc blog post styles --- */

.blog-post :first-child {
  margin-top: 0;
}

.blog-post img {
  max-width: 100%;
}

.blog-post .caption {
  text-align: center;
  font-size: 0.875rem;
  padding: 0.625rem;
  font-style: italic;
  color: #777;
  margin: 0;
  display: block;
  border-bottom-right-radius: 0.3125rem;
  border-bottom-left-radius: 0.3125rem;
}

.blog-post hr {
  max-width: 25%;
  border-width: 0.25rem;
  border-radius: 0.1875rem;
  border-color: var(--mid-col);
}

.blog-post blockquote {
  padding: 0.625rem 1.25rem;
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  border-left: 0.3125rem solid #eee;
}

.blog-post blockquote p:last-child {
  margin-bottom: 0;
}

.center {
  display: block;
  margin: 0 auto;
}

/* Search bar */
#beautifuljekyll-search-overlay {
  font-family: var(--header-font);
  display: none;
  z-index: 999999;
  position: fixed;
  background: rgba(0,0,0,0.9);
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  text-align: center;
  padding: 1rem;
}

#nav-search-exit {
  position: absolute;
  top: 1.5rem;
  cursor: pointer;
  right: 25%;
  margin-right: 2rem;
  color: #555;
  font-size: 2rem;
  line-height: 2rem;
  font-weight: bold;
}
#nav-search-exit:hover {
  color: #000;
}
#nav-search-input {
  text-align: center;
  background: #e7edee;
  margin: auto;
  display: block;
  font-size: 2rem;
  width: 50%;
  transition: width 300ms ease;
  color: #222;
  border-radius: 5rem;
  outline: none;
  border: none;
  padding: 0 3rem;
}

@media (max-width: 1199px) {
  #nav-search-input {
    width: 75%;
  }
  #nav-search-exit {
    right: 12.5%;
  }
}
@media (max-width: 767px) {
  #nav-search-input {
    width: 100%;
  }
  #nav-search-exit {
    right: 0;
  }
}
#nav-search-input:focus {
  background: #f3f8fe;
  box-shadow: 0px 0.15rem 1rem #e7f4ff;
  outline: none;
}

#nav-search-input::placeholder {
  color: #777;
}

#search-results-container {
  list-style: none;
  padding-left: unset;
  margin-top: 1.5rem;
  color: #fff;
  font-size: 1.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
}
#search-results-container a {
  color: #fff;
  text-decoration: none;
}
#search-results-container a:hover {
  color: #fff;
  text-decoration: underline;
}

#nav-search-icon {
  display: inline-block;
}
#nav-search-text {
  display: none;
}

@media (max-width: 1199px) {
  #nav-search-icon {
    display: none;
  }
  #nav-search-text {
    display: inline-block;
  }
}


/* --- PharmacistDaz editorial refresh --- */

:root {
  --body-font: 'Nunito Sans', Arial, sans-serif;
  --header-font: 'Lora', Georgia, serif;
  --mid-col: #667b75;
}

body {
  background-color: var(--page-col);
  color: var(--text-col);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-col);
  font-family: var(--header-font);
  letter-spacing: -0.025em;
}

a {
  color: var(--link-col);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--hover-col);
}

a:visited {
  color: #655078;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #d88a45 !important;
  outline-offset: 3px;
}

.navbar-custom {
  background-color: var(--navbar-col) !important;
  border-bottom: 1px solid var(--navbar-border-col);
  box-shadow: 0 4px 18px rgba(32, 58, 54, 0.05);
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
  color: var(--navbar-text-col) !important;
}

.navbar-custom .navbar-brand {
  font-family: var(--header-font);
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
  color: var(--hover-col) !important;
}

.intro-header:not(.big-img) {
  background: linear-gradient(125deg, #203a36 0%, #285c52 100%) !important;
  margin-bottom: 2.5rem;
  padding: 2.5rem 1rem;
}

.intro-header .page-heading,
.intro-header .post-heading,
.intro-header .post-heading h1,
.intro-header .post-heading .post-meta {
  color: #fffdf8 !important;
}

.intro-header .page-heading h1,
.intro-header .post-heading h1 {
  color: #fffdf8;
  letter-spacing: -0.04em;
}

.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
  color: #d7e2dc;
  font-family: var(--body-font);
  font-size: 1.2rem;
  line-height: 1.5;
}

.intro-header .post-heading .post-meta {
  color: #d7e2dc !important;
}

.home-intro {
  margin: 0 0 2.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid #e8e4d9;
  border-radius: 1rem;
  background: #fffdf8;
  box-shadow: 0 12px 32px rgba(32, 58, 54, 0.06);
}

.home-eyebrow {
  margin: 0 0 0.8rem;
  color: var(--hover-col);
  font-family: var(--body-font);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.home-lede {
  margin: 0;
  max-width: 46rem;
  font-size: 1.1rem;
  line-height: 1.75;
}

.home-about-link {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}

.home-about-link span {
  padding-left: 0.25rem;
  transition: padding 160ms ease;
}

.home-about-link:hover span {
  padding-left: 0.5rem;
}

.posts-list {
  display: grid;
  gap: 1rem;
}

.post-preview {
  margin: 0;
  padding: 1.5rem;
  overflow: visible;
  border: 1px solid #e8e4d9;
  border-left: 4px solid #8eaa91;
  border-radius: 0.85rem;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(32, 58, 54, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.post-preview:hover {
  border-left-color: var(--hover-col);
  box-shadow: 0 14px 30px rgba(32, 58, 54, 0.09);
  transform: translateY(-2px);
}

.post-preview .post-title {
  margin-bottom: 0.45rem;
  color: var(--text-col);
  font-size: 1.6rem;
  line-height: 1.25;
}

.post-preview a:visited {
  color: var(--text-col);
}

.post-preview a:hover,
.post-preview a:focus {
  color: var(--hover-col);
}

.post-preview .post-subtitle {
  color: #526761;
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.5;
}

.post-preview .post-meta,
.post-heading .post-meta,
.text-muted {
  color: #667b75 !important;
}

.post-preview .post-meta {
  font-size: 0.9rem;
  font-style: normal;
}

.post-preview .post-entry {
  font-size: 0.98rem;
  line-height: 1.75;
}

.post-preview .post-read-more {
  margin-left: 0.25rem;
  font-family: var(--body-font);
  font-weight: 800;
  text-decoration: none;
}

.blog-tags {
  margin-top: 0.85rem;
}

.blog-tags a {
  display: inline-block;
  margin: 0 0.3rem 0.35rem 0;
  padding: 0.2rem 0.65rem !important;
  border: 1px solid #dce5dc !important;
  border-radius: 999px !important;
  background: #edf3ec !important;
  color: #31574e !important;
  font-family: var(--body-font);
  font-size: 0.75rem !important;
  font-weight: 700;
  opacity: 1;
  text-decoration: none;
}

.blog-tags a:visited {
  color: #31574e !important;
}

.blog-tags a:hover,
.blog-tags a:focus {
  border-color: #b55b3d !important;
  background: #fbf0e9 !important;
  color: #8e432d !important;
}

.pagination .page-item .page-link {
  border: 1px solid #d9e1d8;
  border-radius: 999px;
  background: #fffdf8;
  color: var(--text-col);
}

.pagination .page-item .page-link:hover,
.pagination .page-item .page-link:focus {
  border-color: var(--hover-col);
  background: var(--hover-col);
  color: #fffdf8;
}

footer {
  border-top: 0;
  background-color: var(--footer-col) !important;
  color: var(--footer-text-col) !important;
}

footer p.text-muted,
footer .footer-links a {
  color: var(--footer-text-col) !important;
}

footer a {
  color: var(--footer-link-col) !important;
}

footer a:hover,
footer a:focus {
  color: var(--footer-hover-col) !important;
}

.btn-primary {
  border-color: var(--link-col) !important;
  background-color: var(--link-col) !important;
  color: #fffdf8 !important;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--hover-col) !important;
  background-color: var(--hover-col) !important;
}

.blog-post blockquote {
  border-left: 4px solid #d88a45 !important;
  background: #fff8e9;
  color: var(--text-col);
  font-style: normal;
  padding: 1rem 1.25rem;
}

@media (min-width: 768px) {
  .intro-header:not(.big-img) {
    padding: 3rem 1rem;
  }

  .home-intro {
    margin-bottom: 3rem;
    padding: 2.25rem 2.5rem;
  }

  .post-preview {
    padding: 1.75rem 2rem;
  }

  .post-preview .post-title {
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Topic sidebar and About photo --- */

.page-layout-row {
  row-gap: 2rem;
}

.page-main-content {
  min-width: 0;
}

.tag-sidebar {
  margin: 0 0 2rem;
  padding: 1.25rem;
  border: 1px solid #e8e4d9;
  border-radius: 0.85rem;
  background: #fffdf8;
  box-shadow: 0 8px 24px rgba(32, 58, 54, 0.045);
}

.tag-sidebar h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.tag-sidebar > p {
  margin: 0 0 0.8rem;
  color: #667b75;
  font-size: 0.9rem;
}

.topic-archive {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e8e4d9;
}

.tag-sidebar-list,
.tag-sidebar-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-sidebar-group {
  border-top: 1px solid #e8e4d9;
}

.tag-sidebar-group summary {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.1rem;
  color: #31574e;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.tag-sidebar-group summary span {
  color: #667b75;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-sidebar-group ul {
  padding: 0 0 0.55rem 0.8rem;
}

.tag-sidebar-group li + li {
  margin-top: 0.4rem;
}

.tag-sidebar-group a {
  display: block;
  color: var(--text-col);
  font-size: 0.85rem;
  line-height: 1.4;
  text-decoration: none;
}

.tag-sidebar-group a:hover,
.tag-sidebar-group a:focus {
  color: var(--hover-col);
  text-decoration: underline;
}

.post-archive-date {
  display: block;
  color: #667b75;
  font-size: 0.75rem;
}

.about-profile-photo {
  float: right;
  width: 180px;
  max-width: 40%;
  height: auto;
  margin: 0 0 1.5rem 2rem;
  border-radius: 0.85rem;
  box-shadow: 0 8px 24px rgba(32, 58, 54, 0.12);
}

@media (min-width: 992px) {
  .tag-sidebar {
    position: sticky;
    top: 5.25rem;
    max-height: calc(100vh - 6.25rem);
    overflow-y: auto;
  }
}

@media (max-width: 575px) {
  .about-profile-photo {
    float: none;
    display: block;
    width: 180px;
    max-width: 60%;
    margin: 0 auto 1.5rem;
  }
}

/* --- Softer NHS-blue accent palette and user theme switch --- */

:root {
  color-scheme: light;
  --page-col: #f3f6f7;
  --text-col: #2b3b45;
  --link-col: #276b91;
  --hover-col: #245c79;
  --navbar-col: #fbfcfc;
  --navbar-text-col: #2b3b45;
  --navbar-border-col: #dce5e9;
  --footer-col: #e8eff2;
  --footer-text-col: #465b67;
  --footer-link-col: #276b91;
  --footer-hover-col: #194f70;
  --surface-col: #ffffff;
  --surface-soft-col: #edf3f5;
  --border-col: #dce5e9;
  --muted-col: #5e717c;
  --accent-col: #477d9a;
  --accent-soft-col: #e4eef3;
  --accent-hover-col: #b66f55;
  --hero-start-col: #e7f0f4;
  --hero-end-col: #dce9ef;
  --hero-text-col: #294858;
  --hero-muted-col: #526b79;
  --focus-col: #ad6d36;
  --visited-col: #62577b;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-col: #18252e;
  --text-col: #e1e9ed;
  --link-col: #94c9e6;
  --hover-col: #c1e0f0;
  --navbar-col: #202f38;
  --navbar-text-col: #e1e9ed;
  --navbar-border-col: #394b55;
  --footer-col: #142029;
  --footer-text-col: #bfccd2;
  --footer-link-col: #a7d4eb;
  --footer-hover-col: #d2eaf5;
  --surface-col: #22323c;
  --surface-soft-col: #293b45;
  --border-col: #3a4d57;
  --muted-col: #adbdc5;
  --accent-col: #9ac5db;
  --accent-soft-col: #2c414d;
  --accent-hover-col: #e0a087;
  --hero-start-col: #253b48;
  --hero-end-col: #304b5a;
  --hero-text-col: #edf4f7;
  --hero-muted-col: #c8d8df;
  --focus-col: #f0bf74;
  --visited-col: #d0b8e4;
}

body {
  background-color: var(--page-col) !important;
  color: var(--text-col);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-col);
}

a {
  color: var(--link-col);
}

a:visited {
  color: var(--visited-col);
}

a:hover,
a:focus,
.post-preview a:visited {
  color: var(--hover-col);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-col) !important;
  outline-offset: 3px !important;
}

.navbar-custom {
  background-color: var(--navbar-col) !important;
  border-color: var(--navbar-border-col);
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
  color: var(--navbar-text-col) !important;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
  color: var(--link-col) !important;
}

.navbar-custom .navbar-toggler {
  border-color: var(--navbar-border-col);
}

.navbar-custom .navbar-toggler-icon {
  background-color: var(--navbar-text-col);
  background-image: none;
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / 100% 100% no-repeat;
}

.navbar-custom .theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.navbar-custom .theme-toggle[aria-pressed="true"] {
  color: var(--link-col) !important;
}

.intro-header:not(.big-img) {
  background: linear-gradient(125deg, var(--hero-start-col), var(--hero-end-col)) !important;
}

.intro-header:not(.big-img) .page-heading,
.intro-header:not(.big-img) .post-heading,
.intro-header:not(.big-img) .post-heading h1,
.intro-header:not(.big-img) .post-heading .post-meta,
.intro-header:not(.big-img) .page-heading h1 {
  color: var(--hero-text-col) !important;
}

.intro-header:not(.big-img) .page-heading .page-subheading,
.intro-header:not(.big-img) .post-heading .post-subheading,
.intro-header:not(.big-img) .post-heading .post-meta {
  color: var(--hero-muted-col) !important;
}

.home-intro,
.post-preview,
.tag-sidebar,
.pagination .page-item .page-link {
  border-color: var(--border-col);
  background-color: var(--surface-col);
  color: var(--text-col);
}

.home-eyebrow,
.home-about-link {
  color: var(--accent-hover-col);
}

.post-preview .post-title,
.post-preview a,
.post-preview a:visited {
  color: var(--text-col);
}

.post-preview a:hover,
.post-preview a:focus,
.post-preview .post-read-more {
  color: var(--link-col);
}

.post-preview .post-subtitle,
.post-preview .post-meta,
.post-heading .post-meta,
.text-muted,
.tag-sidebar > p,
.post-archive-date,
.tag-sidebar-group summary span {
  color: var(--muted-col) !important;
}

.post-preview {
  border-left-color: var(--accent-col);
}

.post-preview:hover {
  border-left-color: var(--accent-hover-col);
}

.blog-tags a,
.blog-tags a:visited {
  border-color: var(--border-col) !important;
  background-color: var(--accent-soft-col) !important;
  color: var(--text-col) !important;
}

.blog-tags a:hover,
.blog-tags a:focus {
  border-color: var(--link-col) !important;
  background-color: var(--surface-soft-col) !important;
  color: var(--link-col) !important;
}

.tag-sidebar-group {
  border-color: var(--border-col);
}

.tag-sidebar-group summary {
  color: var(--text-col);
}

.tag-sidebar-group a {
  color: var(--link-col);
}

.pagination .page-item .page-link {
  border-color: var(--border-col);
  color: var(--text-col);
}

.pagination .page-item .page-link:hover,
.pagination .page-item .page-link:focus {
  border-color: var(--link-col) !important;
  background-color: var(--link-col) !important;
  color: var(--page-col) !important;
}

footer,
footer p.text-muted,
footer .footer-links a {
  background-color: var(--footer-col) !important;
  color: var(--footer-text-col) !important;
}

footer a {
  color: var(--footer-link-col) !important;
}

footer a:hover,
footer a:focus {
  color: var(--footer-hover-col) !important;
}

.btn-primary {
  border-color: var(--link-col) !important;
  background-color: var(--link-col) !important;
  color: var(--page-col) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--hover-col) !important;
  background-color: var(--hover-col) !important;
}

.blog-post blockquote {
  border-left-color: var(--accent-hover-col) !important;
  background-color: var(--surface-soft-col) !important;
  color: var(--text-col) !important;
}

.blog-post {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--border-col);
  border-radius: 0.85rem;
  background-color: var(--surface-col);
  color: var(--text-col);
  font-size: 1.125rem;
  line-height: 1.75;
}

.blog-post p,
.blog-post li {
  color: var(--text-col);
}

.blog-post a {
  color: var(--link-col);
  text-decoration-thickness: 0.08em;
}

.blog-post a:visited {
  color: var(--visited-col);
}

.blog-post a:hover,
.blog-post a:focus {
  color: var(--hover-col);
}

.blog-post .caption {
  color: var(--muted-col);
}

.jumbotron,
table tr,
table tr:nth-child(2n) {
  background-color: var(--surface-col);
  color: var(--text-col);
}

.table,
table tr,
table td,
table th {
  border-color: var(--border-col);
}

pre,
.highlight,
.highlight pre {
  background-color: var(--surface-soft-col);
  color: var(--text-col);
}

#beautifuljekyll-search-overlay {
  background-color: var(--page-col);
  color: var(--text-col);
}

#beautifuljekyll-search-overlay input,
#beautifuljekyll-search-overlay a {
  border-color: var(--border-col);
  background-color: var(--surface-col);
  color: var(--text-col);
}

@media (max-width: 1199px) {
  .navbar-custom .theme-toggle {
    padding-left: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
