/* Markdown Notices */
.notices.yellow {
    border-left: 10px solid #935b0c;
    background: #31220b;
    color: #eea034;
}

.notices.red {
    border-left: 10px solid #89211e;
    background: #2e0b0b;
    color: #db5a56;
}

.notices.blue {
    border-left: 10px solid #1b6e86;
    background: #13222a;
    color: #4bb9da;
}

.notices.green {
    border-left: 10px solid #347834;
    background: #192c13;
    color: #7ac57a;
}
/* --- */

/* Shortcode UI */

.accordion-wrapper {
    margin: 30px 0;
    text-align: left; }
    .accordion-wrapper label {
      color: #ccc;
      background: #272727;
      border: 1px solid #000;
      border-bottom: 1px solid transparent; }
      .accordion-wrapper label:hover {
        background: #2d2d2d;
        color: #fff; }
    .accordion-wrapper article {
      background: rgba(39, 39, 39, 0.5);
      border: 1px solid #000; }
  .accordion-wrapper input:checked + label {
    border-bottom: 1px solid #000; }
  .accordion-wrapper > div:last-child label, .accordion-wrapper > div:last-child input:checked ~ article {
    border-bottom: 1px solid #000; }


.tab {
    border-bottom: .05rem solid rgba(39, 39, 39, 0.5); }

.tabs-wrapper {
    display: block; }
    .tabs-wrapper.ui-theme-lite .tabs-nav li.current a {
        border-bottom: 1px solid #3085ee; }
    .tabs-wrapper.ui-theme-lite .tabs-nav li:hover {
        background: rgba(39, 39, 39, 0.5); }
    .tabs-wrapper.ui-theme-lite.bottom-right .tabs-nav li.current a, .tabs-wrapper.ui-theme-lite.bottom-left .tabs-nav li.current a {
        border-top: 1px solid #909090; }
    .tabs-wrapper.ui-theme-lite.bottom-right .tab, .tabs-wrapper.ui-theme-lite.bottom-left .tab {
        border-bottom: 1px solid #e9e9e9; }
    .tabs-wrapper.ui-theme-lite .tab {
        border-top: 1px solid #000;
        background-color: rgba(39, 39, 39, 0.5);
        padding: 0.4rem; }


.browser-frame {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid #272727; }
  .browser-frame .btoolbar {
    height: 40px;
    background: #272727;
    color: #bbb;
    border-bottom: 1px solid #272727; }
  .browser-frame .btoolbar-button {
    background: #bbb; }
  .browser-frame .btoolbar-address {
    background: rgba(39, 39, 39, 0.5);
    border: 1px solid #bbb; }

.cd-image-container {
    position: relative; }
    .cd-image-label {
    color: #ccc; }
    .cd-handle {
    color: #ccc;
    background: #3085ee; }
    .cd-handle.draggable {
    background-color: #1e6bc9; }

.polaroid-wrapper .polaroid {
  background: #272727;
  border: 1px solid #272727; }

.polaroid-wrapper .polaroid-img {
  background: #272727; }

/* --- */

/* Header height override */
#header,
#header .navbar-section {
    height: 2.5rem !important;
}

.dropmenu ul li a {
    font-size: 0.8rem;
}
body.header-fixed.header-animated #header.scrolled,
body.header-fixed.header-animated #header.scrolled .navbar-section {
    height: 1.8rem !important;
}

/* Pagination buttons */
.btn-outline-primary {
    display: inline-block;
    border: 1px solid #4bb9da;
    color: #4bb9da;
    border-radius: 3px;
    text-decoration: none;
}
.btn-outline-primary:hover {
    background: #4bb9da;
    color: #fff;
}

/* --- Home page --- */

/* Carousel */
.home-carousel {
    position: relative;
    overflow: hidden;
}
.home-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}
.home-carousel-slide {
    min-width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center center;
    position: relative;
}
.home-slide-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    text-shadow: none;
}
.home-slide-caption h2 {
    font-size: 2rem;
    margin: 0;
    color: inherit;
}
.home-slide-caption--dark {
    color: #000;
    text-shadow: none;
}
.home-slide-caption--dark h2 {
    color: #000;
}
.home-carousel-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}
.home-dot.active {
    background: #fff;
}

/* Cards */
.home-cards-title {
    margin: 1.5rem 0 1rem;
}
.home-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
    .home-cards { grid-template-columns: 1fr; }
}
.home-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.home-card-img {
    width: 100%;
    height: auto;
    display: block;
}
.home-card-body {
    padding: 0.75rem;
}
.home-card-title a {
    color: #4bb9da;
    font-size: 1.1rem;
}
.home-card p {
    font-size: 0.875rem;
    margin: 0.4rem 0 0;
}
/* --- */

/* Bootstrap-compatible alerts */
.alert {
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.alert-primary   { background:#0d2d45; border-color:#1a5276; color:#5dade2; }
.alert-secondary { background:#2c2c2c; border-color:#555;    color:#bbb; }
.alert-success   { background:#0b2e1a; border-color:#1e8449; color:#58d68d; }
.alert-danger    { background:#2e0b0b; border-color:#922b21; color:#e74c3c; }
.alert-warning   { background:#2e1f05; border-color:#935b0c; color:#f0a500; }
.alert-info      { background:#0b2535; border-color:#1a6a8a; color:#48c9b0; }
.alert-light     { background:#2a2a2a; border-color:#444;    color:#ccc; }
.alert-dark      { background:#111;    border-color:#333;    color:#aaa; }
.alert a         { color: inherit; font-weight: bold; text-decoration: underline; }

/* Article content headings */
.e-content h3 { margin-bottom: 0.75rem; }

/* Bootstrap flex utilities */
.d-flex          { display: flex; }
.flex-row-reverse { flex-direction: row-reverse; }
.mb-0            { margin-bottom: 0 !important; }

/* Bootstrap-compatible blockquote */
.blockquote {
    background: rgba(255,255,255,0.07);
    padding: 1rem 1.25rem;
    border-radius: 4px;
    max-width: 55%;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
}
.blockquote-footer {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-style: normal;
    color: #888;
}
.blockquote-footer::before { content: "\2014\00A0"; }
