@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

h1[id], h2[id], h3[id], h4[id], div[id] {
    scroll-margin-top: 50px;
}

.david {background: blue;}

.tag-list:before{content:"\1f3f7";font-size:1.7em;}
.tag-list {word-spacing:10px; margin:0px; padding:0px;}
.post-meta {line-height:11px}
.post-list-h3 {margin-bottom:0px;}
.post-list-li {line-height:24px;}

/* Post details - collapsed by default, shown when in viewport */
.post-details {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.post-details.visible {
    height: auto;
    opacity: 1;
}

img {
    padding: 5px;
}

.center-image, img {
    margin: 0 auto;
    display: block;
}

.left-image {
    display: unset;
}

.language-nowrap {
    white-space: pre-wrap;
}

.wrap pre {
    white-space: pre-wrap;
}

.wrapall pre,
.wrapall pre code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
}

/**********************
 * TOC
 */
.navbar-nav {
    list-style: none;
    margin-left: 0px;
    padding-left: 0px;
}

nav[data-toggle="toc"] .nav > li > a:focus, nav[data-toggle="toc"] .nav > li > a:hover {
    color: #4B9CD3;
    border-left: 1px solid #4B9CD3;
}

nav[data-toggle="toc"] .nav-link.active, nav[data-toggle="toc"] .nav-link.active:focus, nav[data-toggle="toc"] .nav-link.active:hover {
    color: #4B9CD3;
    border-left: 2px solid #4B9CD3;
}

.sticky-top {
    top: 82px;
    position: -webkit-sticky;
}

nav[data-toggle="toc"] .nav > li > a {
    padding-left: 10px;
}

nav[data-toggle="toc"] .nav-link.active {
    padding-left: 10px;
} 

.toc-indent {
    padding-left: 5px;
}

.navbar-nav > .toc-indent > a::before {
    content: "›";
    margin-right: 8px;
    color: #666;
    display: inline-block;
    transition: transform 0.2s ease;
}

.navbar-nav > .toc-indent.toc-active > a::before {
    transform: rotate(90deg);
}

/**********************
 * prev / next for series
 */
.PageNavigation {
  font-size: 20px;
  display: block;
  width: auto;
  overflow: hidden;
  margin-bottom: 20px;
}

.PageNavigation a {
  display: block;
  width: 50%;
  float: left;
  margin: 1em 0;
}

.PageNavigation .next {
  text-align: right;
  float: right;
}


/**********************
 * Overwrite bootstrap for header nav
 */
.site-header {
    border-bottom: 1px solid #333;
}

.site-header .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0 !important;
}

.site-title {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    color: #e6e6e6 !important;
    letter-spacing: 0;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.site-title:hover {
    color: #fff !important;
}

.site-nav {
    line-height: 1;
}

.site-nav .trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav .page-link-site {
    color: #999;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.site-nav .page-link-site:hover {
    color: #e6e6e6;
    background: rgba(255, 255, 255, 0.05);
}

.site-nav .page-link-site.bmc {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #777;
}

.site-nav .page-link-site.bmc:hover {
    color: #e6e6e6;
}

.site-nav .page-link-site.bmc img {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.site-nav .page-link-site.bmc:hover img {
    opacity: 1;
}

.site-nav .page-link-site.bmc:last-child {
    padding: 0.4rem;
    padding-right: 0;
}

.site-nav .page-link-site.bmc:last-child img {
    width: 24px;
    height: 24px;
}

/* Mobile header styles */
@media (max-width: 600px) {
    .site-header .wrapper {
        display: block;
        padding-right: 15px;
    }

    .site-nav {
        position: absolute;
        top: 9px;
        right: 15px;
        background-color: #1d1d1d;
        border: 1px solid #333;
        border-radius: 5px;
    }

    .site-nav label[for="nav-trigger"] {
        display: block;
        width: 36px;
        height: 36px;
        cursor: pointer;
        z-index: 2;
    }

    .site-nav .menu-icon {
        display: block;
        width: 36px;
        height: 26px;
        line-height: 0;
        padding-top: 10px;
        text-align: center;
    }

    .site-nav .menu-icon > svg {
        fill: #999;
    }

    .site-nav .trigger {
        display: none;
        clear: both;
        flex-direction: column;
        gap: 0;
    }

    .site-nav input:checked ~ .trigger {
        display: flex;
        flex-direction: column;
        padding-bottom: 5px;
    }

    .site-nav .page-link-site {
        display: block;
        padding: 8px 15px;
        margin-left: 0;
        border-radius: 0;
        text-align: right;
    }

    .site-nav .page-link-site.bmc {
        justify-content: flex-end;
    }

    .site-nav .page-link-site.bmc:last-child {
        padding: 8px 15px;
    }
}

th a {
   color: inherit;
}

.post-content h1, .post-content h2 { color: #DB2C17; }

.post-content h3 { color: #4B9CD3; }

.post-content h4 { color: #FFFF99; }

.wrapper { max-width: calc(1100px - (30px * 2)); }

table.details {
    width: 70%;
}

/* Markdown tables */
.post-content table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 1em 0;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
}

.post-content table th,
.post-content table td {
    padding: 0.85em 1.25em;
    text-align: left;
    border: none;
}

.post-content table th {
    background: #252542;
    color: #e6e6e6;
    font-weight: 600;
}

.post-content table tbody tr:hover {
    background: #2a2a4a;
}

/* Flag display */
.flag-container {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75em;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(159, 239, 0, 0.3);
    border-radius: 8px;
    padding: 0.5em 1em;
    margin: 0.5em 0;
}

.flag-label {
    color: #9fef00;
    font-weight: 600;
    white-space: nowrap;
}

.flag-value {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    color: #e6e6e6;
    line-height: 1.4;
    border-top: 2px solid rgba(0, 0, 0, 0.6);
    border-left: 2px solid rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

/* HackVent tables - green theme */
.post-content table.hvtable {
    background: #0d1f0d;
}

.post-content table.hvtable th {
    background: #143314;
    color: #9fef00;
}

.post-content table.hvtable tbody tr:hover {
    background: #1a3a1a;
}

img.float {
    float: right;
    margin-left: 50px;
    margin-right: 20px;
}

img.float-left {
    float: left;
    margin-left: 20px;
    margin-right: 50px;
}

ul.toc {
    list-style-type: none;
}



/**********************
 * Sticky Nav Bar on Top 
 */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #1d1d1d;
    z-index: 1200;
}

.page-content h2::before {
    content: " ";
    margin-top: -70px;
    height: 70px;
    display: block;
}

.page-content h3::before {
    content: " ";
    margin-top: -70px;
    height: 70px;
    display: block;
}

.img-av {
    width: 64px;
    height: 64px;
    border-radius: 6px;
    display: unset;
    margin: 2px;

}

.img-os {
    width: 32px;
    height: 32px;
    display: unset;
}

.include_image {
    padding-bottom: 15px;
}

.diff-Insane {
    color: #cfd0d1;
    font-weight: bold;
    text-shadow: 2px 2px 4px #FF0000;
}

.diff-Hard {
    color: #f70000;
    font-weight: bold;
}

.diff-Medium {
    color: #f9ab37;
    font-weight: bold;
}

.diff-Easy {
    color: #8DC743;
    font-weight: bold;
}

.diff-Very {
    color: #a900f9;
    font-weight: bold;
}

.obe {
    color: grey;
}

/**************************
 * HTB Card Styling
 */
.htb-card {
    background: linear-gradient(135deg, #1a2332 0%, #141d2b 100%);
    border: 1px solid #2d3748;
    border-radius: 12px;
    margin: 1.5em 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.htb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.25em;
    background: linear-gradient(90deg, rgba(159, 239, 0, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid #2d3748;
    position: relative;
    overflow: hidden;
}

.htb-card-header::before {
    content: '';
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.platform-htb .htb-card-header::before {
    background-image: url('/assets/icons/htb-favicon.png');
}

.platform-vulnlab .htb-card-header::before {
    background-image: url('/assets/icons/vulnlab-logo.png');
}

.platform-barbhack .htb-card-header::before {
    background-image: url('/assets/icons/barbhack-logo.png');
}

.platform-uhc .htb-card-header::before {
    background-image: url('/assets/icons/uhc-logo.png');
}

.htb-box-info {
    display: flex;
    align-items: center;
    gap: 1em;
}

.htb-box-icon img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid #9fef00;
    box-shadow: 0 0 15px rgba(159, 239, 0, 0.3);
    transition: box-shadow 0.3s ease;
    object-fit: contain;
}

.htb-box-icon:hover img {
    box-shadow: 0 0 25px rgba(159, 239, 0, 0.5);
}

.htb-box-title {
    display: flex;
    flex-direction: column;
}

.htb-box-name {
    font-size: 1.75em;
    font-weight: bold;
    color: #9fef00;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(159, 239, 0, 0.3);
    transition: text-shadow 0.3s ease;
}

.htb-box-name:hover {
    text-shadow: 0 0 20px rgba(159, 239, 0, 0.6);
    color: #9fef00;
}

.htb-box-subtitle {
    font-size: 0.85em;
    color: #a4b1cd;
}

.htb-difficulty-badge {
    padding: 0.4em 0.9em;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.htb-difficulty-badge.diff-Easy {
    background: rgba(141, 199, 67, 0.2);
    border: 1px solid #8DC743;
}

.htb-difficulty-badge.diff-Medium {
    background: rgba(249, 171, 55, 0.2);
    border: 1px solid #f9ab37;
}

.htb-difficulty-badge.diff-Hard {
    background: rgba(247, 0, 0, 0.2);
    border: 1px solid #f70000;
}

.htb-difficulty-badge.diff-Insane {
    background: rgba(207, 208, 209, 0.2);
    border: 1px solid #cfd0d1;
}

.htb-card-body {
    padding: 1em 1.25em 0.75em;
}

.htb-meta-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5em 2em;
    margin-bottom: 1em;
}

@media (max-width: 768px) {
    .htb-meta-grid {
        flex-direction: column;
        gap: 0.25em;
    }

    .htb-meta-item {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 0.5em !important;
    }

    .htb-meta-label {
        font-size: 0.85em;
        text-transform: capitalize;
    }

    .htb-meta-label::after {
        content: ":";
    }

    .htb-meta-value {
        font-size: 0.95em;
    }

    .htb-card-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5em !important;
    }

    .htb-card-row > picture,
    .htb-card-row > a {
        margin-left: 0 !important;
        align-self: center !important;
    }

    .htb-blood-info {
        margin-left: 0 !important;
        align-self: center !important;
    }

    .htb-diff-img,
    .htb-radar-img {
        max-width: 100%;
    }

    /* Lab table mobile styles */
    .htb-card-hosts {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .htb-hosts-list {
        margin-left: 0 !important;
        width: 100%;
        justify-content: flex-start;
    }

    .htb-card-description {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

.htb-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
}

.htb-meta-label {
    font-size: 0.85em;
    color: #a4b1cd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.htb-meta-value {
    color: #ffffff;
    font-size: 1.35em;
}

.htb-meta-value a {
    color: #9fef00;
}

.htb-os {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.htb-os picture,
.htb-os > img:first-child {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
}

.htb-os picture img,
.htb-os > img:first-child {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.htb-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.htb-card-row {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 0.5em 0.75em;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid;
}

.htb-card-green { border-left-color: #9fef00; }
.htb-card-red { border-left-color: #ff4444; }
.htb-card-blue { border-left-color: #00b4d8; }

.htb-card-label {
    font-size: 0.85em;
    color: #a4b1cd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.htb-card-row > picture {
    margin-left: auto;
}

.htb-card-row > a:first-of-type {
    margin-left: auto;
}

.htb-card-row > br {
    display: none;
}

.htb-diff-img {
    height: 80px;
    width: auto;
}

.htb-radar-img {
    height: 240px;
    width: auto;
}

.htb-blood-chip {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 0.75em;
    background: rgba(255, 68, 68, 0.25);
    border-radius: 999px;
    color: #ff6b6b;
}

.htb-blood-chip svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.htb-blood-label {
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.htb-blood-info {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-left: auto;
}

.htb-blood-info > br {
    display: none;
}

.htb-blood-time {
    color: #9fef00;
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.htb-blood-days {
    font-family: "Courier New", monospace;
    font-size: 1em;
    text-shadow: 0 0 8px rgba(159, 239, 0, 0.6), 0 0 16px rgba(159, 239, 0, 0.3);
}

.htb-blood-clock {
    position: relative;
    font-family: "DSEG14", "Courier New", monospace;
    font-size: 1.25em;
    text-shadow: 0 0 8px rgba(159, 239, 0, 0.6), 0 0 16px rgba(159, 239, 0, 0.3);
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #0a0f0a 0%, #0d1a0d 100%);
    padding: 0.3em 0.5em;
    border-radius: 4px;
    border: 1px solid #1a1a1a;
    outline: 1px solid #2a2a2a;
    outline-offset: 1px;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(159, 239, 0, 0.1),
        0 0 0 3px #111,
        0 0 0 4px #222;
}

.htb-blood-clock::before {
    content: "88:88:88";
    position: absolute;
    top: 0.3em;
    left: 0.5em;
    font-family: "DSEG14", "Courier New", monospace;
    font-size: 1em;
    letter-spacing: 0.05em;
    color: rgba(159, 239, 0, 0.08);
}


.htb-scenario-section {
    margin-top: 0.75em;
    padding-top: 0.75em;
    border-top: 1px solid #2d3748;
}

.htb-scenario-box {
    margin-top: 0.5em;
}

.htb-scenario-text {
    display: block;
    padding: 0.75em 1em;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid #00b4d8;
    color: #a0aec0;
    font-style: italic;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0.5em 0;
    text-align: center;
}

/* HTB Lab table styles */
.htb-card-hosts {
    flex-wrap: wrap;
}

.htb-hosts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-left: auto;
}

.htb-host-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.3em 0.6em;
    background: rgba(159, 239, 0, 0.15);
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 0.85em;
    color: #fff;
}

.htb-host-chip img {
    width: 24px;
    height: 24px;
}

.htb-host-name {
    color: #9fef00;
}

.htb-card-description {
    border-left-color: #a4b1cd;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
}

.htb-description-text {
    color: #e2e8f0;
    line-height: 1.5;
}

/**************************
 * fix scroll on code
 */

div.highlighter-rouge.language-console > div .highlight {
    display: flex;
    border-radius: 3px;
}

div .highlight > pre {
    margin-bottom: 0;
    flex: 1;

}


div#copyright {
    text-align: center;
}

div#copyright img {
    display: unset;
}


/**************************
 * customize scrollbars
 */
/* pre code::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: .5em;
    box-shadow: inset 2px 2px 2px hsla(0, 0%, 100%, .25);
} */
::-webkit-scrollbar {
    width: 16px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background: #777;
    border-radius: 16px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(90deg,#434343,#434343 1px,#111 0,#111);
}

/**************************
 *  banner
 */
#banner {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: 400px;
  background-color: rgba(68, 100, 155, 0.7);
  color: #9fef00e0;
  border-radius: 10px;
  padding: 10px;
  z-index: 9999;
}

#banner > p {
  padding-right: 30px;
  margin-bottom: 0px;
}

#close-banner {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  font-size: 12px;
  color: white;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  border-radius: 50%;
  border: none;
  outline: none;
  transition: background-color 0.3s, transform 0.3s;
}

#close-banner:hover {
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

#banner p a {
    color: white;
}

.expand-contract {
    height: 32px;
    background-color: black;
    border-radius: 32px;
}


/**************************
 * Timeline for sherlocks
 */
.timeline-vertical {
    border-left: 3px solid #4B9CD3;
    padding-left: 0.75em;
    margin: 1.5em 0 1.5em 1em;
}

.timeline-vertical .event {
    margin-bottom: 0.6em;
    position: relative;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.5em 0.75em;
    width: fit-content;
}

/* Arrow marker */
.timeline-vertical .event::before {
    content: '';
    position: absolute;
    left: -0.9em;
    top: 0.45em;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #4B9CD3;
}

.timeline-vertical .event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2em;
    gap: 1em;
}

.timeline-vertical .time {
    font-family: "Courier New", monospace;
    font-size: 0.85em;
    color: #888;
}

.timeline-vertical .action {
    font-family: "Courier New", monospace;
    color: #fff;
}

.timeline-vertical .action code {
    background: none;
    padding: 0;
    color: inherit;
}

.timeline-vertical .result {
    color: #aaa;
    font-size: 0.85em;
    font-style: italic;
}

.timeline-vertical .date-header {
    font-family: "Courier New", monospace;
    font-size: 0.95em;
    font-weight: bold;
    color: #4B9CD3;
    margin-bottom: 0.5em;
}

/* https://stackoverflow.com/questions/29885284/how-to-set-a-fixed-width-column-with-css-flexbox */
.npcdialog {
    border: 5px solid #cdc594;
    background: #f3ecc6;
    color: black;
    border-radius: 40px;
    padding: 3ch 3ch;
    overflow: hidden;
    margin-bottom: 1em;
}

.npcimage {
    float: left;
    width: 150px;
    margin-right: 2ch;
    margin-bottom: 1ch;
}

.npcimage img {
    max-width: 100%;
    height: auto;
}

.npcimage > h1 {
    font-size: 1em;
    color: black;
    width: 100%;
    text-align: center;
    margin: 0.5em 0 0 0;
}

.npcdialogtext {
}


:not(pre) > code {
    background-color: #505050;
    color: #e9e9e9;
}

p > code {
    padding: 1px 3px;
}


.language-mermaid {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: unset;
}

pre:has(.language-mermaid) {
    background-color: unset;
    border: unset;
    border-radius: unset;
}


iframe {
    display: block;
    margin: 0 auto;
    padding-bottom: 1em;
    max-width: 100%;
}

@font-face {
    font-family: "DSEG14";
    src: 
      url("/assets/fonts/DSEG14Classic-Regular.woff2") format("woff2"),
      url("/assets/fonts/DSEG14Classic-Regular.ttf") format("truetype");
}

.blood-time {
    /*font-family: 'Seven Segment', sans-serif; */
    font-family: 'DSEG14', sans-serif;
    font-size: xx-large;
    display: inline-block;
    vertical-align: middle;
    padding-right: 10px;
    padding-left: 10px;
}

.blood-time-days {
    font-family: 'monospace';
    font-size: x-large;
    display: inline-block;
    vertical-align: middle;
}

.code-collapse {
    overflow: hidden;
}

/* Holiday Hack TOC Styles */
.hhc-toc-heading {
  color: #c41e3a !important;
  font-family: 'Mountains of Christmas', cursive;
  font-size: 2em;
}

.hhc-toc {
  column-count: 3;
  column-gap: 40px;
  margin: 20px 0;
  padding: 24px 28px;
  position: relative;
  border: 3px solid #1a472a;
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, #ff0000 4px, transparent 4px),
    radial-gradient(circle at 25% 0%, #ffd700 4px, transparent 4px),
    radial-gradient(circle at 40% 0%, #00cc00 4px, transparent 4px),
    radial-gradient(circle at 55% 0%, #00bfff 4px, transparent 4px),
    radial-gradient(circle at 70% 0%, #ff0000 4px, transparent 4px),
    radial-gradient(circle at 85% 0%, #ffd700 4px, transparent 4px),
    radial-gradient(circle at 100% 0%, #00cc00 4px, transparent 4px),
    radial-gradient(circle at 10% 100%, #00bfff 4px, transparent 4px),
    radial-gradient(circle at 25% 100%, #ff0000 4px, transparent 4px),
    radial-gradient(circle at 40% 100%, #ffd700 4px, transparent 4px),
    radial-gradient(circle at 55% 100%, #00cc00 4px, transparent 4px),
    radial-gradient(circle at 70% 100%, #00bfff 4px, transparent 4px),
    radial-gradient(circle at 85% 100%, #ff0000 4px, transparent 4px),
    radial-gradient(circle at 100% 100%, #ffd700 4px, transparent 4px),
    radial-gradient(circle at 0% 15%, #00cc00 4px, transparent 4px),
    radial-gradient(circle at 0% 35%, #00bfff 4px, transparent 4px),
    radial-gradient(circle at 0% 55%, #ff0000 4px, transparent 4px),
    radial-gradient(circle at 0% 75%, #ffd700 4px, transparent 4px),
    radial-gradient(circle at 0% 95%, #00cc00 4px, transparent 4px),
    radial-gradient(circle at 100% 15%, #ff0000 4px, transparent 4px),
    radial-gradient(circle at 100% 35%, #ffd700 4px, transparent 4px),
    radial-gradient(circle at 100% 55%, #00cc00 4px, transparent 4px),
    radial-gradient(circle at 100% 75%, #00bfff 4px, transparent 4px),
    radial-gradient(circle at 100% 95%, #ff0000 4px, transparent 4px);
}


.hhc-toc-section {
  break-inside: avoid;
  margin-bottom: 20px;
}

.hhc-toc-section:first-child {
  display: contents;
}

.hhc-toc-section:first-child .hhc-toc-act {
  margin-bottom: 16px;
}

.hhc-toc-break {
  break-before: column;
}

@media (max-width: 1200px) {
  .hhc-toc {
    column-count: 2;
  }
  .hhc-toc-break {
    break-before: auto;
  }
}

@media (max-width: 768px) {
  .hhc-toc {
    column-count: 1;
  }
}

.hhc-toc-act {
  display: block;
  font-family: 'Mountains of Christmas', cursive;
  font-size: 1.5em;
  font-weight: 700;
  color: #228b22 !important;
  text-decoration: none;
  border-bottom: 2px solid rgba(34, 139, 34, 0.3);
  padding: 8px 0 6px 0;
  margin-bottom: 8px;
  transition: border-color 0.15s ease;
}

.hhc-toc-act:hover {
  border-bottom-color: rgba(34, 139, 34, 0.6);
}

.hhc-toc-indent {
  display: block;
  color: #d4d4d4 !important;
  text-decoration: none;
  padding: 6px 12px;
  margin-left: 8px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hhc-toc-indent:hover {
  border-left-color: #b8860b;
  background-color: rgba(184, 134, 11, 0.1);
}

@media (max-width: 768px) {
  .hhc-toc {
    column-count: 1;
  }
}

.blurable-wrapper {
    position: relative;
    overflow: hidden;
}

.blur {
  -webkit-filter: blur(3px);
  -moz-filter: blur(3px);
  -o-filter: blur(3px);
  -ms-filter: blur(3px);
  filter: blur(3px);
}

.click-to-unblur {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 5px black;
    cursor: pointer;
    background: rgba(16, 16, 16, 0.5);
    padding: 10px;
    border-radius: 25px;
}

.hidden {
    display: none;
}

/**************************
 * Holiday Hack Objective
 */
.hhc-objective {
  background-color: rgba(24, 68, 148, 0.75);
  background-image: radial-gradient(transparent, black 120%);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 1ch 3ch 2ch 2ch;
  margin: 15px auto;
  max-width: 550px;
  color: #e0e0e0;
  position: relative;
  overflow: hidden;
}
.hhc-objective::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top right, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}
.hhc-objective h2 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
  color: #fff;
}
.hhc-objective .status-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  margin-right: 8px;
  vertical-align: middle;
}
.hhc-objective .status-icon.completed {
  background: #4a4;
  color: #fff;
}
.hhc-difficulty {
  display: block;
  margin-bottom: 10px;
  font-style: italic;
  color: #eee;
}
.hhc-difficulty .snowflake {
  color: #fff;
  font-style: normal;
  font-family: serif;
  font-size: 1.2em;
}
.hhc-difficulty .snowflake:first-of-type {
  margin-left: 0.5em;
}
.snowflake.filled {
  color: #c44;
}
.hhc-scenario {
  color: #eee;
  font-size: 0.95em;
}
.hhc-objective-link,
.hhc-objective-link:hover {
  text-decoration: none;
  color: inherit;
  display: block;
}
.hhc-objective-link:hover .hhc-objective {
  border-color: rgba(255, 255, 255, 0.4);
}

/**************************
 * Email Client Style
 */
.email {
  background: #1a1a2e;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.email-header {
  background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
  padding: 12px 16px;
  border-bottom: 1px solid #2d3748;
}

.email-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.email-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.email-controls .close { background: #ff5f56; }
.email-controls .minimize { background: #ffbd2e; }
.email-controls .maximize { background: #27ca40; }

.email-meta {
  font-size: 0.85em;
  color: #a0aec0;
}

.email-meta-row {
  display: flex;
  padding: 4px 0;
  border-bottom: 1px solid #2d3748;
}

.email-meta-row:last-child {
  border-bottom: none;
}

.email-meta-label {
  color: #718096;
  width: 70px;
  flex-shrink: 0;
  font-weight: 500;
}

.email-meta-value {
  color: #e2e8f0;
}

.email-body {
  padding: 20px;
  color: #e2e8f0;
  line-height: 1.6;
  background: #0f0f1a;
}

.email-body p {
  margin: 0 0 1em 0;
}

.email-body p:last-child {
  margin-bottom: 0;
}

/**************************
 * Holiday Hack Story
 */
.hhc-story {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5em 2em;
  margin: 20px auto;
  text-align: center;
  font-family: 'Inconsolata', monospace;
}

.hhc-story h2 {
  color: rgb(255, 255, 0);
  font-family: 'Inconsolata', monospace;
  font-size: 1.8em;
  margin: 0 0 0.8em 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hhc-story-text {
  color: rgb(255, 255, 255);
  font-size: 0.95em;
  line-height: 1.6;
  text-shadow: rgba(200, 200, 200, 0.45) 0px 0px 5px;
}

/**************************
 * Holiday Hack Item
 */
.hhc-item {
  background-color: rgba(129, 78, 11, 0.75);
  background-image: radial-gradient(transparent, rgb(0, 0, 0) 120%);
  border: 2px solid #6a5a40;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 15px auto;
  max-width: 550px;
  position: relative;
  font-family: 'Inconsolata', monospace;
  overflow: hidden;
}
.hhc-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  pointer-events: none;
}
.hhc-item-image {
  width: 70px;
  border-radius: 6px;
  float: left;
  margin-right: 12px;
  margin-bottom: 4px;
}
.hhc-item h3 {
  margin: 0 0 6px 0;
  font-size: 1.1em;
  color: #ffffff;
  font-weight: 700;
  text-shadow: rgba(200, 200, 200, 0.45) 0px 0px 5px;
}
.hhc-item-text {
  color: #e0e0e0;
  font-size: 0.9em;
  line-height: 1.4;
}
.hhc-item-text p {
  margin: 0;
}
.hhc-item-text a {
  color: #6ca0dc;
  text-decoration: underline;
}
.hhc-item-text a:hover {
  color: #8dc0fc;
}

/**************************
 * Holiday Hack Achievement
 */
.hhc-achievement {
  background-color: rgba(101, 103, 12, 0.75);
  background-image: radial-gradient(transparent, rgb(0, 0, 0) 120%);
  border: 2px solid #5a5c10;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 15px auto;
  max-width: 550px;
  position: relative;
  font-family: 'Inconsolata', monospace;
  overflow: hidden;
}
.hhc-achievement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  pointer-events: none;
}
.hhc-achievement h3 {
  margin: 0 0 6px 0;
  font-size: 1.1em;
  color: #ffffff;
  font-weight: 700;
  text-shadow: rgba(200, 200, 200, 0.45) 0px 0px 5px;
}
.hhc-achievement-text {
  color: #e0e0e0;
  font-size: 0.9em;
  line-height: 1.4;
}
.hhc-achievement-text p {
  margin: 0;
}
.hhc-achievement-text a {
  color: #6ca0dc;
  text-decoration: underline;
}
.hhc-achievement-text a:hover {
  color: #8dc0fc;
}

/**************************
 * Holiday Hack Map Labels (reusable for all years)
 */
.hhc-map {
  position: relative;
  display: inline-block;
  width: 100%;
}

.hhc-map img {
  width: 100%;
  height: auto;
  display: block;
}

.hhc-map-label {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  text-align: center;
}

.hhc-map-label.npc {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
}

.hhc-map-label.terminal {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.4);
}

.hhc-map-label.item {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.4);
}

a.hhc-map-label {
  pointer-events: auto;
  text-decoration: none;
  color: #fff;
}

a.hhc-map-label:hover {
  background: rgba(0, 0, 0, 0.9);
}

a.hhc-map-label.terminal:hover {
  border-color: rgba(251, 146, 60, 0.7);
}

/* Expandable labels for buildings with interior content */
.hhc-map-label.has-tooltip {
  pointer-events: auto;
  cursor: pointer;
}

.hhc-map-tooltip {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 6px;
  padding-top: 6px;
}

.hhc-map-label.has-tooltip:hover {
  z-index: 1000;
}

.hhc-map-label.has-tooltip:hover .hhc-map-tooltip {
  display: block;
}

.hhc-map-tooltip-item {
  display: block;
  padding: 2px 0;
  font-size: 0.9em;
}

.hhc-map-tooltip-item.npc {
  color: #4ade80;
}

.hhc-map-tooltip-item.terminal {
  color: #fb923c;
  text-decoration: none;
}

.hhc-map-tooltip-item.terminal:hover {
  text-decoration: underline;
}

/* Mobile: collapse labels to dots, expand on tap */
@media (max-width: 768px) {
  .hhc-map-label {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: auto;
    transition: all 0.2s ease;
    background: #fff;
  }

  /* Color the collapsed dots */
  .hhc-map-label.npc {
    background: #4ade80;
  }

  .hhc-map-label.terminal {
    background: #fb923c;
  }

  .hhc-map-label.item {
    background: #60a5fa;
  }

  .hhc-map-label.expanded {
    width: auto;
    height: auto;
    padding: 3px 8px;
    font-size: 0.7em;
    border-radius: 4px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
  }

  /* Show tooltips when expanded on mobile */
  .hhc-map-label.has-tooltip:hover .hhc-map-tooltip {
    display: none;
  }

  .hhc-map-label.has-tooltip.expanded .hhc-map-tooltip {
    display: block;
  }
}

/**************************
 * Footer
 */
.site-footer {
  background: #1d1d1d;
  border-top: 1px solid #333;
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: bold;
  color: #e6e6e6;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #888;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.footer-link-group {
  display: flex;
  align-items: center;
}

.footer-link-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  color: #999;
  transition: all 0.2s ease;
}

.footer-link-icons a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #666;
  color: #e6e6e6;
  transform: translateY(-2px);
}

.footer-link-icons a svg {
  width: 18px;
  height: 18px;
}

.footer-support .bmc-button {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 5px;
  background-color: #ffdd00;
  color: #000;
  font-family: 'Cookie', cursive;
  font-size: 28px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-support .bmc-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
}

.footer-support .bmc-button img {
  height: 34px;
  width: 35px;
  margin-bottom: 1px;
  padding: 0;
  display: inline;
}

.footer-support .bmc-button span {
  margin-left: 10px;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
    gap: 1.5rem;
  }

  .footer-link-icons {
    gap: 0.4rem;
  }

  .footer-link-icons a {
    width: 32px;
    height: 32px;
  }

  .footer-link-icons a svg {
    width: 16px;
    height: 16px;
  }
}

/**********************
 * Mobile TOC Drawer
 */

/* Hide all mobile drawer elements by default (desktop) */
.toc-toggle,
.toc-drawer,
.toc-overlay {
  display: none;
}

@media (max-width: 767px) {
  /* Toggle button */
  .toc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: fixed;
    left: 12px;
    top: 70px;
    z-index: 1001;
    padding: 8px 12px;
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 156, 211, 0.4);
    border-radius: 20px;
    color: rgba(75, 156, 211, 0.9);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
  }

  .toc-toggle:hover,
  .toc-toggle:active {
    background: rgba(30, 40, 60, 0.85);
    border-color: rgba(75, 156, 211, 0.7);
    color: #4B9CD3;
  }

  .toc-toggle::before {
    content: "☰";
    font-size: 14px;
  }

  /* Hide toggle when drawer is open */
  body.toc-open .toc-toggle {
    display: none;
  }

  /* TOC drawer container */
  .toc-drawer {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: linear-gradient(180deg, #141428 0%, #1a1a2e 100%);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  }

  body.toc-open .toc-drawer {
    transform: translateX(0);
  }

  /* Drawer header */
  .toc-drawer > p:first-of-type {
    margin: 0;
    padding: 20px 20px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #4B9CD3;
    border-bottom: 1px solid rgba(75, 156, 211, 0.2);
    background: rgba(75, 156, 211, 0.05);
  }

  .toc-drawer > p:first-of-type a {
    color: #4B9CD3 !important;
    text-decoration: none !important;
  }

  /* TOC navigation styling in drawer */
  .toc-drawer nav[data-toggle="toc"] {
    padding: 15px 0;
  }

  .toc-drawer nav[data-toggle="toc"] .nav {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .toc-drawer nav[data-toggle="toc"] .nav > li {
    margin: 0;
  }

  .toc-drawer nav[data-toggle="toc"] .nav > li > a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #c0c0c0;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
  }

  .toc-drawer nav[data-toggle="toc"] .nav > li > a:hover,
  .toc-drawer nav[data-toggle="toc"] .nav > li > a:active {
    color: #fff;
    background: rgba(75, 156, 211, 0.1);
    border-left-color: #4B9CD3;
  }

  .toc-drawer nav[data-toggle="toc"] .nav-link.active {
    color: #4B9CD3 !important;
    background: rgba(75, 156, 211, 0.15);
    border-left-color: #4B9CD3;
    font-weight: 600;
  }

  /* Show all nested items in mobile drawer */
  .toc-drawer nav[data-toggle="toc"] .nav-link + ul {
    display: block !important;
    padding-left: 0;
    padding-bottom: 5px;
  }

  /* Nested items styling */
  .toc-drawer nav[data-toggle="toc"] .nav .nav > li > a {
    padding: 8px 20px 8px 35px;
    font-size: 13px;
    color: #888;
    border-left: 3px solid transparent;
  }

  .toc-drawer nav[data-toggle="toc"] .nav .nav > li > a:hover,
  .toc-drawer nav[data-toggle="toc"] .nav .nav > li > a:active {
    color: #ccc;
    background: rgba(75, 156, 211, 0.05);
    border-left-color: rgba(75, 156, 211, 0.5);
  }

  .toc-drawer nav[data-toggle="toc"] .nav .nav > li > .active {
    color: #4B9CD3 !important;
    border-left-color: #4B9CD3;
  }

  /* Series navigation in drawer */
  .toc-drawer > ul.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 10px 0;
  }

  .toc-drawer > ul.navbar-nav > li {
    margin: 0;
  }

  .toc-drawer > ul.navbar-nav > li > a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #c0c0c0;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
  }

  .toc-drawer > ul.navbar-nav > li > a:hover,
  .toc-drawer > ul.navbar-nav > li > a:active {
    color: #fff;
    background: rgba(75, 156, 211, 0.1);
    border-left-color: #4B9CD3;
  }

  .toc-drawer > ul.navbar-nav > li.toc-indent > a {
    padding-left: 35px;
    font-size: 13px;
    color: #999;
  }

  .toc-drawer > ul.navbar-nav > li.toc-active > a {
    color: #4B9CD3;
    border-left-color: #4B9CD3;
    font-weight: 600;
  }

  /* Page TOC nested under series nav item */
  .toc-drawer > ul.navbar-nav nav[data-toggle="toc"] {
    margin-left: 20px;
    padding: 10px 0;
    border-left: 2px solid rgba(75, 156, 211, 0.3);
    background: rgba(75, 156, 211, 0.05);
    border-radius: 0 8px 8px 0;
  }

  .toc-drawer > ul.navbar-nav nav[data-toggle="toc"] .nav > li > a {
    padding: 8px 15px;
    font-size: 13px;
    color: #aaa;
    border-left: none;
  }

  .toc-drawer > ul.navbar-nav nav[data-toggle="toc"] .nav > li > a:hover {
    color: #fff;
    background: rgba(75, 156, 211, 0.1);
  }

  .toc-drawer > ul.navbar-nav nav[data-toggle="toc"] .nav-link.active {
    color: #4B9CD3 !important;
    font-weight: 600;
    background: rgba(75, 156, 211, 0.15);
  }

  /* Nested page TOC items */
  .toc-drawer > ul.navbar-nav nav[data-toggle="toc"] .nav .nav > li > a {
    padding-left: 30px;
    font-size: 12px;
    color: #888;
  }

  /* Overlay when drawer is open */
  .toc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    z-index: 1000;
    transition: opacity 0.3s ease;
  }

  body.toc-open .toc-overlay {
    display: block;
  }

  /* Hide the original TOC column on mobile */
  .col-sm-3:has(#toc) {
    display: none;
  }

  /* Make content full width on mobile */
  .col-sm-9#postBody {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

