/* Lore and Law case-note card polish */
.page-id-30 .wp-block-post-template.is-flex-container {
  align-items: stretch;
}

.page-id-30 .wp-block-post-template.is-flex-container > li {
  display: flex;
}

.page-id-30 .wp-block-post-template .wp-block-group[style*="border-color:#d8d0c2"],
.page-id-30 .wp-block-post-template .wp-block-group[style*="border-color: #d8d0c2"] {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
}

.home .wp-block-group[style*="border-color:#d8d0c2"][style*="border-width:1px"],
.home .wp-block-group[style*="border-color: #d8d0c2"][style*="border-width:1px"] {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.page-id-30 .wp-block-post-title {
  margin-bottom: 0.55rem;
  margin-top: 0.85rem;
}

.page-id-30 .wp-block-post-date {
  margin-bottom: 1rem;
  margin-top: 0;
}

.page-id-30 .wp-block-post-excerpt {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.page-id-30 .wp-block-post-excerpt__excerpt {
  color: #5f5a52;
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.page-id-30 .wp-block-post-excerpt__more-text {
  margin-bottom: 0;
  margin-top: auto;
}

.home .wp-block-buttons {
  margin-top: auto;
  padding-top: 0.4rem;
}

.page-id-30 .wp-block-post-excerpt__more-link,
.home .wp-block-button__link {
  background: #ffffff;
  border: 1px solid #6f1d1b;
  border-radius: 4px;
  color: #6f1d1b;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.page-id-30 .wp-block-post-excerpt__more-link:hover,
.page-id-30 .wp-block-post-excerpt__more-link:focus,
.home .wp-block-button__link:hover,
.home .wp-block-button__link:focus {
  background: #6f1d1b;
  color: #ffffff;
  text-decoration: none;
}

.page-id-219 .wp-block-list,
.page-id-30 .wp-block-list {
  line-height: 1.7;
}

.page-id-219 .wp-block-list li,
.page-id-30 .wp-block-list li {
  margin-bottom: 0.35rem;
}

/* Lore and Law global layout polish */
:root {
  --ll-page-bg: #f7f5f0;
  --ll-panel-bg: #fffdf8;
  --ll-border: #d8d0c2;
  --ll-ink: #221711;
  --ll-muted: #5f5a52;
  --ll-accent: #6f1d1b;
  --ll-gold: #704909;
}

body {
  background: var(--ll-page-bg);
  color: var(--ll-ink);
}

.wp-site-blocks {
  background: var(--ll-page-bg);
}

main,
.wp-block-post-content,
.entry-content {
  background: transparent;
}

.wp-block-post-title,
.entry-title,
h1,
h2,
h3 {
  color: var(--ll-gold);
  font-family: Cardo, Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

.wp-block-post-title {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.wp-block-post-content > .wp-block-group,
.entry-content > .wp-block-group {
  border-color: var(--ll-border) !important;
}

.page-id-1 .wp-block-post-content,
.page-id-26 .wp-block-post-content,
.single-post .entry-content,
.single-post .wp-block-post-content {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.page-id-1 .wp-block-post-content > :where(p, ul, ol, h2, h3, blockquote),
.page-id-26 .wp-block-post-content > :where(p, ul, ol, h2, h3, blockquote),
.single-post .wp-block-post-content > :where(p, ul, ol, h2, h3, blockquote),
.single-post .entry-content > :where(p, ul, ol, h2, h3, blockquote) {
  max-width: 820px;
}

.page-id-1 .wp-block-post-content,
.page-id-26 .wp-block-post-content {
  background: var(--ll-panel-bg);
  border: 1px solid var(--ll-border);
  box-sizing: border-box;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.page-id-1 .wp-block-post-content h2,
.page-id-26 .wp-block-post-content h2,
.single-post .wp-block-post-content h2,
.single-post .entry-content h2 {
  border-top: 1px solid var(--ll-border);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.page-id-1 .wp-block-post-content h2:first-child,
.page-id-26 .wp-block-post-content h2:first-child,
.single-post .wp-block-post-content h2:first-child,
.single-post .entry-content h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.page-id-1 .wp-block-post-content p,
.page-id-26 .wp-block-post-content p,
.single-post .wp-block-post-content p,
.single-post .entry-content p,
.page-id-30 .wp-block-post-excerpt__excerpt {
  color: var(--ll-muted);
}

.wp-block-quote,
blockquote {
  background: #fbf8f1;
  border-left: 3px solid var(--ll-accent);
  margin-left: 0;
  padding: 1.1rem 1.25rem;
}

.wp-block-separator,
hr {
  border-color: var(--ll-border);
}

.page-id-219 .wp-block-group[style*="border"],
.page-id-30 .wp-block-group[style*="border"],
.page-id-1 .wp-block-group[style*="border"],
.page-id-26 .wp-block-group[style*="border"] {
  border-color: var(--ll-border) !important;
}

.page-id-30 .wp-block-post-template .wp-block-group[style*="border"],
.home .wp-block-group[style*="border-color:#d8d0c2"],
.home .wp-block-group[style*="border-color: #d8d0c2"] {
  background: var(--ll-panel-bg);
}

.page-id-30 .wp-block-post-template > li,
.home .wp-block-query .wp-block-post,
.wp-block-post-template > li {
  list-style: none;
}

.page-id-30 .wp-block-post-template .wp-block-group[style*="border"] {
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(34, 23, 17, 0.04);
}

.page-id-30 .wp-block-post-title a,
.wp-block-query .wp-block-post-title a {
  color: var(--ll-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.page-id-30 .wp-block-post-title a:hover,
.wp-block-query .wp-block-post-title a:hover {
  color: var(--ll-accent);
}

.wp-block-navigation a,
footer a {
  text-underline-offset: 0.18em;
}

footer,
footer.wp-block-template-part {
  border-top: 1px solid var(--ll-border);
  margin-top: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 700px) {
  .wp-block-post-title,
  h1 {
    font-size: clamp(2.2rem, 12vw, 3.25rem) !important;
    line-height: 1.08 !important;
  }

  .page-id-1 .wp-block-post-content,
  .page-id-26 .wp-block-post-content {
    border-left: 0;
    border-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .page-id-30 .wp-block-post-template .wp-block-group[style*="border"] {
    padding: 1.25rem !important;
  }
}

/* Lore and Law About/Contact page cleanup */
.page-id-1 .wp-block-post-content > div[style*="background-color:#e8d4aa"],
.page-id-26 .wp-block-post-content > div[style*="background-color:#e8d4aa"] {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-id-1 .wp-block-post-content > div[style*="background-color:#e8d4aa"] > div,
.page-id-26 .wp-block-post-content > div[style*="background-color:#e8d4aa"] > div {
  color: var(--ll-ink) !important;
  margin: 0 auto !important;
  max-width: 760px !important;
  width: 100% !important;
}

.page-id-1 .wp-block-post-content > div[style*="background-color:#e8d4aa"] section:first-child,
.page-id-26 .wp-block-post-content > div[style*="background-color:#e8d4aa"] section:first-child {
  display: none !important;
}

.page-id-1 .wp-block-post-content > div[style*="background-color:#e8d4aa"] section,
.page-id-26 .wp-block-post-content > div[style*="background-color:#e8d4aa"] section {
  padding-top: 0 !important;
}


/* Lore and Law case-note preview simplification */
.page-id-30 .wp-block-post-excerpt__excerpt,
.home .wp-block-post-excerpt__excerpt,
.page-id-219 .wp-block-post-excerpt__excerpt {
  display: none !important;
}

.page-id-30 .wp-block-post-excerpt,
.home .wp-block-post-excerpt,
.page-id-219 .wp-block-post-excerpt {
  margin-top: auto;
}

.page-id-30 .wp-block-post-excerpt__more-text,
.home .wp-block-post-excerpt__more-text,
.page-id-219 .wp-block-post-excerpt__more-text {
  margin-top: 1.25rem !important;
}


/* Lore and Law case-note cards: title and button only */
.page-id-30 .wp-block-post-terms,
.page-id-30 .taxonomy-category,
.page-id-30 .wp-block-post-date,
.page-id-30 .wp-block-post-excerpt__excerpt,
.home .wp-block-query .wp-block-post-terms,
.home .wp-block-query .taxonomy-category,
.home .wp-block-query .wp-block-post-date,
.home .wp-block-query .wp-block-post-excerpt__excerpt,
.page-id-219 .wp-block-query .wp-block-post-terms,
.page-id-219 .wp-block-query .taxonomy-category,
.page-id-219 .wp-block-query .wp-block-post-date,
.page-id-219 .wp-block-query .wp-block-post-excerpt__excerpt {
  display: none !important;
}

.page-id-30 .wp-block-post-title,
.home .wp-block-query .wp-block-post-title,
.page-id-219 .wp-block-query .wp-block-post-title {
  margin-bottom: 1.25rem !important;
}