.blog-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1rem;padding:1.25rem;margin:0 0 1.5rem;background:#fffaf5;border:1px solid #c7b7a7;border-radius:18px;color:#382f28}
.blog-filters[hidden],.blog-post-list>[hidden]{display:none!important}
.blog-filters label{display:flex;flex-direction:column;gap:.4rem;font-weight:650}
.blog-filters input,.blog-filters select{font:inherit;font-size:1rem;background:#fff;color:#302921;border:1px solid #927c69;border-radius:9px;padding:.8rem;width:100%;min-height:48px;box-sizing:border-box}
.blog-filters input:focus,.blog-filters select:focus{outline:3px solid #1c63a8;outline-offset:2px}
.blog-filters [role=status]{grid-column:1/-1;margin:0;font-size:1rem}
.blog-post-list .blog-post-card{content-visibility:auto;contain-intrinsic-size:auto 650px}
@media(max-width:600px){.blog-filters{grid-template-columns:1fr}}
/* Article links must not override white text on filled action buttons. */
.blog-theme a.read-guide,.blog-theme .article-content a.read-guide,.blog-theme .article-content a.read-guide:visited{background:#684831;color:#fff!important;text-decoration:none;font-weight:700;border-radius:8px;min-height:48px;align-items:center;line-height:1.6;overflow-wrap:anywhere}
.blog-theme a.read-guide:hover,.blog-theme .article-content a.read-guide:hover{background:#493121;color:#fff!important}
.blog-theme a.read-guide:focus-visible{outline:3px solid #174fae;outline-offset:4px}
.blog-theme .tool-contents{background:#f5ece3;border:1px solid #b8a18e;color:#38291e}
.blog-theme .tool-contents strong,.blog-theme .tool-contents a{color:#38291e;font-weight:700}
.blog-theme .tool-contents>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
.blog-theme .tool-contents a{display:block;line-height:1.6;font-size:16px;min-height:44px;padding:6px 0;text-underline-offset:4px}
.blog-theme .tool-contents a:hover{color:#174fae}
.blog-category-nav{background:#fffaf5;border:1px solid #c7b7a7;border-radius:15px;padding:18px;margin:18px 0;color:#382f28}
.blog-category-nav>strong{display:block;font-size:16px;margin-bottom:12px}
.blog-category-nav>div{display:flex;flex-wrap:wrap;gap:9px}
.blog-category-nav a{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:9px 14px;border:1px solid #a58a73;border-radius:999px;color:#493121;background:#fff;font-weight:650;font-size:14px;text-decoration:none;line-height:1.5}
.blog-category-nav a span{font-size:12px;border-radius:999px;padding:2px 7px;background:#f0e5db;color:#493121}
.blog-category-nav a[aria-current=page]{background:#684831;color:#fff;border-color:#684831}
.blog-category-nav a[aria-current=page] span{background:#fff;color:#493121}
.blog-category-nav a:hover{border-color:#174fae;color:#174fae;background:#edf3fc}
.blog-category-nav a:focus-visible{outline:3px solid #174fae;outline-offset:3px}
@media(max-width:600px){.blog-theme .tool-contents>div{grid-template-columns:1fr}.blog-category-nav{padding:15px}.blog-category-nav>div{display:grid;grid-template-columns:1fr 1fr}.blog-category-nav a{border-radius:10px;padding:9px 10px;font-size:13px;justify-content:space-between}}

/* Tool actions belong before decorative artwork and long introductions. */
.blog-theme .blog-tool-action{margin:0 0 24px;padding:0;border:0;background:none}
.blog-theme .blog-tool-action a{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:18px 22px;border-radius:14px;background:linear-gradient(120deg,#283bb8,#6540a8);color:#fff;text-decoration:none;box-shadow:0 8px 24px #34318e24;min-height:64px;line-height:1.5}
.blog-theme .blog-tool-action a>span:first-child{flex-shrink:0;font-size:14px;font-weight:700;border:1px solid #ffffff70;border-radius:99px;padding:7px 12px}
.blog-theme .blog-tool-action a strong{flex:1;color:#fff;font-size:17px;overflow-wrap:anywhere}
.blog-theme .blog-tool-action a:hover{background:#283781}
.blog-theme .blog-tool-action a:focus-visible{outline:3px solid #174fae;outline-offset:4px}
.blog-theme .article-content a.inline-tool-link{color:#193f99;font-weight:750;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.blog-theme .blog-cover{aspect-ratio:3/2;border-radius:12px;object-fit:cover}
.blog-theme .article-cover{aspect-ratio:3/2;border-radius:14px;object-fit:cover}
@media(max-width:600px){.blog-theme .blog-tool-action a{flex-wrap:wrap;padding:16px;gap:10px}.blog-theme .blog-tool-action a strong{flex-basis:70%;font-size:16px}}

.blog-theme .blog-artwork{margin:0 0 28px}.blog-theme .blog-artwork .article-cover{margin:0}.blog-theme .blog-artwork figcaption{font-size:12px;color:#69574b;line-height:1.6;padding:8px 2px}.blog-theme .blog-cover-link{overflow:hidden;border-radius:12px}.blog-theme .blog-cover{transition:transform .25s ease}.blog-theme .blog-cover-link:hover .blog-cover{transform:scale(1.025)}@media(prefers-reduced-motion:reduce){.blog-theme .blog-cover{transition:none}}

.blog-post-list{scroll-margin-top:100px}

/* Isolate category navigation from the global flex navigation layout. */
.blog-theme .blog-category-nav{display:block;width:100%;min-width:0;box-sizing:border-box}
.blog-theme .blog-category-nav>strong{display:block;margin:0 0 12px;line-height:1.5;overflow-wrap:anywhere}
.blog-theme .blog-category-nav>div{min-width:0}
.blog-theme .blog-category-nav a{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.blog-theme .blog-category-nav a span{flex-shrink:0}
@media(max-width:600px){.blog-theme .blog-category-nav>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.blog-theme .blog-category-nav a{width:100%;gap:7px}}
@media(max-width:360px){.blog-theme .blog-category-nav>div{grid-template-columns:minmax(0,1fr)}}

/* Article content precedes optional category navigation on mobile and desktop. */
.article-category-picker{margin-block:2rem;border:1px solid var(--border,#e1e8f6);border-radius:16px;padding:1rem;background:var(--surface,#fff)}
.article-category-picker>summary{cursor:pointer;font-weight:700;font-size:1.1rem;padding:.5rem;min-height:44px}
.article-category-picker .blog-category-nav{margin-block:1rem 0}

/* Keep the article title directly below the site header. */
.blog-theme .blog-article-page{margin-block-start:12px;padding-top:0}
.blog-theme .blog-article-page .article-heading{padding:12px 0}
.blog-theme .blog-article-page .article-heading h1{margin:0 0 14px}
@media(max-width:640px){.blog-theme .blog-article-page{margin-block-start:8px}.blog-theme .blog-article-page .article-heading{padding-top:10px}}

/* Compact, native disclosure for article section shortcuts. */
.blog-theme .article-jump{margin:24px 0;border:1px solid #ded5ee;border-radius:18px;background:#fff;color:#24173e;box-shadow:0 6px 24px #50229408;overflow:hidden}
.blog-theme .article-jump>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:18px;min-height:64px}
.blog-theme .article-jump>summary::-webkit-details-marker{display:none}
.blog-theme .article-jump>summary::marker{content:""}
.blog-theme .jump-symbol{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:#f1eaff;color:#5823bd;font-size:28px;line-height:1}
.blog-theme .jump-label{display:grid;gap:4px;flex:1;min-width:0}
.blog-theme .jump-label strong{font-size:17px;line-height:1.35;color:#24173e}
.blog-theme .jump-label>span{font-size:13px;line-height:1.45;color:#655b79}
.blog-theme .jump-toggle{display:grid;place-items:center;flex:0 0 28px;height:28px;border:1px solid #ded5ee;border-radius:50%;color:#5823bd;font-size:22px;line-height:1;transition:transform .15s}
.blog-theme .article-jump[open] .jump-toggle{transform:rotate(45deg)}
.blog-theme .article-jump[open]>summary{border-bottom:1px solid #eee8f6}
.blog-theme .article-jump ol{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0;padding:10px}
.blog-theme .article-jump li{margin:0;min-width:0}
.blog-theme .article-jump li a,.blog-theme .article-jump li a:visited{display:flex;align-items:center;gap:10px;padding:12px;min-height:48px;border-radius:11px;color:#342748;text-decoration:none;font-size:14px;line-height:1.5;font-weight:600}
.blog-theme .article-jump li a:hover{background:#f7f3ff;color:#5823bd}
.blog-theme .jump-number{font-size:12px;flex:0 0 24px;color:#7a48c5;font-variant-numeric:tabular-nums}
.blog-theme .jump-arrow{margin-inline-start:auto;color:#9d6e35}
.blog-theme .article-jump summary:focus-visible,.blog-theme .article-jump a:focus-visible{outline:3px solid #7b45d5;outline-offset:-3px}
.blog-theme .article-content h2{scroll-margin-top:110px}
@media(max-width:640px){.blog-theme .article-jump ol{grid-template-columns:1fr}.blog-theme .article-jump>summary{padding:14px;gap:10px}.blog-theme .jump-label strong{font-size:16px}.blog-theme .jump-label>span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.blog-theme .jump-toggle{transition:none}}

.blog-theme .article-section-photo{margin:16px 0 24px}
.blog-theme .article-section-photo img{display:block;width:100%;height:auto;border-radius:14px}

.blog-theme .depression-series .article-heading p{line-height:1.65}
.blog-theme .depression-crisis{padding:18px 22px;margin:20px 0;border:1px solid #bfb0cf;border-inline-start:4px solid #68519a;border-radius:12px;background:#f7f3fc;color:#27213b}
.blog-theme .depression-crisis p,.blog-theme .depression-crisis ul{margin:8px 0 0}
.blog-theme .depression-crisis a,.blog-theme .depression-steps a{overflow-wrap:anywhere}
.blog-theme .depression-episodes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 26px;padding-inline-start:30px}
.blog-theme .depression-episodes li{padding:12px 16px;border:1px solid #dcd4e5;border-radius:12px}
.blog-theme .depression-episodes img{display:block;width:100%;height:auto;margin-bottom:10px;border-radius:8px}
.blog-theme .depression-steps{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.blog-theme .depression-steps a{padding:9px 12px;border:1px solid #ccc0da;border-radius:8px}
.blog-theme .depression-table{overflow-x:auto}
.blog-theme .depression-table table{width:100%;border-collapse:collapse}
.blog-theme .depression-table td,.blog-theme .depression-table th{padding:8px;border:1px solid #d9cfe2;text-align:start;vertical-align:top}
@media(max-width:650px){.blog-theme .depression-episodes{grid-template-columns:1fr}}

.blog-theme .blog-post-list {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 620px) {
  .blog-theme .blog-post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .blog-theme .blog-post-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1150px) {
  .blog-theme .blog-page {
    max-width: 1600px;
  }

  .blog-theme .blog-post-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
  }

  .blog-theme .blog-post-list .blog-post-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding: 14px;
    overflow-wrap: anywhere;
  }

  .blog-theme .blog-post-list .blog-cover-link {
    margin-bottom: 14px;
  }

  .blog-theme .blog-post-list .blog-post-card h2 {
    margin: 10px 0;
    font-size: 20px;
    line-height: 1.35;
  }

  .blog-theme .blog-post-list .blog-post-card > p {
    line-height: 1.55;
  }

  .blog-theme .blog-post-list .read-guide {
    align-self: center;
    margin-block-start: auto;
  }
}

/* Layered surfaces across the blog listing and article pages. */
body.inner-theme.blog-theme {
  background: radial-gradient(ellipse at top, #f0e6fa 0, #f8f5fc 44rem);
}

body.inner-theme.blog-theme .blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  column-gap: clamp(20px, 4vw, 68px);
  max-width: none;
  margin: 28px auto 24px;
  padding: clamp(22px, 4vw, 64px);
  text-align: start;
  border: 1px solid #e0d1ef;
  border-radius: 24px;
  background: linear-gradient(125deg, #fff6ed, #f0e5fa 70%, #e9daf7);
  box-shadow: inset 0 2px 0 #fff9, 0 5px 0 #ded0ed, 0 18px 34px #47296d24;
}

body.inner-theme.blog-theme .blog-hero > :is(.eyebrow, h1, p) {
  grid-column: 1;
}

body.inner-theme.blog-theme .blog-hero .eyebrow {
  align-self: end;
  color: #86411c;
}

body.inner-theme.blog-theme .blog-hero h1 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

body.inner-theme.blog-theme .blog-hero h1::after {
  margin: 18px 0 0;
  margin-inline-end: auto;
  border-radius: 3px;
  background: #e37e31;
}

body.inner-theme.blog-theme .blog-hero p {
  align-self: start;
  margin: 16px 0 0;
  line-height: 1.65;
}

body.inner-theme.blog-theme .blog-hero::after {
  content: "";
  grid-area: 1 / 2 / 4 / 3;
  align-self: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  border: 1px solid #eadcf4;
  border-radius: 18px;
  background: #eee0f5 url("/assets/blog/blog-hero-still-life.webp") center / contain no-repeat;
  box-shadow: 0 10px 24px #4c2f6a26;
}

body.inner-theme.blog-theme .blog-page :is(.blog-category-nav, .blog-filters) {
  border: 1px solid #e4d9f2;
  border-radius: 16px;
  background: linear-gradient(150deg, #fff, #f9f6fd);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #e8def1, 0 9px 22px #40236b12;
}

body.inner-theme.blog-theme .blog-post-card {
  border: 1px solid #e3d7ef;
  border-radius: 16px;
  background: linear-gradient(155deg, #fff, #faf7fd);
  box-shadow: inset 0 1px 0 #fff, 0 4px 0 #e7d9f1, 0 10px 20px #442b641a;
}

body.inner-theme.blog-theme .blog-post-card .blog-cover-link {
  border: 1px solid #e9def1;
  border-radius: 11px;
  box-shadow: 0 4px 10px #41275c1d;
}

body.inner-theme.blog-theme .blog-post-card .read-guide {
  border-radius: 10px;
  box-shadow: 0 3px 0 #45217d, 0 5px 10px #43266228;
}

body.inner-theme.blog-theme .blog-post-card:focus-within {
  box-shadow: 0 0 0 2px #916bc5, 0 8px 19px #442b6421;
}

body.inner-theme.blog-theme .blog-article-page {
  border: 1px solid #e5d8f2;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 #fff, 0 5px 0 #e6d9f1, 0 18px 38px #442b641c;
}

body.inner-theme.blog-theme .blog-article-page .blog-artwork img {
  box-shadow: 0 8px 18px #442b6420;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.inner-theme.blog-theme .blog-post-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
  }

  body.inner-theme.blog-theme .blog-post-card:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 #fff, 0 5px 0 #e7d9f1, 0 15px 25px #442b6428;
  }
}

@media (max-width: 700px) {
  body.inner-theme.blog-theme .blog-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 18px;
    border-radius: 18px;
  }

  body.inner-theme.blog-theme .blog-hero::after {
    grid-area: auto / 1;
    justify-self: center;
    max-width: 360px;
    margin-top: 20px;
  }
}

.depression-category-heading {
  margin-block: 24px 18px;
}

.depression-category-heading h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}
