/* Daily-features emphasis (daily_features variant of the public home page and
   /freetrial/). Two blocks:
     .dfe        "Two reasons members log in every day" panels
                 (partials/daily-features-panels.njk)
     .dfe-today  live "Waiting for you today" card in the /freetrial/ hero

   Typography is declared !important on purpose: /freetrial/ renders under
   base.njk, which loads senior-friendly-typography.css (element-level
   `p`, `li`, `h2`, `h3` and `p + p` rules, all !important). The public home
   page does not, and the block has to look the same on both. */

.dfe,
.dfe-today {
  --dfe-amber: #FFC107;
  --dfe-amber-dark: #E5A000;
  --dfe-amber-text: #8A5A00;      /* 6.4:1 on white */
  --dfe-teal: #00BFA5;
  --dfe-teal-dark: #00796B;       /* 5.3:1 on white */
  --dfe-ink: #212121;
  --dfe-ink-2: #3d4b5a;
  --dfe-muted: #5A6572;
  --dfe-line: #E0E0E0;
  --dfe-radius: 12px;
  --dfe-shadow: 0 8px 24px rgba(61, 75, 90, 0.12);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--dfe-ink);
}

.dfe *,
.dfe *::before,
.dfe *::after,
.dfe-today *,
.dfe-today *::before,
.dfe-today *::after {
  box-sizing: border-box;
}

/* ---------- Section header ---------- */

.dfe .dfe__eyebrow {
  margin: 0 0 0.5rem !important;
  text-align: center;
  color: var(--dfe-teal-dark) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dfe .dfe__heading {
  margin: 0 0 0.75rem !important;
  text-align: center;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--dfe-ink) !important;
}

.dfe .dfe__lead {
  max-width: 44rem;
  margin: 0 auto 2rem !important;
  text-align: center;
  color: var(--dfe-ink-2) !important;
  font-size: 1.125rem !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

/* ---------- Panels ---------- */

.dfe .dfe__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .dfe .dfe__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dfe .dfe__panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--dfe-line);
  border-top: 6px solid var(--dfe-amber);
  border-radius: var(--dfe-radius);
  overflow: hidden;
  box-shadow: var(--dfe-shadow);
}

.dfe .dfe__panel--comp {
  border-top-color: var(--dfe-teal);
}

.dfe .dfe__media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #f7e9d7;
}

.dfe .dfe__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.dfe .dfe__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

/* "Today's ..." live line */
.dfe .dfe__live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--dfe-amber-text) !important;
}

.dfe .dfe__panel--comp .dfe__live {
  color: var(--dfe-teal-dark) !important;
}

.dfe .dfe__pulse {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dfe-amber-dark);
  box-shadow: 0 0 0 0 rgba(229, 160, 0, 0.55);
  animation: dfe-pulse 2.2s ease-out infinite;
}

@keyframes dfe-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 160, 0, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(229, 160, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 160, 0, 0); }
}

.dfe .dfe__clock {
  flex: 0 0 auto;
}

.dfe .dfe__title {
  margin: 0 0 0.35rem !important;
  font-size: clamp(1.35rem, 2.4vw, 1.6rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--dfe-ink) !important;
}

.dfe .dfe__sub {
  margin: 0 0 0.9rem !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  font-style: italic;
  line-height: 1.45 !important;
  color: var(--dfe-ink-2) !important;
}

.dfe .dfe__sub::first-letter {
  text-transform: uppercase;
}

.dfe .dfe__sub[hidden] {
  display: none;
}

.dfe .dfe__desc {
  margin: 0 0 1rem !important;
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: var(--dfe-ink-2) !important;
}

.dfe .dfe__points {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.dfe .dfe__points li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--dfe-ink-2) !important;
}

.dfe .dfe__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: var(--dfe-amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23212121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 0.8rem;
  background-position: center;
  background-repeat: no-repeat;
}

.dfe .dfe__panel--comp .dfe__points li::before {
  background-color: var(--dfe-teal);
}

.dfe .dfe__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

/* Site-standard amber button; generous target for older fingers. */
.dfe .dfe__actions a.dfe__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  background: var(--dfe-amber);
  color: var(--dfe-ink) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.dfe .dfe__actions a.dfe__btn:hover,
.dfe .dfe__actions a.dfe__btn:focus-visible {
  background: var(--dfe-amber-dark);
  color: var(--dfe-ink) !important;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.dfe .dfe__actions a.dfe__btn:focus-visible,
.dfe .dfe__actions a.dfe__more:focus-visible {
  outline: 3px solid var(--dfe-ink);
  outline-offset: 2px;
}

.dfe .dfe__actions a.dfe__more {
  padding: 0.45rem 0;
  color: var(--dfe-teal-dark) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none;
}

.dfe .dfe__actions a.dfe__more::after {
  content: " \2192";
}

.dfe .dfe__actions a.dfe__more:hover {
  text-decoration: underline;
}

.dfe .dfe__fine {
  margin: 0.75rem 0 0 !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--dfe-muted) !important;
}

/* ---------- "Ten minutes a day" strip ---------- */

.dfe .dfe__rhythm {
  list-style: none;
  counter-reset: dfe-step;
  max-width: 54rem;
  margin: 2.25rem auto 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .dfe .dfe__rhythm {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.dfe .dfe__rhythm li {
  counter-increment: dfe-step;
  position: relative;
  padding: 0 0 0 3rem;
  font-size: 1.02rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--dfe-ink-2) !important;
}

.dfe .dfe__rhythm li::before {
  content: counter(dfe-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--dfe-amber);
  color: var(--dfe-ink);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dfe .dfe__rhythm strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 700 !important;
  color: var(--dfe-ink) !important;
}

/* ---------- /freetrial/ hero: "Waiting for you today" card ---------- */

.dfe-today {
  margin: 0;
  padding: 1.25rem 1.25rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--dfe-radius);
  box-shadow: 0 18px 44px rgba(61, 75, 90, 0.22);
  text-align: left;
}

.dfe-today .dfe-today__eyebrow {
  margin: 0 0 0.9rem !important;
  color: var(--dfe-teal-dark) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dfe-today .dfe-today__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--dfe-line);
}

/* The closing rule sits on the foot rather than :last-of-type on the rows,
   so a hidden row at the end can't take the border with it. */

.dfe-today .dfe-today__thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  border-left: 4px solid var(--dfe-amber);
  background: #f7e9d7;
}

.dfe-today .dfe-today__row--comp .dfe-today__thumb {
  border-left-color: var(--dfe-teal);
}

.dfe-today .dfe-today__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.dfe-today .dfe-today__label {
  margin: 0 0 0.15rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dfe-amber-text) !important;
}

.dfe-today .dfe-today__row--comp .dfe-today__label {
  color: var(--dfe-teal-dark) !important;
}

.dfe-today .dfe-today__value {
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--dfe-ink) !important;
}

.dfe-today .dfe-today__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.2rem 0 0 !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--dfe-ink-2) !important;
}

.dfe-today .dfe-today__meta::first-letter {
  text-transform: uppercase;
}

.dfe-today .dfe-today__meta[hidden] {
  display: none;
}

.dfe-today .dfe-today__meta svg {
  flex: 0 0 auto;
}

.dfe-today .dfe-today__foot {
  margin: 0 !important;
  padding-top: 0.9rem;
  border-top: 1px solid var(--dfe-line);
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: var(--dfe-muted) !important;
}

.dfe-today .dfe-today__foot strong {
  font-weight: 700 !important;
  color: var(--dfe-ink) !important;
}

@media (prefers-reduced-motion: reduce) {
  .dfe .dfe__pulse {
    animation: none;
  }
}
