@import url("pygment_highlights.css");

/* --- General --- */

html {
  font-size: 100%
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  color: #94a3b8;
  position: relative;
  background-color: #0f172a;
  
  overflow-wrap: break-word;
}
p {
  line-height: 1.6;
  margin: 1.875rem 0;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Inter', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
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: #60a5fa;
}
a:hover,
a:focus {
  color: #93c5fd;
}
blockquote {
  color: #64748b;
  font-style: italic;
  padding-bottom: 0.00rem;
  border-left: .20em solid #334155;
  padding-left: 1.3rem;
}
blockquote p:first-child {
  margin-top: 1;
}
hr.small {
  max-width: 6.25rem;
  margin: 1rem auto;
  border-width: 0.25rem;
  border-color: #334155;
  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: #fff;
  text-shadow: none;
  background-color: #93c5fd;
}
::selection {
  color: #fff;
  text-shadow: none;
  background-color: #93c5fd;
}
img::selection {
  color: #fff;
  background: transparent;
}
img::-moz-selection {
  color: #fff;
  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: #0f172a;
  border-bottom: 1px solid #334155;
  box-shadow: 0 1px 0 0 #334155;
  font-family: 'Inter', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  
  -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.2;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.navbar-custom .navbar-brand-avatar {
  height: 1.5rem;
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
}

.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.03em;
}

.navbar-custom .navbar-nav .nav-link {
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1.25rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
  font-weight: 600;
  color: #94a3b8;
}

.navbar-custom .navbar-brand {
  transition: color 0.2s ease;
}

.navbar-toggler {
  font-size: 1rem;
  margin: 0.5rem 0;
  border-color: #334155;
}

.navbar-custom .navbar-toggler:focus,
.navbar-custom .navbar-toggler:hover {
  background-color: initial;
}

.navbar-custom .navbar-toggler:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.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: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .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;
  }

  /* Keep search button icon centered in its hover box */
  .navbar-expand-xl .navbar-nav .nav-link#nav-search-link {
    padding-left: 0.9375rem;
    padding-right: 0.9375rem;
  }
}

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

.navbar-custom .nav-item.dropdown.show {
  background: transparent;
}

.navbar-custom .nav-item.dropdown .dropdown-menu {
  margin-top: 0;
  font-size: 1em;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 0.25rem 0;
  
  min-width: 100%;
  
}

.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item {
  padding: 0.625rem 0.75rem;
  background-color: transparent;
  text-decoration: none !important;
  font-weight: normal;
  color: #94a3b8;
  transition: color 0.2s ease, background-color 0.2s ease;
  
}

.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:hover,
.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:focus {
  color: #93c5fd;
  background-color: rgba(51, 65, 85, 0.5);
}

.navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

@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.75rem;
    border: none;
    border-radius: 0.25rem;
  }

  .navbar-custom .nav-item.dropdown .dropdown-menu .dropdown-item:first-child {
    border: none;
  }
}

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

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

  .navbar-custom .navbar-nav .nav-link {
    padding: 0.5rem 0 0.5rem 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;
  }
}
/* Background box on hover (Hello Nostr–style) */
.navbar-custom .navbar-nav .nav-link {
  border-radius: 0.375rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
  background-color: rgba(51, 65, 85, 0.6);
  color: #f1f5f9;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus {
  color: #93c5fd;
}

.navbar-custom .navbar-brand:focus-visible,
.navbar-custom .navbar-nav .nav-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* Remove square highlight on "Other" dropdown toggle */
.navbar-custom .nav-item.dropdown .dropdown-toggle,
.navbar-custom .nav-item.dropdown .dropdown-toggle:hover,
.navbar-custom .nav-item.dropdown .dropdown-toggle:focus,
.navbar-custom .nav-item.dropdown .dropdown-toggle:focus-visible,
.navbar-custom .nav-item.dropdown .dropdown-toggle[aria-expanded="true"] {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.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: 0.5rem 0;
  border-top: 1px solid #334155;
  margin-top: 3.125rem;
  font-size: 0.875rem;
  background-color: #0f172a;
  
}

footer p.text-muted {
  color: #94a3b8 !important;
}

footer a {
  color: #60a5fa;
  transition: color 0.2s ease;
}

footer a:hover,
footer a:focus {
  color: #93c5fd;
}

footer a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

footer .copyright {
  font-family: 'Inter', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
  color: #94a3b8;
}

footer .theme-by {
  text-align: center;
  margin: 0.25rem 0 0;
  font-family: 'Inter', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

footer .footer-custom-content {
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: 'Inter', 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) {
  footer {
    padding: 0.75rem 0;
  }
  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 #334155;
  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: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #94a3b8;
}

.post-preview a:focus,
.post-preview a:hover {
  text-decoration: none;
  color: #93c5fd;
}

.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: #64748b;
  font-size: 1.125rem;
  font-style: italic;
  margin: 0 0 0.625rem;
  font-family: 'Lora', 'Times New Roman', serif;
}
.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: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  margin: 1.875rem 0;
}

.blog-tags span {
  color: #94a3b8;
  opacity: 0.8;
}

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

.blog-tags a {
  color: #94a3b8;
  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: #94a3b8;
  border-color: #94a3b8;
}

.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: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#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: #64748b;
  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: 0.5rem;
}
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: 3px 3px 3px #000;
}
.intro-header .page-heading h1 {
  margin-top: 0;
  font-size: 2.6rem;
}
.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.1875rem;
  line-height: 1.1;
  display: block;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  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: 800;
}
.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: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  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-section.has-img .no-img {
  margin-top: 0;
  background-color: #1e293b;
  margin: 0 0 2.5rem;
  padding: 1.25rem 0;
  box-shadow: 0 0 0.3125rem #334155;
}
/* Many phones are 320 or 360px, so make sure images are a proper aspect ratio in those cases */
.header-section.has-img .intro-header.no-img {
  display: none;
}
@media (max-width: 365px) {
  .header-section.has-img .intro-header.no-img {
    display: block;
  }
  .intro-header.big-img {
    width: 100%;
    height: 13.75rem;
  }
  .intro-header.big-img .page-heading,
  .intro-header.big-img .post-heading {
    display: none;
  }
  .header-section.has-img .big-img {
    margin-bottom: 0;
  }
}
@media (max-width: 325px) {
  .intro-header.big-img {
    height: 12.5rem;
  }
}

#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: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.625rem 0.3125rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0;
  color: #94a3b8;
}
@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: #fff;
  border: 1px solid #93c5fd;
  background-color: #93c5fd;
}

/* --- Tables --- */

table {
  padding: 0;
}
table tr {
  border-top: 1px solid #334155;
  background-color: #1e293b;
  margin: 0;
  padding: 0;
}
table tr:nth-child(2n) {
  background-color: #1e293b;
}
table tr th {
  font-weight: bold;
  border: 1px solid #334155;
  text-align: left;
  margin: 0;
  padding: 0.375rem 0.8125rem;
}
table tr td {
  border: 1px solid #334155;
  text-align: left;
  margin: 0;
  padding: 0.375rem 0.8125rem;
}
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: #cbd5e1;
  background-color: #1e293b;
  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;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
}
.highlight pre {
  border: none;
  background: none;
  margin: 0;
}
.highlight > pre {
  background-image: linear-gradient(
    rgba(15,23,42,0.5), rgba(15,23,42,0.5) 1.5em, rgba(30,41,59,0.5) 1.5em, rgba(30,41,59,0.5) 3em);
  background-size: auto 3em;
  background-position-y: 0.625rem;
  border: 1px solid #334155;
  border-left: 0.4375rem solid #334155;
}
.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: #64748b;
  border-radius: 0;
  border-right: 2px solid #334155;
}

/* 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 #334155;
  border-left-width: 0.3125rem;
  border-radius: 0.3125rem 0.1875rem 0.1875rem 0.3125rem;
}

.box-note {
  background-color: #1e293b;
  border-left-color: #60a5fa;
}

.box-warning {
  background-color: #1e293b;
  border-left-color: #eab308;
}

.box-error {
  background-color: #1e293b;
  border-left-color: #f87171;
}

.box-success {
  background-color: #1e293b;
  border-left-color: #4ade80;
}

/* --- 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: #64748b;
  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: #334155;
}

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

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

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

/* Search bar */
#beautifuljekyll-search-overlay {
  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: #94a3b8;
  font-size: 2rem;
  line-height: 2rem;
  font-weight: bold;
}
#nav-search-exit:hover {
  color: #cbd5e1;
}
#nav-search-input {
  text-align: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: auto;
  display: block;
  font-size: 2rem;
  width: 50%;
  transition: width 300ms ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  color: #1e293b;
  border-radius: 5rem;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 2px 12px rgba(0, 0, 0, 0.08);
  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: rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(96, 165, 250, 0.4);
  outline: none;
  border-color: rgba(96, 165, 250, 0.6);
}

#nav-search-input::placeholder {
  color: #64748b;
}

#search-results-container {
  list-style: none;
  padding-left: unset;
  margin-top: 1.5rem;
  color: #94a3b8;
  font-size: 1.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
}
#search-results-container a {
  color: #94a3b8;
  text-decoration: none;
}
#search-results-container a:hover {
  color: #93c5fd;
  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;
  }
}
table {
  width:100%;
  border-collapse:collapse;
}
.btn-primary {
  color: #94a3b8 !important;
  font-weight: 600;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-color: #334155 !important;
}
.btn-primary:hover {
  color: #fff !important;
  background-color: #334155 !important;
  border-color: #60a5fa !important;
}
.btn-primary:focus {
  color: #fff !important;
  background-color: #334155 !important;
  border-color: #60a5fa !important;
}
.btn-primary:active {
  color: #fff !important;
  background-color: #334155 !important;
  border-color: #60a5fa !important;
}
.btn-group-lg > .btn, .btn-lg {
  padding: .5rem 1rem;
  font-size: 1.1rem !important;
  line-height: 1.5;
  border-radius: 2rem;
  border: 1px solid #334155;
  border-color: #334155 !important;
}
@media (max-width: 450px) {
  .btn-group-lg > .btn, .btn-lg {
    padding: .5rem 1rem;
    font-size: 0.9rem !important;
    line-height: 1.5;
    border-radius: 3rem;
  }
  .home-hero-btn {
    border-radius: 0.5rem !important;
  }
}
.centered {
  text-align: center;
}
hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  border-top: 1px solid #334155;
}
pre {
  display: block;
  font-size: 87.5%;
  color: #94a3b8 !important;
}
.container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
  width: 99.9%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
.p-5 {
  padding: 0.6rem !important;
}
@media (max-width: 450px) {
.intro-header .page-heading .page-subheading,
.intro-header .post-heading .post-subheading {
  font-size: 1.0875rem;
  line-height: 1.1;
  display: block;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  margin: 0.625rem 0 0;
 }
}
button {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  border-radius: 1.2rem !important;
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  padding: 0.3em 0.3em 0.3em 0.3em;
}
button:hover {
  color: #fff !important;
  background-color: #334155 !important;
  border-color: #60a5fa !important;
}

/* --- Homepage: hide large title/subheader (optional look) --- */

.page-home .header-section {
  display: none !important;
}

/* Prevent horizontal overflow on homepage; keep content centered */
.page-home {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.page-home [role="main"].container-md {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  overflow-x: hidden;
}

.page-home [role="main"] .row,
.page-home [role="main"] .row > div,
.page-home [role="main"] .before-content,
.page-home .home-card-grid {
  max-width: 100%;
  min-width: 0;
}

/* Ensure column padding is inside width so grid doesn't overflow */
.page-home [role="main"] .row > div {
  box-sizing: border-box;
}

/* Restore top spacing so "New here?" hero clears the fixed navbar */
.page-home [role="main"] {
  padding-top: 3rem;
}

/* Center home page content on mobile and tablet */
@media (max-width: 1199px) {
  .page-home [role="main"] .row {
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
  }
  .page-home [role="main"] .row > div {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

@media (min-width: 1200px) {
  .page-home [role="main"] {
    padding-top: 4rem;
  }
  /* Widen homepage content so three cards fit per row (Hello Nostr style); never exceed viewport */
  .page-home [role="main"].container-md {
    width: 100%;
    max-width: min(1280px, 100vw);
  }
  .page-home [role="main"] .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
  }
  .page-home [role="main"] .row > div {
    flex: 0 0 90%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-home .home-card-grid {
    grid-template-columns: repeat(3, 1fr);
    min-width: 0;
  }
}

/* --- Homepage hero and card grid --- */

.home-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home-hero-tagline {
  color: #94a3b8;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.home-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.home-hero-btn {
  text-decoration: none;
  border-radius: 0.5rem !important;
}

.home-section {
  margin-bottom: 2.5rem;
  margin-top: 2.5rem;
}

.home-section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #94a3b8;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.home-card {
  display: block;
  min-width: 0; /* allow grid item to shrink below content size */
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.home-card-image-wrap {
  display: block;
  min-width: 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.home-card-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.home-card:hover .home-card-image,
.home-card:focus .home-card-image {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.home-card-has-image {
  padding: 0;
}

.home-card-has-image .home-card-title {
  padding: 0.625rem 1.25rem 0.25rem 1.25rem;
  margin: 0;
}

.home-card-has-image .home-card-desc {
  padding: 0 1.25rem 0.875rem;
  margin: 0;
}

.home-card:hover,
.home-card:focus {
  border-color: #60a5fa;
  background-color: #334155;
  color: inherit;
  text-decoration: none;
}

.home-card:hover .home-card-title,
.home-card:focus .home-card-title {
  color: #fff;
  font-weight: 800;
}

.home-card:hover .home-card-desc,
.home-card:focus .home-card-desc {
  color: #cbd5e1;
}

.home-card:hover .home-card-meta,
.home-card:focus .home-card-meta {
  color: #94a3b8;
}

.home-card:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.home-card-emoji {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.home-card-icon {
  display: block;
  margin-bottom: 0.5rem;
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.home-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  color: #94a3b8;
  overflow-wrap: break-word;
  min-width: 0;
}

.home-card-desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  overflow-wrap: break-word;
  min-width: 0;
}

.home-card-meta {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.5rem 0 0;
  line-height: 1.3;
  font-style: italic;
}

/* Directory jump cards (wallet, node, multisig) – mini cards 3 per row */
.dir-jump-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.dir-jump-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0.75rem 1rem;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.dir-jump-card:hover,
.dir-jump-card:focus {
  border-color: #60a5fa;
  background-color: #334155;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.dir-jump-card:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.dir-jump-card-emoji {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.dir-jump-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 768px) {
  .dir-jump-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Articles page jump links */
.article-jump-links {
  text-align: center;
  margin-bottom: 2rem;
}

.article-jump-link {
  color: #60a5fa;
  text-decoration: none;
}

.article-jump-link:hover,
.article-jump-link:focus {
  color: #93c5fd;
  text-decoration: underline;
}

/* QnA page language links and footer */
.qna-language-links {
  text-align: center;
  margin-bottom: 2rem;
}

.qna-language-link {
  color: #60a5fa;
  text-decoration: none;
}

.qna-language-link:hover,
.qna-language-link:focus {
  color: #93c5fd;
  text-decoration: underline;
}

.qna-cards-block {
  margin-top: 2rem;
}

.qna-footer-line {
  text-align: center;
  margin-top: 2rem;
  color: #64748b;
  font-size: 0.9375rem;
}

.qna-footer-line a {
  color: #60a5fa;
}

@media (max-width: 767px) {
  .home-card-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Floating support CTA --- */

@keyframes support-cta-attract {
  0%, 72% {
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
  }
  78%, 85% {
    border-color: #60a5fa;
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.35);
  }
  96%, 100% {
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
  }
}

.support-cta {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.625rem 1rem;
  background-color: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 0.5rem;
  font-family: 'Inter', 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.4);
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
  animation: support-cta-attract 25s ease-in-out infinite;
}

.support-cta:hover,
.support-cta:focus {
  color: #fff;
  background-color: #1e293b;
  border-color: #60a5fa !important;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(96, 165, 250, 0.35) !important;
  animation: none;
}

.support-cta:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.support-cta-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #60a5fa;
  margin-top: 0.375rem;
}

.support-cta:hover .support-cta-sub,
.support-cta:focus .support-cta-sub {
  color: #93c5fd;
}

@media (max-width: 767px) {
  .support-cta {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}