/* ==========================================================
   BECKINGHAM — REFLECTIONS
   Archive, expandable readings, and individual leaves

   Shared colours / fonts: /style/design.css
   Artwork assignments:  /reflections/artwork.json
   ========================================================== */

/* 1. EDIT THESE TO CHANGE THE ENTIRE COLLECTION */

body.journal {
  --reflection-card-gap: 20px;
  --reflection-card-padding: 20px;
  --reflection-image-size: 174px;
  --reflection-content-gap: 22px;
  --reflection-title-size: 29px;
  --reflection-subtitle-size: 16px;
  --reflection-preview-size: 16px;
  --reflection-reading-width: var(--reading-width, 690px);
  --reflection-paragraph-gap: 1.45em;
  --reflection-card-border: var(--line);
}

/* 2. ARCHIVE HEADING AND LAYOUT */

.journal .archive-year {
  display: block;
  padding-top: 28px;
}

.journal .archive-year[hidden],
.journal #undated-section[hidden] {
  display: none;
}

.reflection-list {
  display: grid;
  gap: var(--reflection-card-gap);
}

.archive-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.archive-heading h2 {
  margin: 0 auto 0 0;
  color: var(--muted);
  font: normal 20px/1.4 var(--font-reading);
}

.archive-heading label {
  color: var(--muted);
  font: 13px/1.5 var(--font-ui);
}

#reflection-sort {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--ink);
  font: 13px/1.4 var(--font-ui);
  cursor: pointer;
}

#reflection-sort:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.journal .collection-header .reflection-welcome {
  max-width: 38rem;
}

.journal .collection-header .reflection-welcome p {
  margin: 0 0 1em;
}

.journal .collection-header .reflection-welcome p:last-child {
  margin-bottom: 0;
}

/* 3. REFLECTION CARDS */

.reflection-card {
  overflow: hidden;
  border: 1px solid var(--reflection-card-border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color 160ms ease;
}

.reflection-card[open] {
  border-color: #c9d5cb;
}

.reflection-card > summary {
  position: relative;
  display: grid;
  grid-template-columns: var(--reflection-image-size) minmax(0, 1fr);
  align-items: start;
  gap: var(--reflection-content-gap);
  padding: var(--reflection-card-padding);
  list-style: none;
  cursor: pointer;
}

.reflection-card > summary::-webkit-details-marker {
  display: none;
}

@media (hover: hover) {
  .reflection-card > summary:hover {
    background: #f7f8f3;
  }
}

.reflection-card > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.reflection-card > summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--accent);
  font: 24px/1 var(--font-ui);
}

.reflection-card[open] > summary::after {
  content: "−";
}

/* 4. THUMBNAIL: always square, regardless of image type */

.reflection-thumbnail {
  display: block;
  width: var(--reflection-image-size);
  height: var(--reflection-image-size);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-small);
  background: var(--cream);
}

/* When the placeholder is unavailable and its img is removed. */
.reflection-card > summary > .reflection-summary-text:only-child {
  grid-column: 1 / -1;
}

/* 5. CARD TYPOGRAPHY: DATE / TITLE / SUBTITLE / EXCERPT / ACTION */

.reflection-summary-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: break-word;
}

.reflection-date {
  display: block;
  margin: 0 28px 7px 0;
  color: var(--muted);
  font: 700 11px/1.45 var(--font-ui);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.reflection-title {
  display: block;
  margin: 0;
  padding-right: 22px;
  color: var(--accent-dark);
  font: normal var(--reflection-title-size)/1.18 var(--font-reading);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.reflection-subtitle {
  display: block;
  margin-top: 7px;
  color: #586a5e;
  font: italic var(--reflection-subtitle-size)/1.48 var(--font-reading);
}

.reflection-preview {
  display: -webkit-box;
  margin-top: 15px;
  overflow: hidden;
  color: #718077;
  font: normal var(--reflection-preview-size)/1.55 var(--font-reading);
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.reflection-card[open] .reflection-preview {
  display: none;
}

.reflection-action {
  display: block;
  margin-top: 15px;
  padding-right: 22px;
  color: var(--accent-dark);
  font: 600 12px/1.5 var(--font-ui);
}

.reflection-action .when-open,
.reflection-card[open] .when-closed {
  display: none;
}

.reflection-card[open] .when-open {
  display: inline;
}

/* 6. EXPANDED READING: space to breathe, less visual noise */

.reflection-content {
  padding: 6px 28px 28px;
  border-top: 1px solid var(--line);
}

.reflection-content .journal-entry {
  max-width: var(--reflection-reading-width);
  margin-inline: auto;
  padding: 22px 0 14px;
  border: 0;
}

.reflection-content .journal-entry > header {
  display: none;
}

.reflection-content .journal-entry p {
  margin: 0 0 var(--reflection-paragraph-gap);
  color: var(--ink);
  font: normal 18px/1.82 var(--font-reading);
}

.reflection-content .journal-entry p:last-child {
  margin-bottom: 0;
}

.reflection-permalink {
  display: block;
  width: fit-content;
  max-width: var(--reflection-reading-width);
  margin: 3px auto 0;
  color: var(--accent-dark);
  font: 600 13px/1.5 var(--font-ui);
  text-decoration: none;
}

.reflection-permalink:hover {
  text-decoration: underline;
}

.reflection-loading {
  margin: 16px 0;
  color: var(--muted);
  font: 14px/1.6 var(--font-ui);
}

/* 7. STANDALONE LEAVES */

.journal > main > .journal-entry {
  max-width: var(--reflection-reading-width);
  padding: 32px 0 40px;
  border: 0;
}

.journal > main > .journal-entry > header {
  margin-bottom: 30px;
}

.journal > main > .journal-entry > header h1 {
  max-width: 760px;
  text-wrap: balance;
}

.journal > main > .journal-entry > header .subtitle {
  color: var(--accent);
  font: italic 18px/1.5 var(--font-reading);
}

.journal > main > .journal-entry > header .entry-meta,
.journal > header .archive-meta,
.journal > header .entry-meta {
  margin: 16px 0 0;
  color: var(--muted);
  font: 13px/1.65 var(--font-ui);
}

.journal > main > .journal-entry .reflection-poem p {
  margin: 0 0 var(--reflection-paragraph-gap);
  font: 19px/1.82 var(--font-reading);
}

.journal > main > .journal-entry .reflection-poem p:last-child {
  margin-bottom: 0;
}

.journal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 44px;
  color: var(--muted);
  font: 13px/1.6 var(--font-ui);
}

.journal .entry-pagination {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 28px 0 0;
  padding: 20px;
  font: 14px/1.6 var(--font-ui);
}

/* Legacy entries, kept to avoid breaking older archive markup. */
.entry-list { list-style: none; margin: 0; padding: 0; }
.archive-entry time { color: var(--muted); font: 13px/1.5 var(--font-ui); }
.archive-entry h3 {
  margin: 12px 0;
  color: var(--ink);
  font: normal clamp(25px, 4vw, 33px)/1.25 var(--font-reading);
  letter-spacing: -.02em;
  text-transform: none;
}
.archive-entry h3 a { color: inherit; text-decoration: none; }
.archive-entry h3 a:hover { text-decoration: underline; }
.archive-entry p { color: var(--muted); font-size: 17px; }
.read-entry { display: inline-block; margin-top: 12px; font: 14px/1.5 var(--font-ui); }

/* 8. RESPONSIVE — tablets, phones, small phones */

@media (max-width: 760px) {
  body.journal {
    --reflection-card-gap: 17px;
    --reflection-card-padding: 17px;
    --reflection-image-size: 136px;
    --reflection-content-gap: 16px;
    --reflection-title-size: 25px;
    --reflection-subtitle-size: 15px;
    --reflection-preview-size: 15px;
  }

  .reflection-content { padding-inline: 22px; }
  .reflection-content .journal-entry p { font-size: 17.5px; }
}

@media (max-width: 520px) {
  body.journal {
    --reflection-card-gap: 14px;
    --reflection-card-padding: 13px;
    --reflection-image-size: 102px;
    --reflection-content-gap: 13px;
    --reflection-title-size: clamp(20px, 5.5vw, 24px);
    --reflection-subtitle-size: 14px;
  }

  .journal .archive-year { padding-top: 18px; }
  .archive-heading { margin-bottom: 14px; }
  .archive-heading h2 { font-size: 18px; }
  .reflection-card > summary::after { top: 12px; right: 12px; font-size: 21px; }
  .reflection-date { margin-bottom: 5px; font-size: 10px; }
  .reflection-title { padding-right: 18px; line-height: 1.19; }
  .reflection-subtitle { margin-top: 6px; line-height: 1.4; }
  .reflection-preview { display: none; }
  .reflection-action { margin-top: 10px; font-size: 12px; }
  .reflection-content { padding: 4px 16px 22px; }
  .reflection-content .journal-entry { padding: 14px 0 10px; }
  .reflection-content .journal-entry p { font-size: 17px; line-height: 1.8; }

  .journal > main > .journal-entry { padding-top: 25px; }
  .journal > main > .journal-entry > header { margin-bottom: 22px; }
  .journal > main > .journal-entry > header h1 { font-size: clamp(34px, 8vw, 44px); }
  .journal > main > .journal-entry > header .header-sprig { width: 108px; }
  .journal > main > .journal-entry > header .subtitle { font-size: 16px; }
  .journal > main > .journal-entry .reflection-poem p { font-size: 17px; line-height: 1.8; }
  .journal-footer { margin-top: 30px; }
  .journal .entry-pagination { padding-inline: 0; }
}

@media (max-width: 370px) {
  body.journal {
    --reflection-card-padding: 11px;
    --reflection-image-size: 82px;
    --reflection-content-gap: 10px;
    --reflection-title-size: 20px;
    --reflection-subtitle-size: 13px;
  }
  .reflection-content { padding-inline: 13px; }
}

/* 9. ACCESSIBILITY AND PRINT */

@media (prefers-reduced-motion: reduce) {
  .reflection-card { transition: none; }
}

@media print {
  .reflection-card { break-inside: auto; }
  .reflection-card > summary::after { display: none; }
  .journal-footer, .journal .entry-pagination { display: none; }
  .journal > main > .journal-entry { max-width: none; }
  .journal-entry p { break-inside: avoid; }
}

/* ==========================================================
   REFLECTION COLLECTION FILTERS AND CONTINUE READING
   Added 11 November 2026; consistent with Glimpses filters.
   ========================================================== */

.journal .reflection-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 6px 0 8px;
}
.journal .reflection-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--surface);
  color: var(--accent-dark);
  font: 600 12px/1.3 var(--font-ui);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.journal .reflection-filter:hover { background: #eef4ed; border-color: #b8cbbc; }
.journal .reflection-filter[aria-pressed="true"] { background: #e7efe7; border-color: #8ca998; color: var(--ink); }
.journal .reflection-filter:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.journal .reflection-filter[hidden] { display: none; }
.journal .reflection-filter-count { font-weight: 400; opacity: .75; }
.journal .reflection-filter-status { min-height: 1.5em; margin: 0 0 12px; color: var(--muted); font: 12px/1.5 var(--font-ui); }
.reflection-card-category { display:block; margin: 2px 0 5px; color: var(--accent); font: 600 10px/1.45 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; }

/* Small, visible category link on standalone article pages. */
.journal .reflection-leaf-category { margin: 9px 0 0; color: var(--muted); font: 12px/1.55 var(--font-ui); }
.journal .reflection-leaf-category a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Related readings are beneath each complete piece, not within its authored text. */
.journal .reflection-continuation {
  max-width: var(--reflection-reading-width);
  margin: 4px auto 0;
  padding: 34px 0 8px;
  border-top: 1px solid var(--line);
}
.reflection-continuation-eyebrow { margin: 0 0 6px; font: 600 10px/1.5 var(--font-ui); letter-spacing: .13em; color: var(--accent); }
.journal .reflection-continuation h2 { margin: 0 0 22px; color: var(--ink); font: normal clamp(25px, 3.5vw, 30px)/1.24 var(--font-reading); letter-spacing: -.025em; }
.reflection-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.reflection-related-card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  padding: 18px 38px 19px 19px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 180ms ease, border-color 180ms ease;
}
.reflection-related-card:hover { background: #f5f8f3; border-color: #b8cbbc; }
.reflection-related-category { margin-bottom: 8px; color: var(--muted); font: 600 10px/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .07em; }
.reflection-related-title { color: var(--accent-dark); font: normal 21px/1.24 var(--font-reading); text-wrap: balance; }
.reflection-related-description { margin-top: 8px; color: var(--muted); font: italic 14px/1.45 var(--font-reading); }
.reflection-related-arrow { position: absolute; right: 17px; top: 18px; color: var(--accent); font: 17px/1 var(--font-ui); }
.reflection-footer-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.reflection-copy-link { appearance: none; padding: 0; background: transparent; border: 0; color: var(--accent-dark); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; font: inherit; }
.reflection-copy-link:hover { text-decoration-color: currentColor; }
.reflection-copy-link[hidden] { display: none; }
.reflection-copy-status { color: var(--accent-dark); }
.reflection-copy-status:empty { display: none; }
.reflection-footer-author { color: var(--muted); }

@media(max-width:600px) {
  .journal .reflection-filters { gap: 7px; }
  .journal .reflection-filter { font-size: 11px; padding: 8px 10px; }
  .journal .reflection-filter-status { margin-bottom: 8px; }
  .reflection-related-grid { grid-template-columns: 1fr; gap: 10px; }
  .reflection-related-card { padding: 16px 38px 16px 16px; }
  .journal .reflection-continuation { padding-top: 26px; }
  .reflection-footer-author { display:none; } /* already present in page copyright */
}
@media(prefers-reduced-motion:reduce) {
  .journal .reflection-filter,.reflection-related-card { transition: none; }
}
@media print {
  .reflection-filters,.reflection-filter-status,.reflection-continuation,.reflection-copy-link { display:none!important; }
}


/* ============================================================
   REFLECTIONS ENHANCED — NOV 2026
   Clear static classifications + artwork-led editorial leaves.
   No redesign of other collections or changes to authored prose.
   ============================================================ */
.reflection-filters[hidden], .reflection-sorting[hidden] { display:none!important; }
.reflection-sorting { display:flex; align-items:center; gap:10px; }
.reflection-card[hidden] { display:none!important; }
.reflection-card-category { margin-top:1px; }
.reflection-card > summary { align-items:center; }
.reflection-thumbnail { box-shadow: 0 0 0 1px rgba(55,85,68,.055); }
.reflection-preview { white-space:pre-line; }

/* A quiet breadcrumb introduces the reading without adding top navigation. */
.journal .reflection-breadcrumb {
  display:flex; align-items:center; gap:9px;
  padding:25px 0 0; color:var(--muted);
  font:600 11px/1.5 var(--font-ui);
  letter-spacing:.025em;
}
.journal .reflection-breadcrumb a { color:var(--accent-dark); text-decoration:none; }
.journal .reflection-breadcrumb a:hover { text-decoration:underline; }
.journal .reflection-breadcrumb span { color:#a2b3a5; }

/* Artwork becomes part of the reading, never a giant banner. */
.journal > main > .journal-entry {
  max-width:100%;
  padding:12px 0 24px;
}
.journal > main > .journal-entry > header.reflection-hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(215px, 280px);
  align-items:center;
  gap:clamp(26px,5vw,58px);
  margin:0;
  padding:29px 0 clamp(30px,5vw,46px);
  border-bottom:1px solid var(--line);
}
.reflection-hero-copy { min-width:0; }
.journal .reflection-hero-overline {
  margin:0 0 17px; font:700 10px/1.6 var(--font-ui);
  color:var(--accent); letter-spacing:.16em;
}
.journal .reflection-hero .reflection-leaf-category { margin:0 0 15px; }
.journal .reflection-hero .reflection-leaf-category a {
  display:inline-flex; align-items:center;
  min-height:30px; padding:5px 12px;
  border-radius:999px; border:1px solid #cddfd1;
  color:var(--accent-dark); background:#eef4ed;
  text-decoration:none; font:600 11px/1.4 var(--font-ui);
}
.journal .reflection-hero .reflection-leaf-category a:hover { background:#e3ece2; border-color:#adbfaf; }
.journal > main > .journal-entry > header.reflection-hero h1 {
  margin:0 0 17px; max-width:620px;
  font:normal clamp(38px,5.25vw,59px)/1.095 var(--font-reading);
  letter-spacing:-.038em;
  text-wrap:balance;
}
.journal > main > .journal-entry > header.reflection-hero .subtitle {
  max-width:570px;
  margin:0;
  color:#567264;
  font:italic clamp(17px,2.05vw,20px)/1.52 var(--font-reading);
}
.journal > main > .journal-entry > header.reflection-hero .entry-meta {
  display:flex; flex-wrap:wrap; align-items:baseline; gap:7px;
  margin:22px 0 0; color:var(--muted);
  font:12px/1.6 var(--font-ui);
}
.reflection-hero-art {
  display:block; position:relative;
  width:100%; aspect-ratio:1/1;
  margin:0; padding:8px;
  overflow:hidden;
  border:1px solid #e1e5db;
  border-radius:14px;
  background:#f7f6f1;
  box-shadow:0 10px 32px rgba(47,72,54,.06);
}
.reflection-hero-art img { display:block; width:100%; height:100%; object-fit:cover; border-radius:8px; }
/* Generic botanical imagery stays gentle; custom illustration gets more space. */
.reflection-hero--botanical .reflection-hero-art { background:#fbfaf6; }
.reflection-hero--botanical .reflection-hero-art img { object-fit:cover; }

/* Reading column is intentionally narrower than the header. */
.journal > main > .journal-entry > .reflection-poem {
  max-width:var(--reflection-reading-width); margin:0 auto;
  padding:clamp(33px,5vw,53px) 0 26px;
}
.journal > main > .journal-entry > .reflection-poem::before {
  content:''; display:block; width:35px; height:2px;
  margin:0 0 31px; background:#a5bca9;
}
.journal > main > .journal-entry .reflection-poem p {
  max-width:69ch;
  margin:0 0 1.50em;
  font:normal clamp(17.5px,2vw,19px)/1.85 var(--font-reading);
  text-wrap:pretty;
}
.journal > main > .journal-entry .reflection-poem p:last-child { margin-bottom:0; }

/* Suggestions feel like a continuation of the same quiet reading. */
.journal .reflection-continuation { max-width:760px; padding-top:36px; }
.journal .reflection-continuation h2 { margin-bottom:19px; }
.reflection-related-grid { gap:14px; }
.reflection-related-card {
  display:grid; grid-template-columns:76px minmax(0,1fr);
  align-items:start; gap:14px;
  padding:16px 34px 16px 16px;
}
.reflection-related-thumb {
  display:block; width:76px; height:76px; object-fit:cover;
  background:var(--cream); border-radius:7px;
}
.reflection-related-info { display:flex; flex-direction:column; min-width:0; }
.reflection-related-category { margin:0 0 7px; font-size:11px; }
.reflection-related-title { font-size:clamp(17px,1.9vw,20px); line-height:1.27; }
.reflection-related-description { font-size:13px; line-height:1.4; }
.reflection-related-arrow { right:12px; top:12px; }
.journal-footer { margin-top:35px; }

@media(max-width:700px) {
  .journal > main > .journal-entry > header.reflection-hero {
    grid-template-columns:minmax(0,1fr) 210px; gap:25px;
  }
  .journal > main > .journal-entry > header.reflection-hero h1 {
    font-size:clamp(34px,5.1vw,45px);
  }
}
@media(max-width:600px) {
  .journal .reflection-breadcrumb { padding-top:17px; }
  .journal > main > .journal-entry > header.reflection-hero {
    grid-template-columns:1fr; gap:22px;
    padding:26px 0 28px;
  }
  .journal .reflection-hero-overline { margin-bottom:12px; font-size:11px; }
  .journal > main > .journal-entry > header.reflection-hero h1 {
    font-size:clamp(36px,8.8vw,48px); margin-bottom:12px;
  }
  .journal > main > .journal-entry > header.reflection-hero .subtitle { font-size:17px; }
  .journal > main > .journal-entry > header.reflection-hero .entry-meta { margin-top:16px; }
  .reflection-hero-art { width:min(100%,310px); margin:0 auto; }
  .journal > main > .journal-entry > .reflection-poem { padding-top:31px; }
  .journal > main > .journal-entry .reflection-poem p { font-size:17.5px; line-height:1.78; }
  .reflection-related-card { grid-template-columns:68px minmax(0,1fr); }
  .reflection-related-thumb { width:68px; height:68px; }
  .journal .reflection-continuation { padding-top:26px; }
  .reflection-sorting { margin-left:auto; }
}
@media(max-width:380px) {
  .reflection-hero-art { width:min(100%,280px); }
  .reflection-related-card { grid-template-columns:58px minmax(0,1fr); gap:11px; padding:13px 30px 13px 13px; }
  .reflection-related-thumb { width:58px; height:58px; }
}
@media(print) {
  .reflection-hero-art { box-shadow:none; }
  .reflection-breadcrumb,.reflection-hero-overline { display:none!important; }
}


/* ==========================================================
   REFLECTIONS — ARCHIVE CLARITY PASS, NOV 2026
   The image/title/primary action open the full article.
   A native disclosure offers optional in-page reading.
   Category labels appear only in the unfiltered archive.
   ========================================================== */

.reflection-card-main {
  display: grid;
  grid-template-columns: var(--reflection-image-size) minmax(0,1fr);
  align-items: start;
  gap: var(--reflection-content-gap);
  padding: var(--reflection-card-padding);
}
.reflection-cover { display: block; align-self: start; border-radius: var(--radius-small); }
.reflection-cover .reflection-thumbnail { width: 100%; }
.reflection-cover:hover .reflection-thumbnail { box-shadow: 0 0 0 2px #a7c1ae; }
.reflection-cover:focus-visible,
.reflection-title a:focus-visible,
.reflection-open-link:focus-visible,
.reflection-card-expand > summary:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}
.reflection-card-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 13px;
  margin: 0 0 9px;
}
.reflection-card .reflection-date { margin: 0; padding: 0; }
.reflection-card .reflection-card-category { margin: 0; }
.reflection-list[data-active-category]:not([data-active-category="all"]) .reflection-card-category {
  display: none;
}
.reflection-card h3.reflection-title { margin: 0; padding: 0; }
.reflection-card .reflection-title a { color: inherit; text-decoration: none; }
.reflection-card .reflection-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.reflection-card .reflection-subtitle { margin: 8px 0 0; }
.reflection-card .reflection-preview { margin: 13px 0 0; }
.reflection-open-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 17px 0 0;
  color: var(--accent-dark);
  font: 700 12px/1.5 var(--font-ui);
  text-decoration: none;
  text-underline-offset: 4px;
}
.reflection-open-link:hover { text-decoration: underline; }
.reflection-open-link span { transition: transform 140ms ease; }
.reflection-open-link:hover span { transform: translate(2px,-1px); }
.reflection-card-expand { border-top: 1px solid var(--line); }
.reflection-card-expand > summary {
  display: flex;
  justify-content: flex-end;
  padding: 12px var(--reflection-card-padding);
  background: #fafbf8;
  color: #66796c;
  font: 600 12px/1.55 var(--font-ui);
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.reflection-card-expand > summary::-webkit-details-marker { display: none; }
.reflection-card-expand > summary:hover { color: var(--accent-dark); background: #f5f8f3; }
.reflection-card-expand > summary .when-closed,
.reflection-card-expand > summary .when-open { display: inline-flex; gap: 7px; align-items: baseline; }
.reflection-card-expand > summary .when-open { display: none; }
.reflection-card-expand[open] > summary .when-closed { display: none; }
.reflection-card-expand[open] > summary .when-open { display: inline-flex; }
.reflection-card-expand[open] > summary { background: #f5f8f3; }
.reflection-card-expand .reflection-content { border-top: 1px solid var(--line); }
.reflection-card-expand .reflection-content .journal-entry { max-width: var(--reflection-reading-width); }
/* Filters already display their own counts; the status remains for screen readers. */
.reflection-filter-status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media(max-width:520px) {
  .reflection-card-meta { gap: 3px 9px; margin-bottom: 7px; }
  .reflection-card .reflection-date { font-size: 11px; }
  .reflection-card .reflection-card-category { font-size: 11px; }
  .reflection-open-link { margin-top: 13px; font-size: 11.5px; }
  .reflection-card-expand > summary { padding-block: 11px; font-size: 11.5px; }
}
@media(prefers-reduced-motion:reduce) {
  .reflection-open-link span { transition: none; }
}
@media print {
  .reflection-card-expand > summary { display: none; }
}


/* ===========================================================
   REFLECTIONS — QUIET CARD INTERACTION POLISH (NOV 2026)
   The image/title retain their standalone links. Clicking the
   non-link area or disclosure reads in place. The secondary
   new-tab shortcut has been removed to reduce clutter.
   =========================================================== */
.reflection-card { position: relative; }
.reflection-card h3.reflection-title,
.reflection-card h3.reflection-title a {
  font: normal var(--reflection-title-size)/1.18 var(--font-reading);
  letter-spacing: -.025em;
  text-transform: none;
}
.reflection-card-main {
  position: relative;
  cursor: pointer;
  transition: background-color 180ms ease;
}
@media (hover:hover) {
  .reflection-card-main:hover { background: #f8faf6; }
}
.reflection-card-main a { cursor: pointer; }
.reflection-card-expand { border-top: 0; }
.reflection-card-expand > summary {
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  margin: 0;
  /* Keep the disclosure inside its own clear row rather than
     overlapping the clickable card. This prevents hover clipping. */
  padding: 6px var(--reflection-card-padding) 13px calc(var(--reflection-card-padding) + var(--reflection-image-size) + var(--reflection-content-gap));
  background: transparent;
  color: #62766a;
  font: 600 12px/1.6 var(--font-ui);
  text-underline-offset: 3px;
}
.reflection-card-expand > summary:hover,
.reflection-card-expand[open] > summary {
  color: var(--accent-dark);
  background: transparent;
  text-decoration: underline;
}
.reflection-card-expand[open] .reflection-content { margin-top: 0; }
.reflection-card .reflection-preview { margin-bottom: 11px; }
.reflection-card .reflection-title { padding-right: 0; }


@media(max-width:520px) {
  .reflection-card-expand > summary { font-size: 11.5px; padding-top: 6px; padding-bottom: 13px; }
  .reflection-card .reflection-preview { margin-bottom: 3px; }
}
@media(prefers-reduced-motion:reduce) {
  .reflection-card-main { transition:none; }
}

/* Smaller layouts keep the expanded-reading action comfortably positioned. */
@media (max-width: 600px) {
  .reflection-card-main { row-gap: 3px; }
}
@media (max-width: 420px) {
  .reflection-card-expand > summary { padding-left: var(--reflection-card-padding); }
}

/* Match collection spacing below the introduction divider. */
body.journal > main:has(> .reflection-filters) { padding-top: 27px; }
body.journal > main > .reflection-filters { margin-top: 0; }

/* Year sections are derived from dated cards; sort controls apply to the whole archive. */
.archive-controls { display:flex; justify-content:flex-end; margin:0 0 4px; }
.archive-controls:has(.reflection-sorting[hidden]) { display:none; }
.archive-years { gap:0; }
.archive-years .archive-year[hidden] { display:none!important; }
.archive-years .archive-year { min-width:0; }
.archive-years .archive-year:first-child { padding-top:12px; }
.archive-years .archive-heading { margin-bottom:14px; }
@media(max-width:650px) { .archive-controls { margin-bottom:0; } }
