:root {
   --background: #111111;
   --foreground: #f7c844;
   --app-header-foreground: #3ba8e0;
   --sidebar: black;
   --text-color: #eeeeee;
   --title-color: #f7c844;
}


* {
   box-sizing: border-box
}

html {
   line-height: 1.6;

   body {
      margin: 0;
      font-family: sans-serif;
      background: var(--background);
      color: var(--text-color);
   }

   h1,
   h2,
   h3,
   h4,
   h5,
   h6 {
      color: #fff
   }

   a {
      color: var(--foreground);
      transition: color .35s;
      text-decoration: none
   }

   a:hover {
      color: #fff
   }

   code {
      font-family: monospace, monospace;
      font-size: 1em;
      color: rgba(175, 186, 196, .8);
      text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
      -moz-text-size-adjust: 100%;
      -webkit-text-size-adjust: 100%
   }

   pre {
      font-size: 1rem;
      line-height: 1.2em;
      margin: 0;
      overflow: auto
   }

   pre code {
      font-size: .8em
   }
}

::selection {
   background: rgba(175, 186, 196, .25)
}

::-moz-selection {
   background: rgba(175, 186, 196, .25)
}

.app-header {
   padding: 2.5em;
   background: var(--sidebar);
   color: var(--app-header-foreground);
   text-align: center
}

.post-title {
   color: var(--title-color)
}

.app-header-avatar {
   width: 15rem;
   height: 15rem;
   border-radius: 100%;
   border: .5rem solid var(--foreground);
}

.app-container {
   padding: 2.5rem
}

.app-header-social {
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2em;
}

.app-header-social a:not(:last-child) {
   margin-right: .4em
}

.app-header-title {
   color: var(--title-color);
   display: block;
   font-size: 2em;
   margin: .67em 0;
   font-weight: 700
}

@media(min-width:940px) {
   .app-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 20rem;
      min-height: 100vh
   }

   .app-container {
      max-width: 65rem;
      margin-left: 20rem
   }
}

.error-404 {
   text-align: center
}

.error-404-title {
   text-transform: uppercase
}

.icon {
   display: inline-block;
   width: 1em;
   height: 1em;
   margin-top: -.125em
}

.pagination {
   display: block;
   list-style: none;
   padding: 0;
   font-size: .8em;
   text-align: center;
   margin: 3em 0
}

.page-item {
   display: inline-block
}

.page-item .page-link {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 1.8rem;
   height: 1.8rem
}

.page-item.active .page-link {
   border-radius: 2em;
   background: var(--foreground);
}



.post-meta>div {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: .2em;
   font-size: .8em
}

.post-meta>div>.icon {
   margin-right: .4em
}

.post-content>pre,
.post-content .highlight {
   margin: 1em 0
}

.post-content>pre,
.post-content .highlight>pre,
.post-content .highlight>div {
   border-left: .4em solid rgba(87, 204, 138, .8);
   padding: 1em
}

.post-content blockquote {
   border-left: .4em solid rgba(87, 204, 138, .8);
   margin: 1em 0;
   padding: .5em 1em;
   background: #242930
}

.post-content blockquote p {
   margin: .5em 0
}

.post-content img {
   max-width: 100%
}

.posts-list {
   padding: 0
}

.posts-list-item {
   list-style: none;
   padding: .4em 0
}

.posts-list-item:not(:last-child) {
   border-bottom: 1px dashed rgba(255, 255, 255, .3)
}

.posts-list-item-description {
   display: flex;
   align-items: center;
   font-size: .8em
}

.posts-list-item-description>.icon {
   margin-right: .4em
}

.posts-list-item-separator {
   margin: 0 .4em
}

.tag {
   display: inline-block;
   margin-right: .2em;
   padding: 0 .6em;
   font-size: .9em;
   border-radius: .2em;
   white-space: nowrap;
   background: rgba(255, 255, 255, .1);
   transition: color .35s, background .35s
}

.tag:hover {
   transition: color .25s, background .05s;
   background: rgba(255, 255, 255, .3)
}

.tags-list {
   padding: 0
}

.tags-list-item {
   display: flex;
   align-items: center;
   list-style: none;
   padding: .4em 0
}

.tags-list-item>.icon {
   margin-right: .4em
}

.tags-list-item:not(:last-child) {
   border-bottom: 1px dashed rgba(255, 255, 255, .3)
}

@media(min-width:450px) {
   .tags-list {
      display: flex;
      flex-wrap: wrap
   }

   .tags-list-item {
      width: calc(50% - 1em)
   }

   .tags-list-item:nth-child(even) {
      margin-left: 1em
   }

   .tags-list-item:nth-last-child(2) {
      border: none
   }
}


.app-container {
   max-width: 1600px
}

#combatpatrol figure {
   padding: 10px
}

#combatpatrol figure img {
   max-width: 100%
}

h2 {
   color: var(--foreground)
}

#post-content {
   max-width: 1e3px
}

.home-page-summaries ul {
   list-style: none;
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
   gap: 16px;
   padding: 0;
   margin: 0
}

.home-page-summaries li {
   border: 1px solid #ddd;
   border-radius: 8px;
   padding: 16px;
   box-sizing: border-box
}

.home-page-summaries li img {
   width: 100%;
   aspect-ratio: 1/1
}

.home-page-summaries li span {
   margin-top: 8px;
   font-size: 16px;
   text-align: center;
   display: block;
   font-size: 1.2rem
}

.pos {
   padding: 10px;
   width: 300px;
   background: #fff;
   border-radius: 10px
}

.fancy-toc {
   margin: 20px 0;
   padding: 15px;
   border: 1px solid #ddd;
   border-radius: 8px;
   background: linear-gradient(135deg, #f9f9f9, #fff);
   box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
   font-family: arial, sans-serif;
   max-width: 300px;
   position: sticky;
   top: 20px;
   float: right;
   margin-left: 20px
}

.fancy-toc .toc-title {
   font-size: 18px;
   font-weight: 700;
   margin-bottom: 10px;
   text-align: center;
   border-bottom: 2px solid #ddd;
   padding-bottom: 5px;
   color: #333
}

.fancy-toc .toc-list {
   list-style: none;
   padding: 0;
   margin: 0
}

.fancy-toc .toc-item {
   margin: 10px 0
}

.fancy-toc .toc-link {
   text-decoration: none;
   font-size: 14px;
   color: #007bff;
   display: block;
   transition: all .3s ease
}

.fancy-toc .toc-link:hover {
   color: #0056b3;
   padding-left: 5px
}

.fancy-toc .toc-link:focus {
   color: #00376b;
   font-weight: 700
}

html {
   scroll-behavior: smooth
}

.factionlogo {
   margin: 0;
   margin-top: 15px;
   padding-right: 20px
}

.factionlogo img {
   width: 100px
}

#faction header h1 {
   margin-top: 6px;
   color: var(--foreground);
   font-size: 24pt;
   margin-bottom: 0;
   margin-top: 0
}

#faction header .grid-container {
   display: flex;
   vertical-align: top
}

img[src$=".svg"].kill-team-orange {
   filter: invert(37%)sepia(77%)saturate(790%)hue-rotate(335deg)brightness(93%)contrast(89%)
}

img[src$=".svg"] {
   filter: invert(1)
}



img.pos[src$=".svg"] {
   filter: invert(0)
}

img.faction-icon[src$=".svg"] {
   filter: invert(0);
   filter: drop-shadow(0 0 2px white);

}

.default-icon {
   display: inline-block;
   width: 100%;
   height: 200px;
   color: #fff;
   font-size: 100px;
   text-align: center;
   line-height: 200px;
   border: 1px solid #333;
   border-radius: 5px;
   font-family: Arial, sans-serif
}

.image-popup-overlay {
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, .8);
   z-index: 1000;
   justify-content: center;
   align-items: center
}

.image-popup-overlay img {
   max-width: 90%;
   max-height: 90%;
   border: 2px solid #fff;
   border-radius: 4px
}

.image-popup-overlay .close {
   position: absolute;
   top: 20px;
   right: 20px;
   font-size: 24px;
   color: #fff;
   cursor: pointer
}

.image-popup {
   max-width: 100%;
   max-height: 100%;
   object-fit: contain
}

.card-container {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 1rem;
   align-items: stretch
}

.card {
   background-color: #fff;
   border: 1px solid #e1e1e1;
   border-radius: 5px;
   margin-bottom: 30px;
   box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
   overflow: hidden;
   border-radius: 30px;
   display: flex;
   flex-direction: column;
   margin-top: 0;
   width: 160px
}

.card h2 {
   color: green;
   width: auto
}

.card-image img {
   height: 100px;
   padding: 1rem;
   filter: invert(0);
   aspect-ratio: 1/1;
   margin-left: auto;
   margin-right: auto
}

.card-image {
   width: 100%;
   display: flex
}

.card-content {
   color: #000
}

.blog .card-content {
   height: 250px
}

.card-content h2 {
   font-size: 1.2rem;
   margin: 0 0 10px;
   text-align: center;
   padding: 0 1rem
}

.card-content h2 a {
   text-decoration: none;
   color: #333
}

.card-content .date {
   color: #888;
   font-size: .9em;
   text-align: center
}

h2 {
   position: relative;
   width: fit-content
}

.header-container {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 10px
}

.paintedcardcontainer {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
   gap: 16px;
   margin: 0 auto;
   max-width: 1200px
}

.paintedcard h3 {
   height: 3rem
}

.paintedcard {
   border: 1px solid #ccc;
   border-radius: 10px;
   padding: 1rem;
   text-align: center;
   height: 400px
}

.paintedcardimage img {
   max-width: 100%;
   max-height: 100%;
   height: auto;
   width: auto;
   display: block;
   margin: 0 auto
}

#blog #bluesky-comments img {
   width: 3rem;
   height: 3rem
}

#combatpatrol toc .stuck-top {
   background: pink
}

#combatpatrol header h1 {
   margin-top: 6px;
   color: var(--foreground);
   font-size: 24pt;
   margin-bottom: 0;
   margin-top: 0
}

#combatpatrol header .grid-container {
   display: flex;
   vertical-align: top
}

#combatpatrol .post-content {
   display: grid;
   grid-template-columns: repeat(auto-fill, 300px);
   align-content: end
}

#combatpatrol .post-content h2 {
   grid-column: 1/-1
}

#combatpatrol .post-content figure {
   margin: 1rem;
   align-content: center
}

#combatpatrol .post-content p {
   display: contents;
   grid-column: 1/-1
}

@view-transition {
   navigation: auto;
}

.comments {
   font-family: Arial, sans-serif;
   max-width: 700px;
   margin-top: 40px
}

.comment {
   display: flex;
   align-items: flex-start;
   margin-bottom: 20px;
   padding-left: 20px;
   border-left: 3px solid #eee
}

.comment img {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   margin-right: 12px;
   margin-top: 2px
}

.comment-body {
   flex: 1
}

.comment-author {
   font-weight: 700;
   color: #858383;
   margin-bottom: 2px
}

.comment-text {
   margin: 0
}

.meta {
   margin: 10px 0 30px;
   color: #888
}

.meta span {
   margin-right: 15px
}

.bsky-link,
.mastodon-link {
   margin: 10px 0;
   font-size: .95em
}

.bsky-link a,
.mastodon-link a {
   text-decoration: none;
   color: #36c
}

.bsky-link a:hover,
.mastodon-link a:hover {
   text-decoration: underline
}

@media(max-width:1000px) {
   .fancy-toc {
      margin: 20px 0;
      padding: 15px;
      border: 1px solid #ddd;
      border-radius: 8px;
      background: linear-gradient(135deg, #f9f9f9, #fff);
      box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
      font-family: arial, sans-serif;
      max-width: 300px;
      position: initial;
      top: 20px;
      float: none;
      margin-left: 20px
   }
}

@media(max-width:940px) {
   h1 {
      font-size: x-large
   }

   h1 {
      font-size: large
   }

   .app-header {
      padding: 0;
      margin: 0;
      padding-top: 5px
   }

   .app-header-avatar {
      width: 100px;
      height: 100px;
      border: 2px solid var(--foreground)
   }

   .header-container {
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 30px
   }
}

@media(min-width:939px) {

   #model-page .image-grid,
   #blog .image-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
      grid-gap: 16px;
      margin-top: 1em
   }

   #model-page .image-tile img,
   #blog .image-tile img {
      width: 100%;
      max-width: 500px;
      display: block
   }
}

@media(max-width:600px) {
   .card {
      max-width: 100%;
      flex: 1 1 100%
   }

   #model-page .image-grid,
   #blog .image-grid {
      display: grid;
      grid-template-columns: 1;
      grid-gap: 16px;
      margin-top: 1em
   }

   body {
      margin: 0
   }

   main {
      margin: 0
   }

   .home-page-summaries li {
      flex: 1 1 calc(100% - 16px)
   }

   main.app-container {
      border: 0;
      padding: 0
   }

   #model-page .image-tile img,
   #blog .image-tile img {
      width: 100%
   }
}

.toc .active {
   font-weight: 700 !important
}

.calendar {
   width: 100%;
   border-collapse: collapse;
   margin: 1em 0;
   table-layout: fixed;
   border: 1px solid #ccc;
   font-family: system-ui, sans-serif
}

.calendar th {
   background-color: #f4f4f4;
   text-align: center;
   padding: .5em;
   font-weight: 600;
   border-bottom: 1px solid #ccc
}

.calendar td {
   border: 1px solid #e0e0e0;
   padding: .5em;
   vertical-align: top;
   height: 100px;
   position: relative;
   background-color: #fff
}

.calendar td div:first-child {
   font-weight: 700;
   margin-bottom: .25em
}

.calendar td a {
   display: block;
   font-size: .85em;
   text-decoration: none;
   color: #36c;
   margin: .15em 0;
   line-height: 1.2;
   word-break: break-word
}

.calendar td a:hover {
   text-decoration: underline
}

.calendar-nav strong {
   padding-left: 1rem;
   padding-right: 1rem
}

.calendar-nav {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin: 1em 0
}

.calendar-nav a {
   color: #fff;
   text-decoration: none;
   font-weight: 700
}

.calendar-nav a:hover {
   text-decoration: underline
}

@media(max-width:600px) {
   .calendar td {
      height: auto;
      padding: .3em
   }

   .calendar td div:first-child {
      font-size: .9em
   }

   .calendar td a {
      font-size: .75em
   }
}

.blog-nav .prev {
   padding-right: 1rem
}

.blog-nav .next {
   padding-left: 1rem
}

.main-page-game-logo {
   width: 300px;
   height: 300px;
   height: auto;
   object-fit: contain;
   aspect-ratio: 1/1
}

.main-page-game {
   position: relative;
   display: inline-block;
   display: inline-block;
   margin: 20px;
   text-align: center;
   height: 20rem
}

.main-page-game h2 {
   position: absolute;
   width: 100%
}

.card-pair {
   display: flex;
   flex-wrap: wrap;
   margin: 5px
}

.card-item {
   width: 25rem;
   margin: 1px
}

#malifaux .card-pair img {
   width: 25rem
}

.card-clip-35 {
   display: block;
   clip-path: inset(0 0 35% 0)
}

.card-pair {
   display: flex;
   gap: 1rem;
   align-items: flex-start
}

.card-item {
   margin: 0
}

.card-modal {
   position: fixed;
   inset: 0;
   display: none;
   z-index: 9999;
   isolation: isolate
}

.card-modal:target {
   display: block
}

.card-modal__backdrop {
   position: absolute;
   inset: 0;
   background: rgba(0, 0, 0, .68);
   z-index: 0
}

.card-modal__dialog {
   position: relative;
   margin: 4vh auto;
   max-width: 96vw;
   max-width: 1200px;
   background: #111;
   border-radius: .75rem;
   padding: 1rem;
   z-index: 1
}

.card-modal__close {
   position: absolute;
   top: .25rem;
   right: .5rem;
   text-decoration: none;
   font-size: 2rem;
   line-height: 1;
   color: #fff
}

.card-modal__content {
   display: flex;
   gap: 1rem;
   align-items: flex-start;
   justify-content: center;
   flex-wrap: wrap
}

.card-modal__content img {
   max-height: 90vh;
   height: auto;
   width: auto;
   max-width: 48%
}

@media(max-width:900px) {
   .card-modal__content img {
      max-width: 100%
   }
}

.sr-only {
   position: absolute !important;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0 0 0 0);
   white-space: nowrap;
   border: 0
}



.card-missing {
   padding: .5rem .75rem;
   background: #300;
   color: #fff;
   border-radius: .5rem
}

#malifaux {

   #crew-rules,
   #masters,
   #crew,
   #versatile,
   .crew-upgrades {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr))
   }

   .malifaux-crew-list-item {
      list-style-type: none;
   }

   .malifaux-crew-list-item a {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 2rem;
      margin-bottom: 1rem;

   }
}