:root {
  --cdf-memory-night: #031326;
  --cdf-memory-night-2: #071d36;
  --cdf-memory-gold: #dfa11b;
  --cdf-memory-gold-light: #f5c85c;
  --cdf-memory-cream: #f7f3e9;
  --cdf-memory-ink: #142139;
  --cdf-memory-muted: #687184;
}
body:has(.cdf-memory-page) .wp-block-post-title,
body:has(.cdf-memory-page) .entry-title {
  display: none !important;
}
body:has(.cdf-memory-page) > .wp-site-blocks > main {
  margin-block-start: 0 !important;
}
body:has(.cdf-memory-page) > .wp-site-blocks > header,
body:has(.cdf-memory-page) > .wp-site-blocks > footer {
  display: none !important;
}
body:has(.cdf-memory-page) .wp-block-group.alignfull:has(> .entry-content) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body:has(.cdf-memory-page) .entry-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.cdf-memory-page {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: none;
  margin: 0 0 0 -50vw !important;
  color: var(--cdf-memory-ink);
  background: var(--cdf-memory-cream);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  overflow: hidden;
}
.cdf-memory-page * {
  box-sizing: border-box;
}
.cdf-memory-page [hidden] {
  display: none !important;
}
.cdf-memory-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.cdf-memory-hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  color: #fff;
  background-image: var(--cdf-memory-bg);
  background-position: center;
  background-size: cover;
}
.cdf-memory-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(2, 16, 34, 0.97),
      rgba(2, 16, 34, 0.84) 46%,
      rgba(2, 16, 34, 0.56)
    ),
    linear-gradient(0deg, rgba(2, 16, 34, 0.62), transparent 45%);
}
.cdf-memory-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 110px 0 95px;
}
.cdf-memory-eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--cdf-memory-gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cdf-memory-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: #fff;
  font:
    700 clamp(52px, 7vw, 92px)/0.98 Georgia,
    serif;
  letter-spacing: -0.035em;
}
.cdf-memory-hero blockquote {
  margin: 38px auto 28px;
  color: var(--cdf-memory-gold-light);
  font:
    700 clamp(24px, 3vw, 39px)/1.45 Georgia,
    serif;
}
.cdf-memory-hero-content > p {
  max-width: 800px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.75;
}
.cdf-memory-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.cdf-memory-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.cdf-memory-button:hover {
  transform: translateY(-2px);
}
.cdf-memory-button-gold {
  color: #07172b !important;
  background: linear-gradient(
    135deg,
    var(--cdf-memory-gold-light),
    var(--cdf-memory-gold)
  );
  box-shadow: 0 10px 28px rgba(223, 161, 27, 0.22);
}
.cdf-memory-button-outline {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.48);
}
.cdf-memory-button-dark {
  color: #fff !important;
  background: var(--cdf-memory-night);
}
.cdf-memory-text-button {
  border: 0;
  background: transparent;
  color: #976b11;
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
}
.cdf-stories-section {
  padding: 92px 0 110px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(223, 161, 27, 0.12),
      transparent 30%
    ),
    var(--cdf-memory-cream);
}
.cdf-stories-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.cdf-stories-heading .cdf-memory-eyebrow {
  margin-bottom: 8px;
  color: #9b6b0e;
}
.cdf-stories-heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--cdf-memory-night);
  font:
    700 clamp(38px, 5vw, 62px)/1.05 Georgia,
    serif;
}
.cdf-stories-heading > p {
  color: var(--cdf-memory-muted);
  font-weight: 700;
}
.cdf-story-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(240px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 38px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(20, 33, 57, 0.11);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(28, 35, 50, 0.06);
}
.cdf-story-filters input,
.cdf-story-filters select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d9d5cc;
  border-radius: 12px;
  background: #fff;
  color: var(--cdf-memory-ink);
  font: inherit;
}
.cdf-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cdf-story-public-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 33, 57, 0.1);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(22, 33, 52, 0.08);
  scroll-margin-top: 30px;
}
.cdf-story-media {
  aspect-ratio: 16/10;
  background: var(--cdf-memory-night);
}
.cdf-story-media img,
.cdf-story-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cdf-story-audio {
  padding: 27px 24px;
  background: linear-gradient(
    145deg,
    var(--cdf-memory-night),
    var(--cdf-memory-night-2)
  );
  color: #fff;
  text-align: center;
}
.cdf-story-audio > .dashicons {
  width: 42px;
  height: 42px;
  color: var(--cdf-memory-gold-light);
  font-size: 40px;
}
.cdf-story-audio p {
  margin: 8px 0 15px;
  font:
    700 20px Georgia,
    serif;
}
.cdf-story-audio audio {
  width: 100%;
  height: 42px;
}
.cdf-story-public-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}
.cdf-story-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #936918;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cdf-story-public-body h3 {
  margin: 14px 0 10px;
  color: var(--cdf-memory-night);
  font:
    700 28px Georgia,
    serif;
}
.cdf-story-excerpt {
  color: #566072;
  line-height: 1.72;
}
.cdf-story-full {
  margin-top: 15px;
}
.cdf-story-full summary {
  color: #936918;
  font-weight: 800;
  cursor: pointer;
}
.cdf-story-full > div {
  margin-top: 12px;
  padding: 16px;
  background: #faf7f0;
  border-radius: 12px;
  color: #485267;
}
.cdf-story-full p:first-child {
  margin-top: 0;
}
.cdf-story-full p:last-child {
  margin-bottom: 0;
}
.cdf-story-public-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}
.cdf-story-public-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #f3f0e9;
  color: #526071;
  font:
    700 13px Inter,
    Arial,
    sans-serif;
  cursor: pointer;
}
.cdf-story-public-actions button.is-liked {
  background: #fbe8e8;
  color: #a72d36;
}
.cdf-story-public-actions .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
}
.cdf-stories-empty {
  padding: 80px 28px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(20, 33, 57, 0.2);
  border-radius: 24px;
}
.cdf-stories-empty > .dashicons {
  width: 58px;
  height: 58px;
  color: var(--cdf-memory-gold);
  font-size: 56px;
}
.cdf-stories-empty h3 {
  margin: 16px 0 8px;
  color: var(--cdf-memory-night);
  font:
    700 34px Georgia,
    serif;
}
.cdf-stories-empty p {
  max-width: 620px;
  margin: 0 auto 26px;
  color: var(--cdf-memory-muted);
}
.cdf-story-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}
.cdf-story-pagination .page-numbers {
  display: grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--cdf-memory-ink);
  text-decoration: none;
}
.cdf-story-pagination .current {
  color: #fff;
  background: var(--cdf-memory-night);
}
.cdf-memory-cta {
  padding: 95px 0;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(3, 18, 36, 0.86), rgba(3, 18, 36, 0.94)),
    var(--cdf-memory-bg) center/cover;
}
.cdf-memory-cta h2 {
  margin: 0;
  color: #fff;
  font:
    700 clamp(40px, 5vw, 64px)/1.05 Georgia,
    serif;
}
.cdf-memory-cta p {
  margin: 18px auto 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}
.cdf-memory-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  max-width: 340px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  background: var(--cdf-memory-night);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.25s;
}
.cdf-memory-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cdf-story-hero {
  min-height: 520px;
}
.cdf-story-hero .cdf-memory-hero-content {
  text-align: left;
  padding: 95px 0 80px;
}
.cdf-story-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(50px, 7vw, 82px);
}
.cdf-story-hero .cdf-memory-hero-content > p {
  max-width: 760px;
  margin: 25px 0 0;
}
.cdf-memory-back {
  display: inline-block;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none;
  font-weight: 700;
}
.cdf-memory-back-home {
  position: absolute;
  top: 55px;
  left: 0;
  margin: 0;
}
.cdf-story-section {
  padding: 85px 0 110px;
  background:
    radial-gradient(circle at 0 0, rgba(223, 161, 27, 0.1), transparent 30%),
    #f6f2e8;
}
.cdf-story-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.7fr);
  gap: 48px;
  align-items: start;
}
.cdf-story-aside {
  position: sticky;
  top: 32px;
  padding: 24px 8px;
}
.cdf-story-aside .cdf-memory-eyebrow {
  color: #996d15;
}
.cdf-story-aside h2 {
  margin: 0 0 20px;
  color: var(--cdf-memory-night);
  font:
    700 46px/1.08 Georgia,
    serif;
}
.cdf-story-aside p {
  color: var(--cdf-memory-muted);
  font-size: 17px;
}
.cdf-story-aside ul {
  display: grid;
  gap: 13px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.cdf-story-aside li {
  position: relative;
  padding-left: 27px;
  color: #475368;
}
.cdf-story-aside li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #9b6b0e;
  font-weight: 900;
}
.cdf-story-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 33, 57, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(24, 34, 51, 0.1);
}
.cdf-story-card form {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 38px;
}
.cdf-story-block {
  display: grid;
  gap: 20px;
}
.cdf-story-block-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cdf-story-block-title > span {
  display: grid;
  flex: 0 0 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--cdf-memory-night);
  background: var(--cdf-memory-gold-light);
  font-weight: 900;
}
.cdf-story-block-title h2 {
  margin: 0;
  color: var(--cdf-memory-night);
  font:
    700 29px Georgia,
    serif;
}
.cdf-story-block-title p {
  margin: 3px 0 0;
  color: var(--cdf-memory-muted);
  font-size: 14px;
}
.cdf-story-fields {
  display: grid;
  gap: 16px;
}
.cdf-story-fields-2 {
  grid-template-columns: 1fr 1fr;
}
.cdf-story-card form label:not(.cdf-story-check) {
  display: grid;
  gap: 7px;
  color: #344157;
  font-size: 13px;
  font-weight: 800;
}
.cdf-story-card input:not([type="checkbox"]):not([type="file"]),
.cdf-story-card select,
.cdf-story-card textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d5d6d8;
  border-radius: 11px;
  background: #fff;
  color: var(--cdf-memory-ink);
  font:
    400 15px Inter,
    Arial,
    sans-serif;
  outline: none;
}
.cdf-story-card input:focus,
.cdf-story-card select:focus,
.cdf-story-card textarea:focus {
  border-color: var(--cdf-memory-gold);
  box-shadow: 0 0 0 3px rgba(223, 161, 27, 0.13);
}
.cdf-story-card textarea {
  min-height: 190px;
  resize: vertical;
}
.cdf-optional {
  color: #858c98;
  font-weight: 500;
}
.cdf-story-divider {
  height: 1px;
  margin: 34px 0;
  background: #ece8df;
}
.cdf-media-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cdf-media-option {
  position: relative;
  display: flex !important;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  gap: 5px !important;
  padding: 15px 9px;
  border: 1px solid #d9d7d1;
  border-radius: 14px;
  background: #faf9f6;
  color: #38465c !important;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}
.cdf-media-option:hover {
  border-color: var(--cdf-memory-gold);
  background: #fff9e9;
  transform: translateY(-2px);
}
.cdf-media-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cdf-media-option .dashicons {
  width: 30px;
  height: 30px;
  color: #9b6b0e;
  font-size: 28px;
}
.cdf-media-option strong {
  font-size: 13px;
}
.cdf-media-option small {
  color: #7b8491;
  font-size: 10px;
  font-weight: 500;
}
.cdf-record-option {
  font: inherit;
}
.cdf-record-option.is-recording {
  color: #8e2028 !important;
  border-color: #cf5660;
  background: #fff0f1;
  animation: cdfPulse 1.3s infinite;
}
.cdf-record-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cdf-media-selection {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #eef6ee;
  color: #294e32;
}
.cdf-media-selection > .dashicons {
  width: 28px;
  height: 28px;
  font-size: 27px;
}
.cdf-media-selection strong,
.cdf-media-selection small {
  display: block;
}
.cdf-media-selection small {
  color: #5c7461;
}
.cdf-media-selection button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #40534a;
  font-size: 22px;
  cursor: pointer;
}
.cdf-upload-help {
  margin: 0;
  color: #7b8491;
  font-size: 12px;
}
.cdf-story-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  padding: 16px;
  border-radius: 12px;
  background: #faf7ef;
  color: #566072;
  font-size: 13px;
}
.cdf-story-check input {
  margin-top: 3px;
}
.cdf-story-status {
  min-height: 22px;
  margin: 0;
  text-align: center;
  color: #8a6110;
  font-weight: 700;
}
.cdf-story-success {
  padding: 70px 40px;
  text-align: center;
}
.cdf-story-success > .dashicons {
  width: 68px;
  height: 68px;
  color: var(--cdf-memory-gold);
  font-size: 66px;
}
.cdf-story-success .cdf-memory-eyebrow {
  margin: 20px 0 8px;
  color: #9b6b0e;
}
.cdf-story-success h2 {
  margin: 0;
  color: var(--cdf-memory-night);
  font:
    700 44px Georgia,
    serif;
}
.cdf-story-success p {
  max-width: 560px;
  margin: 16px auto 28px;
  color: var(--cdf-memory-muted);
}
.cdf-story-success .cdf-memory-text-button {
  display: block;
  margin: 16px auto 0;
}
@keyframes cdfPulse {
  50% {
    box-shadow: 0 0 0 7px rgba(207, 86, 96, 0.12);
  }
}
@media (max-width: 1000px) {
  .cdf-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cdf-story-layout {
    grid-template-columns: 1fr;
  }
  .cdf-story-aside {
    position: static;
    padding: 0;
  }
  .cdf-media-options {
    grid-template-columns: 1fr 1fr;
  }
  .cdf-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .cdf-memory-shell {
    width: min(100% - 24px, 1180px);
  }
  .cdf-memory-hero {
    min-height: 680px;
  }
  .cdf-memory-hero-content {
    padding: 85px 0 70px;
  }
  .cdf-memory-hero h1 {
    font-size: clamp(43px, 14vw, 66px);
  }
  .cdf-memory-hero blockquote {
    font-size: 23px;
  }
  .cdf-memory-hero-content > p {
    font-size: 15px;
  }
  .cdf-stories-section {
    padding: 65px 0 80px;
  }
  .cdf-stories-heading {
    display: block;
  }
  .cdf-stories-heading > p {
    margin-top: 12px;
  }
  .cdf-story-filters {
    grid-template-columns: 1fr;
  }
  .cdf-stories-grid {
    grid-template-columns: 1fr;
  }
  .cdf-memory-actions,
  .cdf-memory-button {
    width: 100%;
  }
  .cdf-story-hero {
    min-height: 500px;
  }
  .cdf-story-hero .cdf-memory-hero-content {
    padding: 70px 0 58px;
  }
  .cdf-memory-back {
    margin-bottom: 32px;
  }
  .cdf-story-section {
    padding: 55px 0 80px;
  }
  .cdf-story-card form {
    padding: 24px 18px;
  }
  .cdf-story-fields-2 {
    grid-template-columns: 1fr;
  }
  .cdf-media-options {
    grid-template-columns: 1fr 1fr;
  }
  .cdf-story-aside h2 {
    font-size: 38px;
  }
  .cdf-story-success {
    padding: 55px 22px;
  }
  .cdf-story-success h2 {
    font-size: 36px;
  }
}
@media (max-width: 420px) {
  .cdf-media-options {
    grid-template-columns: 1fr;
  }
  .cdf-story-meta {
    display: grid;
  }
  .cdf-story-public-actions {
    align-items: stretch;
  }
  .cdf-story-public-actions button {
    justify-content: center;
  }
}
