/* Acute Calendar — dark sidebar layout. */

:root {
  --backgroundColor: #000;
  --backgroundTransparentColor: rgba(0,0,0,.94);
  --sheetBackgroundColor: #080808;
  --foregroundColor: #c7c7c7;
  --thinRuleColor: rgba(255,255,255,.09);
  --headingsColor: #f2f2f2;
  --headingsUnderlineColor: rgba(255,255,255,.10);
  --boldColor: #f2f2f2;
  --boldUnderlineColor: rgba(255,255,255,.10);
  --linkColor: #7FBA00;
  --linkUnderlineColor: rgba(127,186,0,.22);
  --linkColorVisited: #7FBA00;
  --linkUnderlineColorVisited: rgba(127,186,0,.18);
  --hoverColor: #9bd51a;
  --hoverUnderlineColor: rgba(155,213,26,.28);
  --tagColor: #b9b9b9;
  --tagUnderlineColor: rgba(255,255,255,.10);
  --adminColor: #7FBA00;
  --adminUnderlineColor: rgba(127,186,0,.20);
  --engineTextColor: #777;
  --engineTextUnderlineColor: rgba(255,255,255,.08);
  --markedTextBackground: #243500;
  --markedImageBorderColor: #4d7000;
  --inputBackgroundColor: #0b0b0b;
  --inputTextColor: #ddd;
  --disabledColor: #6e6e6e;
  --activeColor: #7FBA00;
  --currentItemBackgroundColor: #0a0a0a;
  --windowBackgroundColor: #000;
  --maxWidth: 1440px;
  --marginTop: 28px;
  --marginLeft: 3.5%;
  --marginRight: 3.5%;
  --marginTopCompact: 16px;
  --marginLeftCompact: 4%;
  --marginRightCompact: 4%;
  --displayLogoMarginal: none;
  --displayLogo: none;
  --displayLogoCompact: none;
  --blogTitleFontSize: 25px;
  --blogTitleLineHeight: 30px;
  --pageHeadingFontSize: 34px;
  --pageHeadingLineHeight: 40px;
}

* { box-sizing: border-box; }

body {
  background: #000 !important;
  color: var(--foregroundColor);
}

/* Keep the original Acute author/search controls, but remove the large header area. */
.flag {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--thinRuleColor);
}

.header-content.acute-topbar {
  min-height: 26px;
  margin: 0 var(--marginRight) 0 var(--marginLeft);
  max-width: none;
}

.acute-topbar-spacer { min-height: 26px; }

.spotlight {
  top: 0;
  right: 0;
}

/* Main two-column frame. */
.acute-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  column-gap: 38px;
  align-items: start;
  margin: 0 var(--marginRight) 44px var(--marginLeft);
  max-width: none;
}

.acute-sidebar {
  min-width: 0;
  position: sticky;
  top: 18px;
  align-self: start;
  border-right: 1px solid var(--thinRuleColor);
  padding: 26px 30px 20px 0;
}

.acute-sidebar-header {
  padding: 0 0 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--thinRuleColor);
}

.acute-title h1 {
  margin: 0;
  font-size: 27px;
  line-height: 31px;
  font-weight: 700;
  color: var(--headingsColor);
}

.acute-title h1 a,
.acute-title h1 a:visited {
  color: var(--headingsColor);
  border-bottom-color: transparent;
}

.acute-title h1 a:hover {
  color: var(--hoverColor);
}

.acute-title #e2-blog-description {
  margin-top: 4px;
  color: #858585;
  font-size: 16px;
  line-height: 21px;
}

.acute-sidebar-block {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--thinRuleColor);
}

.acute-sidebar-block:last-child {
  margin-bottom: 0;
}

.acute-calendar-slot {
  position: static;
}

.acute-calendar {
  width: 100%;
  color: var(--foregroundColor);
  font-size: 13px;
  line-height: 18px;
}

.acute-calendar-title-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  margin: 0 0 11px;
}

.acute-calendar-title {
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
  color: var(--headingsColor);
  border: 0;
}

.acute-calendar-nav {
  display: block;
  text-align: center;
  font-size: 22px;
  line-height: 22px;
  color: var(--foregroundColor);
  border: 0;
}

.acute-calendar-nav:hover,
.acute-calendar-nav:focus {
  color: var(--linkColor);
}

.acute-calendar-weekdays,
.acute-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.acute-calendar-weekdays {
  margin-bottom: 4px;
  color: #767676;
  font-size: 11px;
  text-align: center;
}

.acute-calendar-weekdays span { text-align: center; }

.acute-calendar-day,
.acute-calendar-empty {
  min-width: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
}

.acute-calendar-day {
  color: #777;
  text-align: center;
}

.acute-calendar-day-has-posts {
  color: var(--linkColor);
  background: rgba(127,186,0,.07);
  font-weight: 600;
}

.acute-calendar-day-has-posts:hover,
.acute-calendar-day-has-posts:focus {
  color: var(--hoverColor);
  background: rgba(127,186,0,.14);
}

.acute-calendar-day-current {
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--linkColor);
}

.acute-calendar-day-disabled { opacity: .55; }
.acute-calendar-hint { display: none; }

/* Current date block. */
.acute-block-label {
  color: var(--linkColor);
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 4px;
}

.acute-today-date {
  color: var(--foregroundColor);
  border-bottom-color: transparent;
  font-size: 15px;
  line-height: 21px;
}

.acute-today-date:hover { color: var(--linkColor); }

/* Tag finder. */
.acute-block-heading {
  color: var(--headingsColor);
  font-weight: 600;
  margin-bottom: 10px;
}

.acute-tags-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 4px;
  background: rgba(255,255,255,.025);
}

.acute-tags-search:focus-within {
  border-color: rgba(127,186,0,.45);
}

.acute-tags-search-icon {
  color: #777;
  font-size: 17px;
  line-height: 18px;
}

.acute-tags-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--inputTextColor);
  font-size: 13px;
  line-height: 19px;
}

.acute-tags-search input::placeholder { color: #666; }

.acute-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  max-height: 235px;
  overflow-y: auto;
  padding-right: 4px;
}

.acute-tag {
  color: #9a9a9a;
  border-bottom-color: rgba(255,255,255,.08);
  font-size: 12px;
  line-height: 18px;
}

.acute-tag:hover { color: var(--linkColor); }

.acute-tags-all {
  display: inline-block;
  margin-top: 11px;
  font-size: 12px;
}

/* Content is visually framed so the calendar no longer makes the page feel chaotic. */
.acute-layout > .content {
  margin: 26px 0 0;
  width: auto;
  min-width: 0;
  padding-left: 2px;
}

.acute-layout > .content > .e2-note-snippet:first-child { margin-top: 0; }

.e2-note-snippet {
  display: grid;
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
  column-gap: 30px;
  align-items: start;
  max-width: 1120px;
  margin: 0 0 30px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--thinRuleColor);
}

.e2-note-snippet:last-child { margin-bottom: 0; }

.e2-note-snippet > .e2-note-snippet-image-link,
.e2-note-snippet > .e2-note-thumbs {
  grid-column: 1;
  grid-row: 1 / span 4;
}

.e2-note-snippet > .e2-note-snippet-body {
  grid-column: 2;
  min-width: 0;
}

.e2-note-snippet > .e2-note-snippet-body:only-child { grid-column: 1 / -1; }

.e2-note-snippet .e2-note-thumbs { padding: 0; margin: 0; white-space: normal; overflow: visible; }
.e2-note-snippet .e2-note-thumb { display: block; width: 100%; margin: 0; border-radius: 4px; overflow: hidden; }
.e2-note-snippet .e2-note-thumb + .e2-note-thumb { display: none; }
.e2-note-snippet .e2-note-thumb img { display: block; width: 100%; height: auto; max-height: 245px; object-fit: cover; }

.e2-note-snippet h1 {
  max-width: none;
  margin: 0 0 5px;
  padding: 0;
  font-size: 25px;
  line-height: 30px;
}

.e2-note-snippet h1 a,
.e2-note-snippet h1 a:visited { padding: 0; }

.e2-acute-calendar-note-date {
  margin: 0 0 10px;
  color: #707070;
  font-family: var(--smallFontFamily);
  font-size: var(--smallFontSize);
  line-height: var(--smallLineHeight);
}

.e2-note-snippet-text { max-width: none; }
.e2-note-snippet-text p { max-width: none; margin: 0 0 12px; }
.e2-acute-calendar-read-more { display: inline-block; margin: 0 0 12px; }
.e2-note-snippet .e2-note-meta { margin-top: 6px; }

/* Keep the original Acute author controls readable on the dark background. */
.admin-links-floating,
.admin-links-floating a,
.e2-search-box-nano { color: var(--linkColor); }

@media screen and (max-width: 1023px) {
  .header-content.acute-topbar { margin: 0 var(--marginRightCompact); }

  .acute-layout {
    display: block;
    margin: 0 var(--marginRightCompact) 40px var(--marginLeftCompact);
  }

  .acute-sidebar {
    position: relative;
    top: auto;
    border-right: 0;
    border-bottom: 1px solid var(--thinRuleColor);
    padding: 20px 0 0;
    margin-bottom: 10px;
  }

  .acute-sidebar-header { padding-bottom: 18px; margin-bottom: 18px; }

  .acute-layout > .content {
    margin: 28px 0 0;
    padding-left: 0;
  }

  .acute-tags-list { max-height: 180px; }

}

@media screen and (max-width: 640px) {
  .e2-note-snippet { display: block; }
  .e2-note-snippet > .e2-note-snippet-image-link,
  .e2-note-snippet > .e2-note-thumbs,
  .e2-note-snippet > .e2-note-snippet-body { display: block; }
  .e2-note-snippet .e2-note-thumbs { margin: 0 0 14px; }
  .e2-note-snippet .e2-note-thumb img { max-height: 300px; }
}

/* Site information lives in the sticky sidebar, not under the post list. */
.acute-sidebar-footer {
  padding-top: 2px;
  color: #666;
  font-size: 11px;
  line-height: 17px;
}

.acute-sidebar-copy {
  padding-top: 14px;
  border-top: 1px solid var(--thinRuleColor);
}

.acute-sidebar-copy .e2-rss-button {
  margin-left: 7px;
}

.acute-sidebar-engine {
  margin-top: 5px;
  color: var(--engineTextColor);
}

.acute-sidebar-engine a {
  color: var(--engineTextColor);
  border-bottom-color: var(--engineTextUnderlineColor);
}

.acute-sidebar-engine a:hover {
  color: var(--linkColor);
}

.acute-sidebar-footer .e2-login-element,
.acute-sidebar-footer .e2-login-link {
  margin-top: 8px;
}
