/*
 * My City Cat blog archive optimization
 * Paste into WordPress Appearance > Customize > Additional CSS,
 * or add to the active theme stylesheet after testing.
 */

/* Page title band */
.page-id-591 .wp-block-post-title.has-xxx-large-font-size {
  font-size: clamp(2.35rem, 4vw, 3.05rem);
  line-height: 1.12;
}

/* Intro area: keep the content readable without making the lead feel narrow. */
.page-id-591 main .wp-block-heading {
  line-height: 1.12;
}

.page-id-591 main h1.wp-block-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 9.5em;
}

.page-id-591 main h2.wp-block-heading {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.16;
}

.page-id-591 main p {
  line-height: 1.65;
}

/* Blog archive cards */
.page-id-591 .wp-block-post-template {
  gap: clamp(1.75rem, 4vw, 3rem);
}

.page-id-591 .wp-block-post {
  border-bottom: 1px solid rgba(17, 24, 31, 0.12);
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.page-id-591 .wp-block-post-featured-image {
  margin-bottom: 1.1rem;
}

.page-id-591 .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.page-id-591 .wp-block-post-title {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  line-height: 1.14;
  margin-block: 0.55rem 0.65rem;
}

.page-id-591 .wp-block-post-title a {
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
}

.page-id-591 .wp-block-post-date,
.page-id-591 .wp-block-post-terms {
  color: rgb(91, 99, 112);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-id-591 .wp-block-post-excerpt {
  color: rgb(49, 58, 69);
  line-height: 1.62;
}

.page-id-591 .wp-block-post-excerpt__more-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.7rem;
  font-weight: 700;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

/* Sidebar: make utility blocks feel secondary to the article list. */
.page-id-591 aside,
.page-id-591 .wp-block-search,
.page-id-591 .wp-block-latest-posts {
  font-size: 0.95rem;
}

.page-id-591 .wp-block-search,
.page-id-591 aside .wp-block-group {
  background: rgb(249, 243, 232);
}

.page-id-591 .wp-block-search__input {
  min-height: 2.8rem;
  padding-inline: 0.9rem;
}

.page-id-591 .wp-block-latest-posts__post-title {
  line-height: 1.35;
}

/* Topic list: clearer tap targets without changing the markup. */
.page-id-591 main ul:not(.wp-block-post-template) a {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  text-underline-offset: 0.14em;
}

/* Mobile: get visitors to useful choices and posts faster. */
@media (max-width: 700px) {
  .page-id-591 main {
    --wp--style--root--padding-left: 1.75rem;
    --wp--style--root--padding-right: 1.75rem;
  }

  .page-id-591 .wp-block-post-title.has-xxx-large-font-size {
    font-size: 2.35rem;
  }

  .page-id-591 main h1.wp-block-heading {
    font-size: 2.25rem;
    max-width: 10em;
  }

  .page-id-591 main h2.wp-block-heading {
    font-size: 1.85rem;
  }

  .page-id-591 .wp-block-post-title {
    font-size: 1.65rem;
    line-height: 1.18;
  }

  .page-id-591 .wp-block-post {
    padding-bottom: 2rem;
  }

  .page-id-591 .wp-block-post-excerpt {
    font-size: 0.98rem;
  }
}

/* Desktop: improve scanning if the post template is allowed to expand. */
@media (min-width: 900px) {
  .page-id-591 .wp-block-post-template.is-layout-grid,
  .page-id-591 .wp-block-post-template.columns-2 {
    column-gap: 2rem;
    row-gap: 3rem;
  }

  .page-id-591 .wp-block-post-template.is-layout-grid .wp-block-post,
  .page-id-591 .wp-block-post-template.columns-2 .wp-block-post {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/*
 * My City Cat blog archive optimization v2
 * Adds stronger UI polish on top of the first CSS pass.
 */

body.page-id-591 {
  background:
    linear-gradient(180deg, rgba(249, 243, 232, 0.5), rgba(255, 255, 255, 0) 340px),
    #fff;
}

body.page-id-591 .wp-site-blocks > .wp-block-group.has-background {
  box-shadow: inset 0 -1px rgba(17, 24, 31, 0.1);
}

body.page-id-591 .entry-content > .wp-block-columns {
  column-gap: clamp(1.75rem, 3vw, 2.75rem);
}

body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:first-child {
  max-width: 715px;
}

body.page-id-591 .entry-content h1.wp-block-heading {
  font-size: clamp(2.1rem, 3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

body.page-id-591 .entry-content h2.wp-block-heading {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

body.page-id-591 .entry-content p {
  color: rgb(38, 47, 57);
}

body.page-id-591 .entry-content figure {
  margin-top: 1.75rem;
}

body.page-id-591 .entry-content figure img {
  border-radius: 8px;
}

body.page-id-591 .entry-content figcaption {
  color: rgb(72, 81, 94);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.75rem;
}

/* Topic navigation becomes a compact set of useful chips. */
body.page-id-591 .cat-pillar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0;
}

body.page-id-591 .cat-pillar-links li {
  list-style: none;
  margin: 0;
}

body.page-id-591 .cat-pillar-links a {
  background: rgb(250, 246, 239);
  border: 1px solid rgba(101, 80, 65, 0.22);
  border-radius: 999px;
  color: rgb(49, 38, 30);
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 2.25rem;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body.page-id-591 .cat-pillar-links a:hover,
body.page-id-591 .cat-pillar-links a:focus-visible {
  background: rgb(243, 231, 213);
  border-color: rgba(101, 80, 65, 0.42);
  transform: translateY(-1px);
}

/* Primary post list: make each article feel intentional and tappable. */
body.page-id-591 .entry-content .wp-block-query.alignwide {
  max-width: 100%;
}

body.page-id-591 .entry-content .wp-block-post-template {
  display: grid;
  gap: 1.4rem;
}

body.page-id-591 .entry-content .wp-block-post {
  background: rgb(255, 255, 255);
  border: 1px solid rgba(17, 24, 31, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(36, 32, 28, 0.07);
  overflow: hidden;
  padding: 0;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

body.page-id-591 .entry-content .wp-block-post:hover {
  border-color: rgba(101, 80, 65, 0.22);
  box-shadow: 0 16px 38px rgba(36, 32, 28, 0.11);
  transform: translateY(-2px);
}

body.page-id-591 .entry-content .wp-block-post > *:not(.wp-block-post-featured-image) {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

body.page-id-591 .entry-content .wp-block-post > *:last-child {
  margin-bottom: 1.25rem;
}

body.page-id-591 .entry-content .wp-block-post-featured-image {
  margin: 0;
}

body.page-id-591 .entry-content .wp-block-post-featured-image img {
  border-radius: 0;
}

body.page-id-591 .entry-content .wp-block-post-title {
  font-size: clamp(1.45rem, 2.2vw, 1.78rem);
  line-height: 1.16;
  margin-top: 1rem;
}

body.page-id-591 .entry-content .wp-block-post-title a {
  text-decoration: none;
}

body.page-id-591 .entry-content .wp-block-post-title a:hover,
body.page-id-591 .entry-content .wp-block-post-title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.15em;
}

body.page-id-591 .entry-content .wp-block-post-date {
  margin-top: 0.95rem;
}

body.page-id-591 .entry-content .wp-block-post-excerpt {
  font-size: 0.98rem;
}

/* Sidebar: lighter, stickier, and easier to parse. */
body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child {
  position: sticky;
  top: 5.5rem;
  align-self: flex-start;
}

body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child .wp-block-group.has-background {
  background: rgb(250, 246, 239) !important;
  border: 1px solid rgba(101, 80, 65, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(36, 32, 28, 0.06);
}

body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child .wp-block-search {
  background: transparent;
}

body.page-id-591 .wp-block-search__input {
  border: 1px solid rgba(17, 24, 31, 0.22);
  border-radius: 6px;
  font-size: 1rem;
}

body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child h3 {
  color: rgb(45, 36, 30);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child .wp-block-post-template {
  gap: 0;
}

body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child .wp-block-post {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(101, 80, 65, 0.14);
  border-radius: 0;
  box-shadow: none;
  padding: 0.95rem 0;
  transform: none;
}

body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child .wp-block-post:hover {
  box-shadow: none;
  transform: none;
}

body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child .wp-block-post-title {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0.25rem 0 0;
}

/* The essentials list near the bottom should look like navigation, not a default bullet list. */
body.page-id-591 .entry-content h2.wp-block-heading + ul.wp-block-list {
  display: grid;
  gap: 0.6rem;
  padding: 0;
}

body.page-id-591 .entry-content h2.wp-block-heading + ul.wp-block-list li {
  list-style: none;
}

body.page-id-591 .entry-content h2.wp-block-heading + ul.wp-block-list a {
  background: rgb(250, 246, 239);
  border: 1px solid rgba(101, 80, 65, 0.16);
  border-radius: 8px;
  display: block;
  font-weight: 700;
  padding: 0.85rem 1rem;
  text-decoration: none;
}

@media (min-width: 1180px) {
  body.page-id-591 .entry-content > .wp-block-columns {
    max-width: 1160px;
  }

  body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:first-child {
    flex-basis: 760px !important;
  }

  body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child {
    flex-basis: 340px !important;
  }

  body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:first-child > .wp-block-columns {
    gap: 2rem;
  }

  body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:first-child > .wp-block-columns > .wp-block-column:first-child {
    flex-basis: 245px !important;
  }

  body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:first-child > .wp-block-columns > .wp-block-column:last-child {
    flex-basis: 485px !important;
  }
}

@media (max-width: 781px) {
  body.page-id-591 .entry-content > .wp-block-columns > .wp-block-column:last-child {
    position: static;
  }

  body.page-id-591 .entry-content .wp-block-post > *:not(.wp-block-post-featured-image) {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  body.page-id-591 .entry-content .wp-block-post-title {
    font-size: 1.45rem;
  }
}
