/* ==========================================================================
   DIARY page — sacred dark-gold, glass cards
   ========================================================================== */

.diary-page { background: transparent; }   /* site background + gutter pattern: theme.css */
.diary-page .app-wrapper {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(60% 40% at 10% 100%, rgba(201,164,92,.10), transparent 70%),
    radial-gradient(50% 30% at 90% 70%, rgba(201,164,92,.05), transparent 70%),
    transparent;
}
.diary-page .top-bar { position: relative; z-index: 5; background: rgba(10,8,6,.72); }

.dy-main {
  --dy-gold: #e0c48a;
  --dy-gold-2: #c9a45c;
  --dy-line: rgba(201,164,92,.32);
  --dy-text: #eadfc8;
  --dy-mute: #b3a68d;
  position: relative;
  display: block;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px 72px;
  color: var(--dy-text);
  font-family: var(--serif);
}
.dy-main .ic { width: 18px; height: 18px; flex-shrink: 0; }

/* Cross geometry (desktop). In cross-wide.webp (2768x628) the gold cross occupies
   x 1819-2102, y 87-560 (284x474, centre x 1960.5). It is scaled so it fits fully
   right of the 740px centred form (form edge = 50vw + 370px):
     --cw  on-screen cross width,  scale k = cw / 284
     --cx  on-screen cross centre x
   Image height = 628k = 2.2113cw; cross top = 87k = .3063cw; bottom = 561k = 1.9754cw. */
@media (min-width: 641px) {
  .dy-main {
    --cw: clamp(210px, calc(50vw - 432px), 340px);
    /* centre of the right-hand strip, capped near the form; then the gap to the form
       edge is halved: new left edge = midpoint of (form edge, previous left edge) */
    --cx-strip: min(calc(75vw + 187px), calc(50vw + 518px + var(--cw) / 2));
    --cx: calc((var(--cx-strip) + 50vw + 370px + var(--cw) / 2) / 2);
  }
}

/* ---------- Backdrop: church window light, glowing cross ---------- */
.dy-backdrop {
  position: absolute;
  top: 0; left: 50%;
  width: 100vw;
  height: calc(var(--cw, 371px) * 2.2113);   /* = image height, so fades sit below the cross */
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden;
}
.dy-backdrop__img {
  position: absolute;
  inset: 0;
  /* cross-wide.webp = cross.webp extended left with blurred nave/arches; see --cw / --cx above */
  background: url(../images/cross-wide.webp) no-repeat;
  background-size: auto calc(var(--cw) * 2.2113);
  background-position: calc(var(--cx) - var(--cw) * 6.903) 0;
  filter: sepia(.35) saturate(1.1) brightness(.62) contrast(1.08);
  /* fade only below the cross base (base at 89.3% of the image) */
  -webkit-mask-image: linear-gradient(180deg, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 91%, transparent 100%);
}
.dy-backdrop__rays {
  position: absolute;
  top: -20%; right: -6%;
  width: 70%; height: 130%;
  background: repeating-linear-gradient(104deg,
    transparent 0 46px, rgba(255,214,140,.07) 46px 64px, transparent 64px 110px, rgba(255,214,140,.045) 110px 118px);
  filter: blur(7px);
  -webkit-mask-image: radial-gradient(70% 60% at 80% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 80% 0%, #000, transparent 75%);
  mix-blend-mode: screen;
}
.dy-backdrop__glow {
  position: absolute;
  inset: 0;
  background:
    /* warm light centred on the cross (light, not a scrim) */
    radial-gradient(calc(var(--cw) * 1.1) calc(var(--cw) * 1.4) at var(--cx) calc(var(--cw) * 1.1), rgba(255,205,120,.16), transparent 70%),
    /* left: warm glow mirroring the cross light */
    radial-gradient(24% 34% at 15% 30%, rgba(255,205,120,.15), transparent 70%),
    /* centre: soft dark pool so the title and form stay readable */
    radial-gradient(21% 30% at 50% 20%, rgba(10,8,6,.5), transparent 75%),   /* ends at 65.75% — left of the cross */
    radial-gradient(40% 35% at 50% 18%, rgba(201,164,92,.08), transparent 70%),
    /* left: dim the nave but let the arches and window light through */
    linear-gradient(90deg, rgba(10,8,6,.8) 0%, rgba(10,8,6,.5) 20%, rgba(10,8,6,.22) 40%, transparent 58%),
    /* top dimming ends above the cross top (13.9%); bottom fade starts below its base (89.3%) */
    linear-gradient(180deg, rgba(10,8,6,.2) 0%, transparent 12%, transparent 91%, #0a0806 100%);
}
/* faint drifting light specks on the left, mirroring the light on the right */
.dy-backdrop::before,
.dy-backdrop::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 4% 58% 30% 2%;
  background-repeat: no-repeat;
  pointer-events: none;
  animation: dy-drift 22s ease-in-out infinite alternate;
}
.dy-backdrop::before {
  background-image:
    radial-gradient(circle at 8% 22%, rgba(255,226,160,.85) 0 1.2px, transparent 2.5px),
    radial-gradient(circle at 24% 58%, rgba(255,226,160,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 37% 14%, rgba(255,226,160,.6) 0 1.4px, transparent 3px),
    radial-gradient(circle at 52% 76%, rgba(255,226,160,.75) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 36%, rgba(255,226,160,.55) 0 1.6px, transparent 3.5px),
    radial-gradient(circle at 81% 64%, rgba(255,226,160,.7) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 18%, rgba(255,226,160,.6) 0 1.2px, transparent 2.5px);
}
.dy-backdrop::after {
  background-image:
    radial-gradient(circle at 15% 84%, rgba(255,214,140,.6) 0 1px, transparent 2px),
    radial-gradient(circle at 31% 40%, rgba(255,214,140,.5) 0 1.8px, transparent 4px),
    radial-gradient(circle at 46% 92%, rgba(255,214,140,.65) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 10%, rgba(255,214,140,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 50%, rgba(255,214,140,.5) 0 1.4px, transparent 3px),
    radial-gradient(circle at 88% 88%, rgba(255,214,140,.6) 0 1px, transparent 2px);
  animation-duration: 31s;
  animation-direction: alternate-reverse;
}
@keyframes dy-drift {
  0%   { transform: translate3d(0, 0, 0); opacity: .45; }
  50%  { opacity: .95; }
  100% { transform: translate3d(18px, -34px, 0); opacity: .55; }
}

/* ---------- Hero ---------- */
.dy-hero { position: relative; padding: 56px 0 0; }
.dy-hero > canvas { z-index: 0; }
.dy-hero > :not(canvas) { position: relative; z-index: 1; }

.dy-tagline {
  position: absolute !important;
  left: 0; top: 76px;
  color: var(--dy-text);
}
.dy-tagline__poem { margin: 0; display: grid; gap: 8px; font-size: 21px; letter-spacing: .28em; line-height: 1.6; color: #f6ead0; text-shadow: 0 0 18px rgba(224,196,138,.35), 0 2px 10px rgba(0,0,0,.6); }
.dy-tagline__rule { width: 44px; height: 1px; margin: 28px 0 22px; border: 0; background: var(--dy-gold-2); box-shadow: 0 0 8px rgba(224,196,138,.6); }
.dy-tagline__caps { margin: 0; font: 500 12px/2 "Playfair Display", Georgia, serif; letter-spacing: .26em; text-transform: uppercase; color: #cdbf9f; }
@media (min-width: 1600px) {
  .dy-tagline__poem { font-size: 23px; }
  .dy-tagline { left: -24px; }
}

.dy-head { text-align: center; margin-bottom: 30px; }
.dy-title {
  margin: 0;
  font: 700 clamp(48px, 6vw, 68px)/1.15 var(--serif);
  letter-spacing: .32em;
  padding-left: .32em;
  background: linear-gradient(180deg, #fbe8bd 10%, #d9b46a 60%, #a8833f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(201,164,92,.35));
}
.dy-sub { margin: 14px 0 0; font-size: 20px; letter-spacing: .12em; color: #f1e4c6; }
.dy-verse { margin: 12px 0 0; font-size: 14px; line-height: 1.9; color: var(--dy-mute); letter-spacing: .04em; }
.dy-verse__ref { display: block; }

/* ---------- Glass ---------- */
.dy-glass {
  position: relative;
  background: linear-gradient(160deg, rgba(42,32,20,.62), rgba(16,12,8,.72));
  border: 1px solid var(--dy-line);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,230,180,.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---------- Composer ---------- */
.dy-composer { max-width: 740px; margin: 0 auto; padding: 24px; }
.dy-composer__title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 20px/1.4 var(--serif); color: #f5e9cf; letter-spacing: .06em; }
.dy-composer__title .ic { width: 24px; height: 24px; color: var(--dy-gold); }

.dy-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.dy-pill {
  min-height: 34px;
  padding: 4px 18px;
  border: 1px solid rgba(201,164,92,.42);
  border-radius: 999px;
  background: rgba(10,8,6,.35);
  color: var(--dy-text);
  font: 400 14px/1.4 var(--serif);
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.dy-pill:hover { border-color: var(--dy-gold); color: #fff3d6; }
.dy-pill.active { background: rgba(201,164,92,.12); border-color: #e9cf8f; color: #f0d79f; font-weight: 600; box-shadow: none; }
.dy-pills--composer { display: grid; grid-template-columns: repeat(5, 1fr); }
.dy-pills--composer .dy-pill { min-height: 40px; padding-inline: 6px; }

.dy-field { position: relative; margin-top: 16px; }
.dy-field textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  padding: 16px 16px 30px;
  border: 1px solid rgba(201,164,92,.35);
  border-radius: 10px;
  background: linear-gradient(180deg, #f6eedd, #ece1c8);
  color: #2c1508;
  font: 400 16px/1.9 var(--serif);
  resize: vertical;
  box-shadow: inset 0 2px 8px rgba(80,55,20,.12);
}
.dy-field textarea::placeholder { color: #8f8068; }
.dy-field textarea:focus { outline: 2px solid var(--dy-gold-2); outline-offset: 2px; }
.dy-count { position: absolute; right: 14px; bottom: 8px; font-size: 12px; color: #8f8068; font-variant-numeric: tabular-nums; }

.dy-notes { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 0; }
.dy-note { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.4 var(--serif); color: var(--dy-mute); }
.dy-note .ic { width: 16px; height: 16px; color: var(--dy-gold); }
.dy-note--sync { padding: 6px 0; border: 0; background: none; cursor: pointer; }
.dy-note--sync:hover { color: var(--dy-gold); }
.dy-note--sync.on { cursor: default; }

.dy-save {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  border: 1px solid #f0d79f;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d79f 0%, #d7b46c 55%, #b8904a 100%);
  color: #24180a;
  font: 600 17px/1 var(--serif);
  letter-spacing: .18em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(201,164,92,.28), inset 0 1px 0 rgba(255,255,255,.4);
  transition: filter .2s, transform .2s;
}
.dy-save:hover { filter: brightness(1.08); }
.dy-save:active { transform: translateY(1px); }
.dy-save .ic { width: 20px; height: 20px; }

/* ---------- Stats ---------- */
.dy-stats { position: relative; display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 20px; margin-top: 36px; }
.dy-stat { margin: 0; padding: 22px 24px; min-height: 150px; overflow: hidden; }
.dy-stat__label { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: #f1e4c6; letter-spacing: .06em; }
.dy-stat__label .ic { width: 22px; height: 22px; color: var(--dy-gold); }
.dy-stat__num { margin: 14px 0 0; display: flex; align-items: baseline; gap: 8px; }
.dy-stat__num span { font: 600 44px/1 "Playfair Display", Georgia, serif; color: var(--dy-gold); }
.dy-stat__num small { font-size: 14px; color: var(--dy-text); }

.dy-stat--month { display: flex; justify-content: space-between; gap: 16px; }
.dy-cal { display: grid; grid-template-columns: repeat(7, 14px); gap: 6px 8px; align-content: start; justify-items: center; }
.dy-cal b { font: 400 11px/1 var(--serif); color: var(--dy-mute); margin-bottom: 4px; }
.dy-cal i { width: 9px; height: 9px; border-radius: 50%; background: rgba(201,164,92,.22); }
.dy-cal i.pad { background: transparent; }
.dy-cal i.future { background: rgba(201,164,92,.08); }
.dy-cal i.on { background: #ecc978; box-shadow: 0 0 8px rgba(236,201,120,.75); }

.dy-stat--verse { display: flex; flex-direction: column; justify-content: center; padding-left: 68px; }
.dy-quote { position: absolute; left: 20px; top: 8px; font: 700 64px/1 Georgia, serif; color: rgba(201,164,92,.45); }
.dy-stat--verse blockquote { margin: 0; font-size: 16px; line-height: 1.9; color: #f1e4c6; letter-spacing: .06em; }
.dy-stat--verse figcaption { margin-top: 10px; padding-left: 4.5em; font-size: 14px; color: var(--dy-mute); }

.dy-stat__hint { position: relative; margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: var(--dy-text); }
.dy-mountain { position: absolute; right: 12px; bottom: 10px; width: 52%; color: rgba(224,196,138,.45); filter: drop-shadow(0 0 6px rgba(224,196,138,.3)); }

/* ---------- Journal ---------- */
.dy-journal { margin-top: 44px; }
.dy-journal__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.dy-journal__head .dy-journal__icon { width: 40px; height: 40px; color: var(--dy-gold); }
.dy-journal__head h2 { margin: 0; font: 500 26px/1.3 var(--serif); color: #f5e9cf; letter-spacing: .08em; }
.dy-journal__head p { margin: 4px 0 0; font-size: 13px; color: var(--dy-mute); }
.dy-pills--filter { margin-left: auto; justify-content: flex-end; gap: 8px; }
.dy-pills--filter .dy-pill { min-height: 34px; padding-inline: 16px; font-size: 13px; }

.dy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.dy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(201,164,92,.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30,23,15,.92), rgba(18,14,10,.95));
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  transition: transform .3s, border-color .3s, opacity .3s;
}
.dy-card:hover { transform: translateY(-2px); border-color: rgba(224,196,138,.5); }
.dy-card.removing { opacity: 0; transform: translateY(8px); }
.dy-card--answered { border-color: rgba(236,201,120,.85); box-shadow: 0 0 0 1px rgba(236,201,120,.25), 0 0 32px rgba(201,164,92,.28), 0 12px 36px rgba(0,0,0,.4); }

.dy-card__thumb {
  position: relative;
  height: 118px;
  background: center / cover no-repeat;
  filter: sepia(.08);
}
.dy-card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,14,10,0) 35%, rgba(26,20,13,.96) 100%); }
.dy-card__body { display: flex; flex-direction: column; flex: 1; padding: 0 20px 14px; margin-top: -24px; position: relative; }
.dy-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--dy-mute); }
.dy-card__meta time span { margin-left: 12px; }
.dy-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border: 1px solid rgba(201,164,92,.3); border-radius: 999px; background: rgba(60,48,32,.75); font-size: 12px; color: var(--dy-text); white-space: nowrap; }
.dy-tag--answered { color: var(--dy-gold); border-color: rgba(236,201,120,.55); }
.dy-tag .ic { width: 14px; height: 14px; }
.dy-card__title { margin: 12px 0 0; font: 600 19px/1.45 var(--serif); color: #f7ecd2; letter-spacing: .04em; overflow-wrap: anywhere; }
.dy-card__text {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #cfc2a8;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.dy-card__foot { display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--dy-mute); }
.dy-card__foot > span { display: inline-flex; align-items: center; gap: 6px; }
.dy-card__foot .ic { width: 17px; height: 17px; color: #e9dcc0; }

.dy-menu { position: relative; margin-left: auto; }
.dy-menu__btn { display: grid; place-items: center; width: 36px; height: 32px; border: 0; border-radius: 8px; background: none; color: #e9dcc0; cursor: pointer; }
.dy-menu__btn:hover { background: rgba(201,164,92,.12); }
.dy-menu__list { position: absolute; right: 0; bottom: 36px; z-index: 5; min-width: 150px; padding: 6px; border: 1px solid var(--dy-line); border-radius: 10px; background: #1a140d; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.dy-menu__list[hidden] { display: none; }
.dy-menu__list button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: var(--dy-text); font: 400 14px/1.4 var(--serif); text-align: left; cursor: pointer; }
.dy-menu__list button:hover { background: rgba(201,164,92,.14); color: #fff3d6; }
.dy-menu__list [data-act="delete"] { color: #e7a58f; }

.dy-card--sample { opacity: .72; filter: saturate(.8); border-style: dashed; box-shadow: none; }
.dy-card--sample:hover { transform: none; border-color: rgba(201,164,92,.26); }
.dy-tag--sample { padding: 1px 10px; border-style: dashed; background: transparent; font-size: 11px; letter-spacing: .1em; color: var(--dy-mute); }

.dy-hint { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px; border: 1px dashed rgba(201,164,92,.35); border-radius: 12px; background: rgba(20,15,10,.5); }
.dy-hint p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--dy-mute); }
.dy-hint b { margin-right: 10px; font-weight: 500; font-size: 16px; color: #f1e4c6; }
.dy-hint__btn { flex: none; min-height: 38px; padding: 6px 20px; border: 1px solid rgba(224,196,138,.6); border-radius: 999px; background: transparent; color: var(--dy-gold); font: 500 14px/1 var(--serif); letter-spacing: .08em; cursor: pointer; }
.dy-hint__btn:hover { background: rgba(201,164,92,.12); }

.dy-empty { grid-column: 1 / -1; padding: 40px 24px 44px; text-align: center; border: 1px dashed rgba(201,164,92,.35); border-radius: 12px; background: rgba(20,15,10,.5); }
.dy-empty img { display: block; width: min(320px, 80%); height: auto; aspect-ratio: 1568 / 628; margin: 0 auto 20px; object-fit: cover; border-radius: 10px; opacity: .75; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.dy-empty p { margin: 6px 0 0; font-size: 14px; color: var(--dy-mute); }
.dy-empty .dy-empty__title { font-size: 18px; color: #f1e4c6; letter-spacing: .06em; }

.dy-more {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 220px; min-height: 46px;
  margin: 32px auto 0;
  padding: 8px 32px;
  border: 1px solid rgba(224,196,138,.6);
  border-radius: 999px;
  background: rgba(10,8,6,.4);
  color: var(--dy-gold);
  font: 500 15px/1 var(--serif);
  letter-spacing: .12em;
  cursor: pointer;
}
.dy-more[hidden] { display: none; }
.dy-more:hover { background: rgba(201,164,92,.12); }

/* ---------- Footer: sit on the page background ---------- */
.diary-page .site-footer { position: relative; background: rgba(8,6,4,.55); }   /* lets the gutter pattern show through */

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .dy-tagline { display: none; }
  .dy-journal__head { flex-wrap: wrap; }
  .dy-pills--filter { margin-left: 0; justify-content: flex-start; width: 100%; }
}
@media (max-width: 980px) {
  .dy-stats { grid-template-columns: 1fr 1fr; }
  .dy-stat--month { grid-column: 1 / -1; }
  .dy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* Phones: the cross gets its own band under the top bar, centred, with the title below it —
     nothing sits on the cross. cross.webp is 1568x628 with the cross at x 619-902, y 87-560:
     for an on-screen cross width --cw the image is 5.521cw wide / 2.2113cw tall and the cross
     centre is 2.678cw from its left edge. 26vw keeps the image covering the full width. */
  .dy-main { padding: 0 16px 40px; --cw: clamp(100px, 26vw, 170px); }
  .dy-backdrop { height: calc(var(--cw) * 2.2113); }
  .dy-backdrop__img { background-image: url(../images/cross.webp); background-size: auto calc(var(--cw) * 2.2113); background-position: calc(50vw - var(--cw) * 2.678) 0; }
  .dy-backdrop__rays { display: none; }
  /* symmetric side dimming, clear within .8cw of the centre (cross = .5cw); fades out with the image */
  .dy-backdrop__glow { background: linear-gradient(90deg, rgba(10,8,6,.6) 0, transparent calc(50% - var(--cw) * .8), transparent calc(50% + var(--cw) * .8), rgba(10,8,6,.6) 100%); -webkit-mask-image: linear-gradient(180deg, #000 91%, transparent 100%); mask-image: linear-gradient(180deg, #000 91%, transparent 100%); }
  .dy-backdrop::before { inset: 6% calc(50% + var(--cw) * .5 + 24px) 20% 2%; }
  .dy-backdrop::after { inset: 6% 2% 20% calc(50% + var(--cw) * .5 + 24px); }
  .dy-hero { padding-top: calc(var(--cw) * 2.2113 + 4px); }   /* title starts below the image band */
  .dy-head { margin-bottom: 24px; }
  .dy-sub { font-size: 16px; letter-spacing: .06em; }
  .dy-verse { font-size: 13px; }
  .dy-composer { padding: 20px 16px; }
  .dy-composer__title { font-size: 18px; margin-bottom: 16px; }
  .dy-pills--composer { display: flex; gap: 8px; }
  .dy-pills--composer .dy-pill { flex: 1 1 auto; min-height: 36px; padding-inline: 12px; font-size: 13px; }
  .dy-notes { flex-wrap: wrap; }
  .dy-stats { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .dy-stat { min-height: 0; }
  .dy-stat--verse { padding-block: 20px; }
  .dy-mountain { width: 48%; }
  .dy-journal { margin-top: 36px; }
  .dy-journal__head { gap: 12px; }
  .dy-journal__head .dy-journal__icon { width: 32px; height: 32px; }
  .dy-journal__head h2 { font-size: 22px; }
  .dy-pills--filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px; width: calc(100% + 32px); }
  .dy-pills--filter::-webkit-scrollbar { display: none; }
  .dy-pills--filter .dy-pill { flex: none; }
  .dy-grid { grid-template-columns: 1fr; gap: 16px; }
  .dy-hint { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .dy-hint b { display: block; margin: 0 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .dy-card, .dy-save, .dy-pill { transition: none; }
  .dy-backdrop::before, .dy-backdrop::after { animation: none; opacity: .7; }
}
/* full text on tap */
.is-clampable { cursor: pointer; }
.dy-card__text.is-expanded, .wall-card__text.is-expanded { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; white-space: pre-line; }
.text-more { align-self: flex-start; margin: 6px 0 0; padding: 6px 0; border: 0; background: none; color: #e6c47a; font: 500 13.5px/1.4 var(--serif, serif); letter-spacing: .06em; cursor: pointer; touch-action: manipulation; }
.text-more:hover { text-decoration: underline; }

/* Item sharing stays inside the entry, including its expanded view. */
.dy-card__share { margin-top: 18px; }
.dy-card:has(.dy-card__text.is-expanded) .dy-card__share { padding-top: 18px; border-top: 1px solid var(--line); }
