/* Cards for posts and events, shared by whats-new.html and the two-column
   "What's new / Coming up" block on the home page. */
a.new-item {
  display: block;
  position: relative;
  margin: .7rem 0;
  padding: .75rem .9rem;
  /* White, with the section's color as a bar on the left. */
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--surface-border);
  border-left: 5px solid var(--accent, var(--navy));
  border-radius: 10px;
  box-shadow: none;
}
a.new-item:hover { background: var(--strip, #eceff3); }
.new-item .tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.new-item .what { font-weight: 700; margin: .15rem 0; line-height: 1.3; overflow-wrap: anywhere; }
.new-item .meta { font-size: .82rem; color: var(--ink); }
.new-pill {
  display: inline-block;
  margin-left: .45rem;
  padding: .05rem .5rem;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-size: .68rem;
  letter-spacing: .06em;
  vertical-align: middle;
}

/* Home page: What's new on the left, Coming up on the right. Plain divs on
   purpose, since "body.themed section" would turn a section into a card. */
.home-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 0 0 2.25rem; }
.home-feed .feed-col { min-width: 0; display: flex; flex-direction: column; }
.home-feed .feed-heading {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .4rem;
}
.home-feed a.feed-more {
  display: block;
  text-align: center;
  margin-top: .8rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
}
.home-feed .feed-empty {
  margin: .7rem 0;
  padding: .9rem 1rem;
  border: 1px dashed var(--field-border, #7c8896);
  border-radius: 10px;
  background: var(--surface);
  line-height: 1.45;
  font-size: .92rem;
}
.home-feed .feed-empty a { font-weight: 700; color: var(--navy); }

/* Carousel: one card at a time. All cards share one grid cell, so the box is
   as tall as the tallest card and rows line up across both columns. */
.feed-carousel { display: flex; flex-direction: column; flex: 1; }
.feed-stage { display: grid; flex: 1; }
.feed-slide {
  grid-area: 1 / 1;
  margin: .7rem 0 .5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.feed-slide.is-active { opacity: 1; visibility: visible; }
.home-feed a.feed-slide:hover { transform: none; }
.feed-controls { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.feed-controls button.arrow {
  min-width: 44px; min-height: 44px; padding: 0;
  border: 1px solid var(--surface-border); border-radius: 999px;
  background: var(--btn-bg, #1f3a54); color: var(--btn-ink, #fff);
  font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer;
}
.feed-controls button.arrow:hover { background: var(--btn-bg-hover, #14263a); }
.feed-dots { display: flex; gap: .45rem; }
.feed-dots button {
  width: 14px; height: 14px; padding: 0; cursor: pointer;
  border: 1px solid var(--surface-border); border-radius: 50%; background: var(--btn-bg, #1f3a54);
}
.feed-dots button.on { background: var(--btn-on-bg, #facd32); }
@media (prefers-reduced-motion: reduce) { .feed-slide { transition: none; } }

/* Phones keep the two columns side by side, just smaller (Linn County Local's call: people
   can zoom in). Text is trimmed so a long post can't make the boxes huge. */
@media (max-width: 700px) {
  .home-feed { gap: .7rem; }
  .home-feed .feed-heading { font-size: .68rem; letter-spacing: .06em; }
  .home-feed a.new-item { padding: .5rem .55rem; margin: .5rem 0 .4rem; border-width: 3px; }
  .home-feed .new-item .tag { font-size: .58rem; letter-spacing: .03em; }
  .home-feed .new-item .what {
    font-size: .8rem; line-height: 1.25; margin: .1rem 0;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  }
  .home-feed .new-item .meta {
    font-size: .68rem; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .home-feed a.feed-more { font-size: .78rem; margin-top: .5rem; }
  .home-feed .feed-empty { font-size: .8rem; padding: .6rem .65rem; }
  .feed-controls { gap: .3rem; }
  .feed-controls button.arrow { min-width: 32px; min-height: 32px; font-size: 1.1rem; border-width: 2px; }
  .feed-dots { gap: .25rem; }
  .feed-dots button { width: 9px; height: 9px; border-width: 1.5px; }
}

@media (max-width: 360px) {
  .feed-controls button.arrow { min-width: 28px; min-height: 28px; }
  .feed-dots button { width: 8px; height: 8px; }
  .feed-dots { gap: .2rem; }
}
