/*
Theme Name: Jennifer Liston
Description: Twenty Twenty-Five with a compact category sidebar inspired by Jennifer's original site.
Template: twentytwentyfive
Version: 1.0.0
Text Domain: jennifer-twentytwentyfive
License: GNU General Public License v2 or later
*/

body .wp-block-columns.jennifer-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: 72rem;
  margin-inline: auto;
  align-items: start;
}
.jennifer-blog-layout > .wp-block-column {
  min-width: 0;
  margin: 0;
}
.jennifer-posts-column .alignfull {
  max-width: 100%;
  margin-inline: 0 !important;
}
.jennifer-posts-column :where(img, video) {
  max-width: 100%;
  height: auto;
}
.jennifer-posts-column .wp-block-post-title { overflow-wrap: anywhere; }
.jennifer-category-panel {
  overflow: hidden;
  border: 1px solid #dededb;
  border-radius: 4px;
  background: #fafaf8;
  color: #666;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
}
.jennifer-category-panel > .wp-block-heading {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #dededb;
  background: #efefec;
  color: #555;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.jennifer-category-panel .jennifer-category-list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1.1rem 0.35rem;
}
.jennifer-category-panel .jennifer-category-list li {
  position: relative;
  margin: 0;
  padding: 0.25rem 0 0.25rem 0.9rem;
  overflow-wrap: anywhere;
}
.jennifer-category-panel .jennifer-category-list li::before {
  position: absolute;
  inset-inline-start: 0;
  top: 0.85rem;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: #ce913e;
  content: "";
}
.jennifer-category-panel .children {
  list-style: none;
  padding-inline-start: 0.7rem;
}
.jennifer-category-panel a {
  color: #222;
  text-decoration: none;
  text-underline-offset: 0.18em;
}
.jennifer-category-panel a:hover,
.jennifer-category-panel a:focus-visible,
.jennifer-category-panel .current-cat > a {
  text-decoration: underline;
}
.jennifer-category-panel a:focus-visible {
  outline: 2px solid #9c6a28;
  outline-offset: 3px;
}
.jennifer-category-panel .current-cat > a { font-weight: 700; }
.jennifer-category-panel .jennifer-all-posts {
  margin: 0.5rem 1.1rem 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid #dededb;
  font-size: inherit;
}
@media (max-width: 900px) {
  body .wp-block-columns.jennifer-blog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .jennifer-category-panel .jennifer-category-list {
    columns: 2;
    column-gap: 2rem;
  }
  .jennifer-category-panel li { break-inside: avoid; }
}
@media (max-width: 540px) {
  .jennifer-category-panel .jennifer-category-list { columns: 1; }
}
