/* Daily News: shared archive and article photography. */
.fe-news-photo .fe-news-photo__image--contain { object-fit: contain; background: #fff; }
body.post-type-archive-fe_daily_news {
  --fe-news-bg: #f6f5f1;
  --fe-news-surface: #fff;
  --fe-news-ink: #182c39;
  --fe-news-muted: #52646f;
  --fe-news-line: #dce2e3;
  --fe-news-accent: #146b65;
  background: var(--fe-news-bg);
}
html body.post-type-archive-fe_daily_news {
  background: var(--fe-news-bg) !important;
}
body.fe-site-shell.post-type-archive-fe_daily_news #content {
  background: var(--fe-news-bg);
}
body.post-type-archive-fe_daily_news::before,
body.post-type-archive-fe_daily_news::after,
body.fe-site-shell.post-type-archive-fe_daily_news #page::before,
body.fe-site-shell.post-type-archive-fe_daily_news #page::after {
  display: none;
}
.fe-news-archive {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px 72px;
  color: var(--fe-news-ink);
}
.fe-news-hero {
  max-width: 780px;
  padding: 24px 0 30px;
}
.fe-news-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fe-news-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fe-news-title {
  margin: 12px 0 0;
  color: var(--fe-news-ink);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.fe-news-intro {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--fe-news-muted);
  font-size: 16px;
  line-height: 1.7;
}
.fe-news-edition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-block: 1px solid var(--fe-news-line);
  text-align: center;
}
.fe-news-edition__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 104px;
  padding: 8px 12px;
  border: 1px solid var(--fe-news-line);
  border-radius: 8px;
  color: var(--fe-news-ink);
  background: var(--fe-news-surface);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.fe-news-edition__nav[aria-disabled="true"] {
  visibility: hidden;
}
.fe-news-edition__date {
  margin: 0;
  color: var(--fe-news-ink);
  font-size: 17px;
  font-weight: 750;
}
.fe-news-edition__count {
  margin: 4px 0 0;
  color: var(--fe-news-muted);
  font-size: 12px;
}
.fe-news-archive-picker {
  margin: 16px 0 20px;
  border: 1px solid var(--fe-news-line);
  border-radius: 12px;
  background: var(--fe-news-surface);
  overflow: hidden;
}
.fe-news-archive-picker > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
  color: var(--fe-news-ink);
  font-size: 14px;
  font-weight: 650;
}
.fe-news-archive-picker > summary::-webkit-details-marker { display: none; }
.fe-news-archive-picker > summary::after { content: '⌄'; margin-left: auto; font-size: 20px; line-height: 1; }
.fe-news-archive-picker[open] > summary::after { content: '⌃'; }
.fe-news-archive-picker__count { color: var(--fe-news-muted); font-size: 12px; font-weight: 500; }
.fe-news-dates {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  margin: 0;
  padding: 12px;
  border-top: 1px solid var(--fe-news-line);
}
.fe-news-date {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid var(--fe-news-line);
  border-radius: 8px;
  color: var(--fe-news-muted);
  background: var(--fe-news-surface);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.fe-news-archive-picker :is(summary, a):focus-visible { outline: 2px solid var(--fe-news-accent); outline-offset: -3px; }
@media (max-width: 640px) {
  .fe-news-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fe-news-date.is-active {
  color: var(--fe-news-accent);
  border-color: var(--fe-news-accent);
  font-weight: 750;
}
.fe-news-status {
  min-height: 1.5em;
  margin: 0 0 12px;
  color: var(--fe-news-muted);
  font-size: 12px;
}
.fe-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.fe-news-grid[hidden],
.fe-news-empty[hidden] {
  display: none;
}
.fe-news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--fe-news-line);
  border-radius: 12px;
  background: var(--fe-news-surface);
  overflow-wrap: anywhere;
}
.fe-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
.fe-news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--fe-news-muted);
  font-size: 11px;
}
.fe-news-card__category {
  color: var(--fe-news-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fe-news-card__title {
  margin: 12px 0 0;
  color: var(--fe-news-ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.fe-news-card__title a {
  color: inherit;
  text-decoration: none;
}
.fe-news-card__summary {
  margin: 12px 0 0;
  color: var(--fe-news-muted);
  font-size: 14px;
  line-height: 1.65;
}
.fe-news-card__source {
  margin: 14px 0 0;
  color: var(--fe-news-muted);
  font-size: 11px;
  line-height: 1.5;
}
.fe-news-card__context {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--fe-news-line);
}
.fe-news-card__context h3 {
  margin: 0 0 8px;
  color: var(--fe-news-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}
.fe-news-card__context p {
  margin: 0;
  color: var(--fe-news-muted);
  font-size: 14px;
  line-height: 1.7;
}
.fe-news-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}
.fe-news-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--fe-news-accent);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.fe-news-card__footer .fe-user-library__card-form {
  position: static;
  display: inline-flex;
  gap: 5px;
  margin: 0;
  pointer-events: auto;
}
.fe-news-card__footer .fe-user-library__favorite-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.fe-news-empty {
  padding: 32px;
  border: 1px solid var(--fe-news-line);
  border-radius: 12px;
  background: var(--fe-news-surface);
}
.fe-news-photo {
  margin: 0;
}
.fe-news-photo__link {
  display: block;
}
.fe-news-photo__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.fe-news-photo__credit {
  padding: 7px 12px;
  color: var(--fe-news-muted, var(--fe-text-muted, #64748b));
  background: var(--fe-news-surface, var(--fe-surface, #fff));
  font-size: 10px;
  line-height: 1.5;
}
.fe-news-photo__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fe-news-photo__placeholder {
  display: flex;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--fe-news-accent, #146b65);
  background: linear-gradient(135deg, #d9e9e4, #f0f2eb);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.fe-news-photo__placeholder svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.2;
}
.fe-news-single > .fe-news-photo {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 12px;
}
.fe-news-single .fe-news-photo__credit {
  padding: 10px 0;
  background: transparent;
  font-size: 11px;
}
.fe-news-archive a:focus-visible {
  outline: 3px solid var(--fe-news-accent);
  outline-offset: 4px;
}
.fe-news-card__title a:hover,
.fe-news-card__action:hover {
  color: var(--fe-news-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1024px) {
  .fe-news-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .fe-news-card:first-child .fe-news-card__title {
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.2;
  }
  .fe-news-card:first-child .fe-news-card__summary {
    font-size: 16px;
  }
  .fe-news-card:first-child .fe-news-card__body {
    padding: 26px;
  }
  .fe-news-card:nth-child(2) .fe-news-card__body,
  .fe-news-card:nth-child(3) .fe-news-card__body {
    padding: 18px;
  }
  .fe-news-card:nth-child(2) .fe-news-card__title,
  .fe-news-card:nth-child(3) .fe-news-card__title {
    font-size: 18px;
  }
  .fe-news-card:nth-child(2) .fe-news-card__summary,
  .fe-news-card:nth-child(3) .fe-news-card__summary {
    font-size: 12px;
  }
  .fe-news-card:nth-child(2) .fe-news-card__footer,
  .fe-news-card:nth-child(3) .fe-news-card__footer {
    gap: 4px;
    padding-top: 8px;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .fe-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .fe-news-card:first-child {
    grid-column: 1 / -1;
  }
  .fe-news-card:first-child .fe-news-photo__image {
    max-height: 400px;
  }
  .fe-news-card:first-child .fe-news-card__title {
    font-size: 28px;
  }
}
@media (max-width: 639px) {
  .fe-news-archive {
    padding: 14px 16px 48px;
  }
  .fe-news-hero {
    padding: 18px 0 24px;
  }
  .fe-news-intro {
    font-size: 14px;
  }
  .fe-news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fe-news-edition {
    gap: 6px;
  }
  .fe-news-edition__nav {
    min-width: 70px;
    padding-inline: 6px;
    font-size: 11px;
  }
  .fe-news-edition__date {
    font-size: 14px;
  }
  .fe-news-card__body {
    padding: 18px;
  }
  .fe-news-card:first-child .fe-news-card__title {
    font-size: 25px;
  }
}
html[data-fe-theme="dark"] body.post-type-archive-fe_daily_news {
  --fe-news-bg: #101819;
  --fe-news-surface: #192426;
  --fe-news-ink: #edf3f1;
  --fe-news-muted: #b6c6c6;
  --fe-news-line: #334344;
  --fe-news-accent: #8ed4c3;
}
html[data-fe-theme="dark"] .fe-news-photo .fe-news-photo__image--contain {
  background: var(--fe-news-surface, var(--fe-surface, #192426));
}
html[data-fe-theme="dark"] .fe-news-photo__placeholder {
  color: #8ed4c3;
  background: linear-gradient(135deg, #203d39, #25302e);
}

.fe-news-card__reading-time { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--fe-news-muted); }
