/* mrsinnchannel.com — blog add-on stylesheet
   Loaded by blog/ pages only, after style.css. Reuses the tokens and
   "study guide + field notes" direction; nothing here overrides base styles. */

/* ---------- Coming-soon panel (blog/index.html) ----------
   Stands in for the post feed until the first post is published. */

.blog-soon {
  text-align: center;
  /* centered copy, so even out the padding the ruled margin line reserves */
  padding: 2.25rem 2rem 2.4rem;
}

/* the red margin rule only reads right against left-aligned text */
.blog-soon::before {
  display: none;
}

.blog-soon h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin: 0.5rem 0 0.9rem;
}

.blog-soon p {
  margin: 0 0 0.9rem;
}

.blog-soon .btn-row {
  justify-content: center;
  margin-top: 1.5rem;
}

/* ---------- Filter bar (blog/index.html) ----------
   Ships with the `hidden` attribute; js/blog.js reveals it. With JS
   disabled the bar never appears and every post stays visible. */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: flex-end;
  background: var(--card);
  border: 2.5px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--yellow);
  padding: 1.35rem 1.5rem 1.5rem;
  margin-bottom: 2.25rem;
}

.blog-filters[hidden] {
  display: none;
}

.filter-field {
  display: flex;
  flex-direction: column;
}

.filter-field label {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.filter-field input,
.filter-field select {
  padding: 0.5rem 0.7rem;
  border: 2px solid var(--navy);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}

.filter-search {
  flex: 1 1 13rem;
}

.blog-filters .btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* "Showing X of Y posts" line + empty-state sticky note */
.filter-count {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 1.5rem;
}

.filter-empty {
  max-width: 26rem;
  margin: 1rem auto 0;
  padding: 1.5rem 1.75rem;
  background: var(--sticky-yellow);
  border-radius: 3px;
  box-shadow: 8px 8px 0 rgba(22, 41, 78, 0.14);
  transform: rotate(-1deg);
  text-align: center;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--navy);
}

.filter-empty[hidden] {
  display: none;
}

/* ---------- Tag chips (post cards + post pages) ---------- */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  background: var(--paper-deep);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.05rem 0.65rem;
}

.tag-class {
  background: var(--yellow);
}

.tag-audience {
  background: var(--cyan);
}

/* Tags centered under the byline on post pages */
.page-header .post-tags {
  justify-content: center;
  margin: 0.9rem 0 0;
}

/* ---------- Post list (blog/index.html) ---------- */

/* Cards filtered out by js/blog.js get the hidden attribute; .card's own
   display:flex would otherwise override the browser's [hidden] rule */
.post-card[hidden] {
  display: none;
}

/* Handwritten date chip at the top of each post card */
.post-card time {
  display: block;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

/* Card titles link to the post; keep the sticker-card look */
.post-card h2 a {
  color: var(--navy);
  text-decoration: none;
}

.post-card h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.3em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

/* ---------- Post article page ---------- */

/* Comfortable single-column reading measure */
.post {
  max-width: 46rem;
  margin: 0 auto;
}

.post-body h2 {
  margin-top: 2em;
}

.post-body h3 {
  margin-top: 1.6em;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1em;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.45em;
}

/* Pull-quotes render as small sticky notes */
.post-body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem 1.1rem;
  background: var(--sticky-yellow);
  border-radius: 3px;
  box-shadow: 6px 6px 0 rgba(22, 41, 78, 0.14);
  transform: rotate(-0.6deg);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--navy);
}

.post-body blockquote p {
  margin: 0;
}

/* Images inside a post get the taped-photo frame via <figure class="tape-photo">;
   plain <img> still looks fine thanks to base img rules. */
.post-body .tape-photo {
  max-width: 32rem;
  margin: 2.5rem auto;
}

.post-body .tape-photo figcaption {
  font-size: 1.35rem;
}

/* Handwritten "← Back to the blog" link above the article */
.post-back {
  display: inline-block;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.post-back:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.25em;
  text-decoration-skip-ink: none;
}

/* End-of-post signature line */
.post-signoff {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--navy);
  margin-top: 2.5rem;
}

/* ---------- Redesigned index: pills, featured post, visual cards ---------- */

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.6rem;
  margin-bottom: 2.4rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

.filter-pill:hover { background: var(--yellow); }

.filter-pill.is-active {
  background: var(--navy);
  color: #fff;
}

.filter-empty {
  text-align: center;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ----- Cover panels: illustrated, no image files needed ----- */

.post-cover {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}

.post-cover svg {
  width: 46%;
  max-width: 120px;
  height: auto;
  position: relative;
  z-index: 1;
  opacity: 0.95;
}

.post-cover-aphg { background: #123f8c; }
.post-cover-psych { background: #0e51b8; }
.post-cover-all { background: #16294e; }

/* ----- Featured post ----- */

.post-feature {
  display: grid;
  background: var(--card);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 9px 9px 0 var(--cyan);
  overflow: hidden;
  margin-bottom: 2.6rem;
}

@media (min-width: 780px) {
  .post-feature { grid-template-columns: 0.85fr 1.15fr; }
}

.post-feature .post-cover { min-height: 220px; }

.post-feature-body { padding: 1.8rem 1.6rem; }

.post-flag {
  display: inline-block;
  margin: 0 0 0.6rem;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
}

.post-feature-body h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  margin: 0.4rem 0 0.6rem;
}

.post-feature-body h2 a {
  color: var(--navy);
  text-decoration: none;
}

.post-feature-body h2 a:hover { text-decoration: underline; }

.post-feature-body .btn { margin-top: 0.6rem; }

/* ----- Card grid ----- */

.post-grid {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 700px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

.post-card[hidden],
.post-feature[hidden] { display: none; }

.post-card {
  background: var(--card);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--cyan);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--cyan);
}

/* the whole card is the link, so the target is generous */
.post-card-link {
  display: grid;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.post-card .post-cover { min-height: 130px; }

.post-card-body {
  display: block;
  padding: 1.2rem 1.2rem 1.3rem;
}

.post-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0.45rem 0 0.5rem;
}

.post-card-excerpt {
  display: block;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.post-card-more {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
}

.post-card-link:hover .post-card-more { text-decoration: underline; }
.post-card-link:hover .post-card-title { color: var(--blue-dark); }
