/* === JOURNAL PAGE FOUNDATION === */
.journal-body {
  color: var(--rose);
  background: #650f17 url("../../assets/backgrounds/bg-red-02.jpg") center top / 1024px auto repeat;
  background-attachment: fixed;
}

.journal-shell {
  width: min(calc(100% - 24px), 660px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 28px;
  background: transparent;
}

.journal-frame {
  position: relative;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 4px double #87171d;
  border-top: 0;
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 2px 12px rgba(50, 0, 5, .45);
}

.journal-frame::before,
.journal-frame::after {
  position: absolute;
  z-index: 4;
  top: -4px;
  bottom: -4px;
  width: 28px;
  background: url("../../assets/png/lace-01.png") top center / 28px auto repeat-y;
  content: "";
  pointer-events: none;
}

.journal-frame::before {
  left: -27px;
  transform: scaleX(-1);
}

.journal-frame::after {
  right: -27px;
}

/* === JOURNAL TITLE HEADER === */
.journal-banner {
  position: relative;
  height: 145px;
  min-height: 145px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px 9px;
  border-bottom: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, .48) 0%, rgba(255, 255, 255, .62) 48%, #fff 100%),
    url("../../assets/backgrounds/bg-wr-09.jpg") center top / 250px auto repeat;
  overflow: hidden;
}

.journal-banner::after {
  position: absolute;
  right: 8px;
  left: 8px;
  bottom: 0;
  height: 8px;
  background: url("../../assets/div/star-01.png") center / 46px 8px repeat-x;
  content: "";
}

.journal-banner::before { display: none; }

.journal-banner-link {
  min-width: 0;
  align-self: stretch;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.journal-banner-link:focus-visible {
  outline: 2px solid #87171d;
  outline-offset: -2px;
}

.journal-banner h1 {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: 0 0 0 10px;
}

.journal-title-image {
  display: block;
  width: 210px;
  height: auto;
  object-fit: contain;
}

.journal-banner-character {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: block;
  width: 220px;
  height: 155px;
  object-fit: contain;
  object-position: center top;
  transform: scaleX(-1);
  margin-right: -8px;
}

/* === COMPACT FC2-STYLE BLOG LAYOUT === */
.journal-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 8px;
  background: #fff;
}

.journal-entries {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.journal-sidebar {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: grid;
  gap: 13px;
  align-content: start;
  padding-right: 0;
  border-right: 0;
}

/* === JOURNAL ENTRY CARDS === */
.fc2-entry {
  margin-bottom: 18px;
  border: 0;
  background: #fff;
}

.fc2-entry:last-child {
  margin-bottom: 0;
}

.entry-heading {
  min-height: 29px;
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 27px;
  border-left: 0;
  background: #651017 url("../../assets/backgrounds/bg-red-02.jpg") center / 230px auto;
}

.entry-heading::before {
  margin-left: -20px;
  margin-right: 7px;
  color: #fff;
  content: "✿";
}

.entry-heading h2 {
  margin: 0;
  color: #fff;
  font: 700 15px/1.2 Georgia, "Times New Roman", serif;
}

.journal-body .entry-heading a,
.journal-body .entry-heading a:link,
.journal-body .entry-heading a:visited {
  color: #fff;
  text-decoration: none;
}

.journal-body .entry-heading a:hover,
.journal-body .entry-heading a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-meta {
  margin: 0;
  padding: 4px 4px 4px 10px;
  color: var(--rose-deep);
  background: var(--rose-pale);
  font-size: 9px;
  text-align: right;
}

.entry-content {
  min-height: 120px;
  padding: 8px 11px 14px;
  color: var(--rose);
  font: 13px/1.65 Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.entry-content p {
  margin: 0 0 1em;
  font: inherit;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
  margin: 1.2em 0 .45em;
  color: #87171d;
  font-family: Georgia, "Times New Roman", serif;
}

.entry-content ul,
.entry-content ol {
  padding-left: 22px;
}

.entry-content blockquote {
  margin: 12px 5px;
  padding: 7px 10px;
  border-left: 4px solid #ef9cab;
  background: var(--rose-pale);
}

.entry-content img,
.entry-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 13px;
  border: 4px solid #fff;
  outline: 1px solid #efb1bd;
}

.entry-content img.editor-image-align-left { float: left; margin: 6px 14px 10px 0; }
.entry-content img.editor-image-align-center { float: none; margin-right: auto; margin-left: auto; }
.entry-content img.editor-image-align-right { float: right; margin: 6px 0 10px 14px; }
.entry-content img.editor-image-align-none { float: none; margin-right: 0; margin-left: 0; }
.entry-content::after { display: block; clear: both; content: ""; }

.entry-content img.journal-lightbox-image {
  cursor: zoom-in;
}

.entry-content img.journal-lightbox-image:focus-visible {
  outline: 2px solid #d54a67;
  outline-offset: 3px;
}

.mfp-bg.closet-lightbox { background: #000; }
.closet-lightbox .mfp-title { color: #fff; font-family: "Times New Roman", Times, serif; }
.closet-lightbox .mfp-counter { color: #fff; font-family: "Times New Roman", Times, serif; }
.closet-lightbox .mfp-controls { position: absolute; z-index: 1047; top: -20px; right: 0; display: flex; align-items: center; height: 30px; }
.closet-lightbox .mfp-image-holder .mfp-controls .mfp-close,
.closet-lightbox .mfp-controls .mfp-reset { position: static; display: flex; align-items: center; justify-content: center; width: 24px; height: 30px; padding: 0; border: 0; border-radius: 0; color: #fff; background: transparent; box-shadow: none; text-shadow: none; text-align: center; opacity: 1; cursor: pointer; }
.closet-lightbox .mfp-controls .mfp-reset { order: 1; }
.closet-lightbox .mfp-image-holder .mfp-controls .mfp-close { order: 2; }
.closet-lightbox .mfp-image-holder .mfp-controls .mfp-close { font: 29px/1 Arial, sans-serif; transform: translate(6px, -6px); }
.closet-lightbox .mfp-controls .mfp-reset img { display: block; width: 13px; height: 15px; object-fit: contain; transform: translate(10px, -7px); pointer-events: none; }
.closet-lightbox .mfp-reset:hover,
.closet-lightbox .mfp-reset:focus-visible { opacity: .75; }
body.mfp-zoom-out-cur { cursor: default; }
.closet-lightbox .mfp-panzoom-stage { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; overflow: hidden; line-height: 0; touch-action: none; user-select: none; }
body.mfp-zoom-out-cur .closet-lightbox .mfp-panzoom-stage { cursor: zoom-in; }
body.mfp-zoom-out-cur .closet-lightbox .mfp-panzoom-stage.is-zoomed { cursor: grab; }
body.mfp-zoom-out-cur .closet-lightbox .mfp-panzoom-stage.is-dragging { cursor: grabbing; }
.closet-lightbox .mfp-panzoom-stage img.mfp-img { max-height: calc(100vh - 100px) !important; padding: 0; transform-origin: center; transition: transform 100ms ease; will-change: transform; }
.closet-lightbox .mfp-panzoom-stage.is-dragging img.mfp-img { transition: none; }
.closet-lightbox .mfp-bottom-bar { position: relative; top: auto; margin-top: 8px; }
.closet-lightbox .mfp-content { max-width: calc(100vw - 88px); }
.closet-lightbox .mfp-figure { position: relative; }
.closet-lightbox .mfp-figure > .mfp-arrow { z-index: 2; top: 50%; width: 54px; height: 86px; margin-top: -43px; opacity: 1; }
.closet-lightbox .mfp-figure > .mfp-arrow-left { left: -54px; }
.closet-lightbox .mfp-figure > .mfp-arrow-right { right: -54px; }
.closet-lightbox .mfp-figure > .mfp-arrow-left::after { left: 17px; margin-left: 0; }
.closet-lightbox .mfp-figure > .mfp-arrow-right::after { right: 17px; left: auto; margin-left: 0; }
.closet-lightbox .mfp-arrow::before { display: none; }
.mfp-fade.mfp-bg { opacity: 0; transition: opacity 180ms ease; }
.mfp-fade.mfp-bg.mfp-ready { opacity: .94; }
.mfp-fade.mfp-bg.mfp-removing { opacity: 0; }
.mfp-fade.mfp-wrap .mfp-content { opacity: 0; transition: opacity 180ms ease; }
.mfp-fade.mfp-wrap.mfp-ready .mfp-content { opacity: 1; }
.mfp-fade.mfp-wrap.mfp-removing .mfp-content { opacity: 0; }

.entry-summary {
  padding: 7px 9px;
  border-left: 4px solid var(--rose-deep);
  background: var(--rose-pale);
  font-weight: 700 !important;
}

.entry-content .sleep,
.entry-content .eating,
.entry-content .hygiene,
.entry-content .mental,
.entry-content .work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-bottom: 8px;
}

.entry-media-link {
  padding: 7px;
  border: 1px solid #e1a5af;
  background: var(--rose-pale);
  text-align: center;
  font-weight: 700 !important;
}

.entry-current-details {
  margin: 6px 0 10px;
  color: #8c1a25;
  font-size: 12px;
  line-height: 1.45;
}

.entry-current-details p { margin: 0 0 2px; }

.entry-current-details img {
  display: inline-block;
  width: auto;
  max-width: 24px;
  height: auto;
  max-height: 24px;
  margin: 0 4px 0 1px;
  vertical-align: middle;
}

.entry-footer {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 9px;
  color: var(--rose-deep);
  background: var(--rose-pale);
  font-size: 9px;
}

.entry-footer a {
  margin-right: 4px;
}

/* === BLOGSPOT-STYLE POST PREVIEWS === */
.post-preview {
  margin-bottom: 28px;
  padding: 0 0 1px;
}

.journal-entries > .post-preview:not(.single-entry):not(:last-of-type) {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px dotted #efb1bd;
}

.post-preview-date {
  display: block;
  margin: -7px 0 8px;
  color: #777;
  font: 10px/1.3 Arial, Helvetica, sans-serif;
}

.post-preview .entry-heading {
  min-height: 0;
  display: block;
  padding: 0;
  background: transparent;
}

.post-preview .entry-heading::before {
  display: none;
}

.post-preview .entry-heading h2 {
  margin: 0 0 8px;
  color: #87171d;
  font: 400 24px/1.35 Georgia, "Times New Roman", serif;
}

.journal-body .post-preview .entry-heading a,
.journal-body .post-preview .entry-heading a:link,
.journal-body .post-preview .entry-heading a:visited {
  color: #87171d;
  text-decoration: none;
}

.journal-body .post-preview .entry-heading a:hover,
.journal-body .post-preview .entry-heading a:focus-visible {
  color: #cf3859;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-preview .entry-content {
  min-height: 0;
  padding: 0 0 5px;
  color: #111;
  font: 13px/1.45 Georgia, "Times New Roman", serif;
  text-align: left;
}

.post-preview .entry-summary {
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 400 !important;
}

.post-preview .entry-content img,
.post-preview .entry-image {
  margin: 20px auto 25px;
  border: 0;
  outline: 0;
}

.single-entry .entry-content img.editor-image-align-left { float: left; margin: 6px 14px 10px 0; }
.single-entry .entry-content img.editor-image-align-center { float: none; margin-right: auto; margin-left: auto; }
.single-entry .entry-content img.editor-image-align-right { float: right; margin: 6px 0 10px 14px; }
.single-entry .entry-content img.editor-image-align-none { float: none; margin-right: 0; margin-left: 0; }

.post-preview .entry-content .post-preview-thumbnail {
  width: 180px;
  height: 120px;
  margin: 3px 0 14px;
  object-fit: cover;
}

.post-preview-more {
  display: inline-block;
  margin: 5px 0 17px;
  color: #e65070 !important;
  font-size: 11px;
  text-decoration: none !important;
}

.post-preview-more:hover,
.post-preview-more:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.post-preview .entry-footer {
  min-height: 0;
  display: block;
  padding: 8px 9px 7px;
  color: #d04a65;
  background: #fdebed;
  font-size: 9px;
}

.post-preview-labels {
  padding: 0;
}

.post-preview-labels a {
  margin-right: 0;
}

.post-preview .entry-footer a {
  color: #d04a65;
}

.single-entry {
  margin-bottom: 0;
}

.single-entry .entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.single-entry .entry-heading h2 {
  min-width: 0;
}

.journal-body .single-entry .entry-edit-link,
.journal-body .single-entry .entry-edit-link:link,
.journal-body .single-entry .entry-edit-link:visited {
  flex: 0 0 auto;
  color: #87171d;
  font: 12px/1.2 Georgia, "Times New Roman", serif;
  text-decoration: underline;
}

.single-entry .entry-content {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 6px;
}

.single-post-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 16px 0 25px;
  padding: 0 9px;
  font-size: 11px;
}

.single-post-navigation > :first-child {
  text-align: left;
}

.single-post-navigation > :last-child {
  text-align: right;
}

.single-post-navigation a {
  color: #8c1a25;
  text-decoration: none;
}

.single-post-navigation a:hover,
.single-post-navigation a:focus-visible {
  color: #d21d3b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-navigation-disabled {
  color: #aaa;
  cursor: default;
}

/* === SINGLE-POST COMMENTS === */
.journal-comments {
  margin: 32px 0 26px;
}

.journal-comments > h2 {
  margin: 0 0 12px;
  padding: 6px 9px;
  color: #fff;
  background: #651017 url("../../assets/backgrounds/bg-red-02.jpg") center / 230px auto;
  font: italic 700 16px/1.2 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 2px #39060b;
}

.journal-comments > h2 small {
  color: #fff;
  font-size: 10px;
}

.comment-thread {
  margin-bottom: 22px;
}

.comments-empty {
  margin: 0;
  padding: 6px 2px;
  color: #8a6870;
  font-size: 12px;
}

.journal-comment {
  margin: 0 0 9px calc(var(--comment-depth, 0) * 15px);
  padding: 8px 9px;
  border-left: 3px solid #dca3ae;
  background: #fff7f8;
  overflow-wrap: anywhere;
}

.journal-comment.is-reply {
  background: #fff;
}

.journal-comment header {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #87171d;
  font-size: 11px;
}

.journal-comment header strong {
  font-size: 12px;
}

.journal-comment header time {
  color: #9a6b74;
  font-size: 9px;
}

.journal-comment p {
  margin: 5px 0 0;
  color: #52151e;
  font-size: 12px;
  line-height: 1.5;
}

.comment-reply-button,
.comment-reply-status button {
  padding: 0;
  border: 0;
  color: #8c1a25;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.comment-reply-button {
  margin-left: auto;
  font-size: 10px;
}

.comment-parent-link {
  font-weight: 700;
}

.journal-comment-form {
  margin-top: 18px;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px dashed #dca3ae;
  background: transparent;
}

.journal-comment-form h3 {
  margin: 0 0 5px;
  color: #87171d;
  font: 400 19px/1.25 Georgia, "Times New Roman", serif;
}

.journal-comment-form > p {
  margin: 0 0 12px;
  color: #7b2737;
  font-size: 11px;
}

.journal-comment-form .comment-error {
  padding: 7px 8px;
  border: 0;
  color: #8a0c18;
  background: #fdebed;
}

.comment-reply-status[hidden] {
  display: none;
}

.comment-reply-status {
  margin: 0 0 10px;
  color: #7b2737;
  font-size: 11px;
}

.comment-field-grid {
  display: grid;
  gap: 9px;
}

.journal-comment-form label {
  display: grid;
  gap: 4px;
  color: #7b2737;
  font-size: 12px;
}

.comment-field-label {
  display: inline;
}

.journal-comment-form input,
.journal-comment-form textarea {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #dca3ae;
  border-radius: 0;
  color: #52151e;
  background: #fff;
  font: 12px/1.45 Georgia, "Times New Roman", serif;
}

.journal-comment-form input:focus,
.journal-comment-form textarea:focus {
  outline: 2px solid #efb7c1;
  outline-offset: 1px;
}

.comment-body-field {
  margin-top: 10px;
}

.journal-comment-form textarea {
  min-height: 125px;
  resize: vertical;
}

.comment-submit {
  margin-top: 10px;
  padding: 7px 13px;
  border: 1px solid #87171d;
  color: #fff;
  background: #87171d;
  font: 700 12px/1.2 Georgia, "Times New Roman", serif;
  cursor: pointer;
}

.comment-submit:hover,
.comment-submit:focus-visible {
  background: #b92f51;
}

.journal-comment.is-highlight {
  outline: 2px solid #d54a67;
  outline-offset: 2px;
}

/* === EMPTY JOURNAL AND PAGINATION === */
.journal-empty {
  min-height: 315px;
  display: grid;
  place-content: center;
  padding: 35px 20px;
  border: 0;
  background: #fff;
  text-align: center;
}

.journal-empty-icon {
  display: block;
  width: 24px;
  height: 23px;
  margin: 0 auto;
  object-fit: contain;
}

.journal-empty h2 {
  margin: 7px 0 4px;
  color: #87171d;
  font-size: 21px;
}

.journal-empty p {
  margin: 0 0 9px;
}

.journal-pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 13px;
}

.journal-pagination a {
  min-width: 24px;
  padding: 2px 6px;
  border: 1px solid #ef9cab;
  background: #fff;
  text-align: center;
  text-decoration: none;
}

.journal-pagination a.active {
  color: #fff;
  border-color: #b92f51;
  background: #b92f51;
}

/* === FC2-STYLE LEFT SIDEBAR === */
.sidebar-panel {
  min-width: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-panel:last-child {
  border-bottom: 0;
}

.sidebar-panel h2 {
  position: relative;
  width: 100%;
  margin: 0 0 7px;
  padding: 5px 7px;
  color: #fff;
  background: #651017 url("../../assets/backgrounds/bg-red-02.jpg") center / 230px auto;
  font: italic 700 12px/1.2 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 2px #39060b;
}

.sidebar-panel p {
  margin: 0;
  color: var(--rose);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sidebar-panel ul {
  margin: 0;
  padding-left: 15px;
  color: var(--rose);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.sidebar-panel small {
  color: #bd7583;
}

.journal-recent-posts {
  padding-left: 0 !important;
  font-size: 12px !important;
  list-style: none;
}

.journal-archive details,
.journal-archive summary {
  margin: 0;
}

.archive-year > summary {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #8c1a25;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.archive-year > summary small { font-weight: 400; }

.archive-year > summary::-webkit-details-marker {
  display: none;
}

.archive-year > summary::before {
  width: 11px;
  flex: 0 0 11px;
  color: #8c1a25;
  content: "+";
  font-weight: 700;
  text-align: center;
}

.archive-year[open] > summary::before {
  content: "−";
}

.archive-months {
  padding: 3px 0 1px 15px;
}

.archive-month {
  margin: 0 0 5px;
}

.archive-month > summary {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0 0 1px;
  color: #8c1a25;
  font: 700 12px/1.45 Georgia, "Times New Roman", serif;
  cursor: pointer;
  list-style: none;
}

.archive-month > summary::-webkit-details-marker {
  display: none;
}

.archive-month > summary::before {
  width: 11px;
  flex: 0 0 11px;
  color: #8c1a25;
  content: "+";
  font-weight: 700;
  text-align: center;
}

.archive-month[open] > summary::before {
  content: "−";
}

.archive-posts {
  margin: 0;
  padding-left: 15px !important;
  font-size: 12px !important;
  list-style: none;
}

.journal-archive a {
  color: #8c1a25;
}

.archive-month li {
  margin: 0 0 2px;
  line-height: 1.35;
}

.journal-links ul {
  padding-left: 0;
  list-style: none;
}

.journal-links li {
  margin-bottom: 3px;
}

.journal-links a {
  font-weight: 700;
}

.journal-profile img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 0 7px;
  border: 1px solid #ef9cab;
  outline: 0;
  object-fit: cover;
}

.journal-profile-link {
  display: block;
  width: fit-content;
}

.journal-profile-link:focus-visible {
  outline: 2px solid #87171d;
  outline-offset: 2px;
}

.journal-profile strong {
  color: #8c1a25;
}

.journal-search {
  margin: 0;
}

.journal-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px;
}

.journal-search input {
  min-width: 0;
  width: 100%;
  height: 24px;
  padding: 2px 4px;
  border: 1px solid #efb1bd;
  border-radius: 0;
  color: #52151e;
  background: #fff;
  font: 11px Georgia, "Times New Roman", serif;
}

.journal-search button {
  height: 24px;
  padding: 2px 8px;
  border: 1px solid #87171d;
  border-radius: 0;
  color: #fff;
  background: #87171d;
  font: 700 11px Georgia, "Times New Roman", serif;
  cursor: pointer;
}

.journal-search button:hover,
.journal-search button:focus-visible {
  background: #b92f51;
}

.journal-tag-cloud {
  margin: 0;
  line-height: 1.65;
}

.journal-tag-cloud a {
  margin-right: 0;
  font-size: 12px;
}

.journal-frame > .site-footer {
  width: 100%;
  margin: auto 0 0;
  padding: 12px 10px 8px;
  border: 0;
  border-top: 3px double #87171d;
  background: #fff;
  box-shadow: 0 8px 0 #fff;
}

.journal-scroll-controls {
  position: fixed;
  z-index: 10;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
}

.journal-scroll-controls a {
  width: 28px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #87171d;
  color: #87171d;
  background: #fff;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  text-decoration: none !important;
  text-decoration-line: none !important;
  box-shadow: 0 1px 3px rgba(82, 21, 30, .15);
}

.journal-scroll-controls a:hover,
.journal-scroll-controls a:focus-visible {
  color: #fff;
  background: #87171d;
}

.journal-scroll-controls a:focus-visible {
  outline: 2px solid #d54a67;
  outline-offset: 2px;
}

/* === JOURNAL RESPONSIVE LAYOUT === */
@media (max-width: 620px) {
  .journal-shell {
    width: min(calc(100% - 40px), 660px);
    padding: 0 20px;
  }

  .journal-frame::before,
  .journal-frame::after {
    width: 20px;
    background-size: 20px auto;
  }

  .journal-frame::before { left: -19px; }
  .journal-frame::after { right: -19px; }

  .journal-banner {
    height: 115px;
    min-height: 115px;
    padding: 0 8px 9px;
  }

  .journal-banner::after {
    right: 6px;
    left: 6px;
  }

  .journal-title-image {
    width: 160px;
    height: auto;
  }

  .journal-banner-character {
    width: 170px;
    height: 125px;
  }

  .journal-layout {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 10px;
    padding: 6px;
  }
}

@media (max-width: 500px) {
  .journal-shell {
    width: min(calc(100% - 28px), 660px);
    padding: 0 14px;
  }

  .journal-scroll-controls {
    right: 8px;
    bottom: 8px;
  }

  .journal-frame::before,
  .journal-frame::after {
    width: 14px;
    background-size: 14px auto;
  }

  .journal-frame::before { left: -13px; }
  .journal-frame::after { right: -13px; }

  .journal-banner {
    height: 100px;
    min-height: 100px;
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .journal-title-image {
    width: 118px;
    height: auto;
  }

  .journal-banner-character {
    width: 140px;
    height: 105px;
  }

  .journal-layout {
    grid-template-columns: 1fr;
    background: #fff;
  }

  .journal-entries,
  .journal-sidebar {
    grid-column: 1;
  }

  .single-post-navigation {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .single-post-navigation > :first-child,
  .single-post-navigation > :last-child {
    text-align: center;
  }

  .journal-entries {
    grid-row: 1;
  }

  .journal-sidebar {
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    padding-right: 0;
    border-right: 0;
  }

  .journal-sidebar .sidebar-panel {
    width: 100%;
    min-width: 0;
  }

  .sidebar-panel h2 {
    width: 100%;
  }

  .entry-content .sleep,
  .entry-content .eating,
  .entry-content .hygiene,
  .entry-content .mental,
  .entry-content .work {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  .journal-sidebar {
    grid-template-columns: 1fr;
  }

  .entry-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
