/* Shared presentation for collective gifts and the group dictionary. */
.keepsakes {
  --keepsakes-rose: #ff8b80;
  --keepsakes-rose-bright: #ffaaa2;
  --keepsakes-rose-dark: #301e24;
  --keepsakes-ink: #f8f3f2;
  --keepsakes-muted: #c2b5b7;
  --keepsakes-soft: #91868a;
  --keepsakes-line: #51434a;
  --keepsakes-surface: #211d23;
  --keepsakes-surface-raised: #292229;
  width: min(100%, 760px);
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: 12px 12px 34px;
  color: var(--keepsakes-ink);
  color-scheme: dark;
  overflow-wrap: anywhere;
}

.keepsakes *,
.keepsakes *::before,
.keepsakes *::after { box-sizing: border-box; }
.keepsakes [hidden] { display: none !important; }
.keepsakes :is(button, input, select, textarea) { font: inherit; }
.keepsakes :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--keepsakes-rose-bright);
  outline-offset: 3px;
}

.keepsakes-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin: 12px 0 23px;
}
.keepsakes-header > :first-child:is(button, a) {
  display: grid;
  width: 42px;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--keepsakes-line);
  border-radius: 13px;
  background: #211e24;
  color: var(--keepsakes-ink);
  font-size: 21px;
  text-decoration: none;
}
.keepsakes-header > .keepsakes-actions { grid-column: 1 / -1; margin: 0; }
.keepsakes > .keepsakes-panel > .keepsakes-header { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.keepsakes-header h1 {
  margin: 0 0 8px;
  color: #fff4f0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 8vw, 43px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.keepsakes-header p:not(.eyebrow) {
  max-width: 50ch;
  margin: 0;
  color: #d6c9cb;
  font-size: 14px;
  line-height: 1.48;
}
.keepsakes-header .eyebrow {
  margin: 0 0 7px;
  color: var(--keepsakes-rose-bright);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.keepsakes-notice {
  margin: 0 0 16px;
  border: 1px solid #805b62;
  border-radius: 15px;
  padding: 13px 15px;
  background: linear-gradient(120deg, #34232a, #241e25 72%);
  box-shadow: inset 0 1px 0 #ffffff0c;
  color: #ffe2dc;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.keepsakes-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; min-width: 0; }
.keepsakes-panel {
  min-width: 0;
  border: 1px solid #40363e;
  border-radius: 19px;
  padding: 16px;
  background: linear-gradient(150deg, #262027, #1d1a20 78%);
  box-shadow: 0 12px 28px #0000001f, inset 0 1px 0 #ffffff09;
}
.keepsakes-panel > :last-child { margin-bottom: 0; }
.keepsakes-panel h2,
.keepsakes-panel h3 { margin: 0 0 11px; font-size: 19px; line-height: 1.12; letter-spacing: -.035em; }
.keepsakes-panel p { color: var(--keepsakes-muted); font-size: 13px; line-height: 1.48; }

.keepsakes-field { display: grid; min-width: 0; gap: 7px; margin: 0 0 15px; color: #efe5e5; font-size: 13px; font-weight: 750; }
.keepsakes-field small,
.keepsakes-field .help,
.keepsakes-field > span + p { color: var(--keepsakes-muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.keepsakes :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #62545d;
  border-radius: 12px;
  padding: 10px 12px;
  background: #17151a;
  color: #fff8f6;
  font-size: 14px;
  line-height: 1.4;
}
.keepsakes textarea { min-height: 112px; resize: vertical; }
.keepsakes input::placeholder,
.keepsakes textarea::placeholder { color: #a89ba0; opacity: 1; }
.keepsakes input[type="checkbox"],
.keepsakes input[type="radio"] { width: 19px; height: 19px; flex: none; margin: 0; accent-color: #ff8b80; }
.keepsakes input[type="file"] { max-width: 100%; color: var(--keepsakes-muted); font-size: 12px; }
.keepsakes input[type="file"]::file-selector-button {
  min-height: 39px;
  margin-right: 9px;
  border: 1px solid #765760;
  border-radius: 10px;
  padding: 7px 11px;
  background: #39272f;
  color: #ffe5df;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.keepsakes-actions,
.keepsakes-toolbar { display: flex; min-width: 0; flex-wrap: wrap; gap: 9px; align-items: center; }
.keepsakes-actions { margin-top: 15px; }
.keepsakes-toolbar { justify-content: space-between; margin: 0 0 14px; }
.keepsakes :is(button, .button) {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #65535c;
  border-radius: 12px;
  padding: 10px 14px;
  background: #30252c;
  color: #fff3ef;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.keepsakes :is(button, .button):hover { border-color: #bd7b79; background: #3a2930; }
.keepsakes :is(button, .button):disabled { cursor: not-allowed; opacity: .58; }
.keepsakes :is(button, .button).button-primary,
.keepsakes :is(button, .button)[data-primary="true"] {
  border-color: #ff8b80;
  background: #ff8b80;
  color: #28191c;
  box-shadow: 0 7px 19px #ff8b8026;
}
.keepsakes :is(button, .button).button-primary:hover,
.keepsakes :is(button, .button)[data-primary="true"]:hover { border-color: #ffc0b4; background: #ffa094; }
.keepsakes button.keepsakes-back { width: 42px; max-width: 42px; min-width: 42px; flex: 0 0 42px; padding: 0; font-size: 21px; white-space: nowrap; overflow: hidden; }
.keepsakes button[aria-pressed="true"] { border-color: #ff9b91; background: #493039; color: #fff1ec; box-shadow: inset 0 0 0 1px #ff8b8059, 0 0 0 2px #ff8b8030; }
.keepsakes button[aria-pressed="true"]::after { margin-left: 7px; color: #ffc0b4; font-size: 1.05em; content: "✓"; }
.keepsakes button[aria-pressed="true"]:hover { border-color: #ffc0b4; background: #563641; }
.keepsakes :is([data-keepsakes-action="present"], [data-keepsakes-action="export-dictionary"], [data-keepsakes-action="presentation-next"]) {
  border-color: #ff8b80;
  background: #ff8b80;
  color: #28191c;
  box-shadow: 0 7px 19px #ff8b8026;
}
.keepsakes :is([data-keepsakes-action="present"], [data-keepsakes-action="export-dictionary"], [data-keepsakes-action="presentation-next"]):hover {
  border-color: #ffc0b4;
  background: #ffa094;
}
.keepsakes-actions > :is(button, .button) { flex: 1 1 145px; }

.keepsakes-list { display: grid; min-width: 0; gap: 10px; margin: 0; padding: 0; list-style: none; }
.keepsakes-item,
.keepsakes-entry,
.keepsakes-contribution {
  min-width: 0;
  border: 1px solid #403840;
  border-radius: 15px;
  padding: 13px;
  background: #211e24;
}
.keepsakes-item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }
.keepsakes-item > :is(input[type="checkbox"], input[type="radio"]) { margin-top: 2px; }
.keepsakes-item > * { min-width: 0; }
.keepsakes-item h3,
.keepsakes-entry h3,
.keepsakes-contribution h3 { margin: 0 0 6px; color: #fff2ed; font-size: 15px; line-height: 1.28; letter-spacing: -.02em; }
.keepsakes blockquote { min-width: 0; margin: 7px 0 0; border-left: 2px solid var(--keepsakes-rose); padding: 2px 0 2px 11px; color: #e5d9da; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.45; }
.keepsakes label.keepsakes-quote { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 5px 9px; align-items: start; min-width: 0; border: 1px solid #403840; border-radius: 15px; padding: 13px; background: #211e24; color: #e5d9da; cursor: pointer; }
.keepsakes label.keepsakes-quote > input { grid-row: 1 / span 2; margin-top: 2px; }
.keepsakes label.keepsakes-quote > blockquote,
.keepsakes label.keepsakes-quote > .keepsakes-meta { grid-column: 2; min-width: 0; }
.keepsakes-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 8px 0 0; color: #b5a7ac; font-size: 11px; line-height: 1.4; }
.keepsakes-count { display: inline-flex; width: fit-content; min-height: 25px; align-items: center; margin: 0; border: 1px solid #72545c; border-radius: 999px; padding: 3px 9px; background: #38272e; color: #ffe0d8; font-size: 11px; font-weight: 800; white-space: nowrap; }
.keepsakes-status,
.keepsakes-error { min-height: 0; margin: 10px 1px 0; color: #c8edcf; font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.keepsakes-status:empty,
.keepsakes-error:empty { display: none; }
.keepsakes-error { color: #ffaaa2; }
.keepsakes-empty { border: 1px dashed #62535b; border-radius: 15px; padding: 19px 15px; background: #1c1a20; color: #c9bdc0; font-size: 13px; line-height: 1.45; text-align: center; }
.keepsakes-empty > :last-child { margin-bottom: 0; }
.keepsakes-panel,
.keepsakes-item,
.keepsakes-entry,
.keepsakes-contribution,
.keepsakes-preview,
.keepsakes-slide { overflow-wrap: anywhere; }

.keepsakes-preview {
  min-width: 0;
  border: 1px solid #84626a;
  border-radius: 21px;
  padding: clamp(19px, 5vw, 29px);
  background: radial-gradient(ellipse at 50% 0%, #73464c55, transparent 54%), linear-gradient(145deg, #32252c, #1b1a20 72%);
  box-shadow: 0 18px 38px #00000032, inset 0 1px 0 #ffffff10;
}
.keepsakes-preview h2 { margin: 0 0 12px; color: #fff1eb; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 7vw, 36px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.keepsakes-preview blockquote { margin-top: 14px; color: #fff0ec; font-size: clamp(17px, 4.5vw, 21px); }
.keepsakes-photo { display: block; width: 100%; max-width: 100%; max-height: 430px; margin: 12px auto; border: 1px solid #80646c; border-radius: 15px; object-fit: cover; }
.keepsakes-preview img { display: block; width: 100%; max-width: 100%; max-height: 430px; margin: 12px auto; border: 1px solid #80646c; border-radius: 15px; object-fit: cover; }

.keepsakes-presentation { display: grid; min-width: 0; gap: 13px; }
.keepsakes-slide {
  display: grid;
  min-width: 0;
  min-height: 240px;
  align-content: center;
  gap: 12px;
  border: 1px solid #76545e;
  border-radius: 22px;
  padding: clamp(20px, 6vw, 36px);
  background: radial-gradient(ellipse at 80% 10%, #ff8b8017, transparent 52%), linear-gradient(145deg, #30232a, #1d1b20 72%);
  box-shadow: 0 20px 38px #00000030;
  text-align: center;
}
.keepsakes-slide h2 { margin: 0; color: #fff3ef; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 8vw, 43px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.keepsakes-slide blockquote { border: 0; padding: 0; color: #f1e3e2; font-size: clamp(17px, 5vw, 23px); }

@media (min-width: 620px) {
  .keepsakes { padding-right: 20px; padding-left: 20px; }
  .keepsakes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keepsakes-grid > .keepsakes-panel:only-child,
  .keepsakes-grid > .keepsakes-panel.is-wide { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .keepsakes { padding-right: 12px; padding-left: 12px; }
  .keepsakes-header { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
  .keepsakes-header > :first-child:is(button, a) { width: 38px; min-height: 38px; }
  .keepsakes-header h1 { font-size: clamp(28px, 9vw, 34px); }
  .keepsakes-panel { padding: 13px; }
  .keepsakes-toolbar { align-items: stretch; }
  .keepsakes-toolbar > * { max-width: 100%; }
  .keepsakes :is(button, .button) { padding-right: 11px; padding-left: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .keepsakes *, .keepsakes *::before, .keepsakes *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

@media print {
  .keepsakes { width: 100%; min-height: 0; padding: 0; color: #20191c; color-scheme: light; }
  .keepsakes :is(.keepsakes-actions, .keepsakes-toolbar, button, input, select, textarea, [data-print-hide]) { display: none !important; }
  .keepsakes-panel, .keepsakes-preview, .keepsakes-slide, .keepsakes-item, .keepsakes-entry, .keepsakes-contribution {
    break-inside: avoid;
    border-color: #b9a8ad;
    background: #ffffff;
    box-shadow: none;
    color: #20191c;
  }
  .keepsakes :is(h1, h2, h3, p, .keepsakes-quote, .keepsakes-meta, .keepsakes-status, .keepsakes-count) { color: #20191c; }
  .keepsakes :is(.keepsakes-notice, .keepsakes-empty) { border-color: #b9a8ad; background: #fff7f5; color: #38252b; }
  .keepsakes-photo { max-height: 260px; }
}
