/* Lupineo — base front-end styles for the blog / generic templates.
   The landing page is fully covered by landing.css (.lp scope). */

.wp-site-blocks a { text-underline-offset: 0.15em; }

/* Post content rhythm */
.wp-block-post-content > * { margin-block: 1.1em 0; }
.wp-block-post-content > :first-child { margin-block-start: 0; }
.wp-block-post-content h2 { margin-block-start: 1.8em; }
.wp-block-post-content h3 { margin-block-start: 1.5em; }

.wp-block-post-content img,
.wp-block-post-featured-image img { border-radius: 6px; }

.wp-block-post-content blockquote {
  margin: 1.6em 0;
  padding-left: 1.1em;
  border-left: 3px solid var(--wp--preset--color--amber);
  color: var(--wp--preset--color--navy-500);
}

.wp-block-post-content :where(code, kbd, samp) {
  background: var(--wp--preset--color--grey-100);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.wp-block-post-content pre {
  background: var(--wp--preset--color--navy);
  color: #eef1f8;
  padding: 1em 1.2em;
  border-radius: 8px;
  overflow-x: auto;
}
.wp-block-post-content pre code { background: none; padding: 0; }

/* Post list cards (archive / blog index) — picture left, headline + text
   right when a featured image is set; text-only posts just fill the row. */
.post-card { align-items: flex-start; }
.post-card__image {
  flex: 0 0 220px;
  margin: 0;
}
.post-card__image img { width: 220px; height: auto; object-fit: cover; }
.post-card__body { flex: 1 1 280px; min-width: 0; }

@media (max-width: 600px) {
  .post-card__image { flex-basis: 100%; }
  .post-card__image img { width: 100%; }
}

/* Pagination + nav links */
.wp-block-query-pagination { gap: 0.5em 1em; }
.wp-block-post-navigation-link { font-size: 14px; }

/* Search field */
.wp-block-search__input {
  border: 1px solid var(--wp--preset--color--grey-200);
  border-radius: 6px;
}
.wp-block-search__button {
  border-radius: 6px;
}

/* Comments */
.wp-block-comments { font-size: 15px; }
.wp-block-comment-author-name a { color: var(--wp--preset--color--navy); }

/* =========================== masthead (blog / generic templates) =======
   The landing page has its own header (landing.css, .lp scope). This is the
   sticky header for every other view: navy bar in normal flow that pins to
   the top and picks up a shadow once the page is scrolled (see header.js). */

/* Let the sticky <header> out of the short template-part wrapper so it stays
   pinned for the whole page, not just its own height. */
.wp-block-template-part:has(> .masthead) { display: contents; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}
.admin-bar .masthead { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .masthead { top: 46px; }
}
.masthead.is-stuck {
  box-shadow: 0 1px 3px rgba(42, 50, 84, 0.25), 0 10px 28px rgba(42, 50, 84, 0.18);
}

.masthead__inner { align-items: center; flex-wrap: nowrap; }
.masthead__brand { align-items: center; flex-shrink: 0; }
.masthead__end { align-items: center; flex-wrap: nowrap; }

.masthead__logo { margin: 0; line-height: 0; flex-shrink: 0; }
.masthead__logo a { display: block; }
.masthead__logo img { display: block; height: 20px; width: auto; }

.masthead__chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  color: var(--wp--preset--color--amber-100);
}

.masthead__cta.wp-block-button { margin: 0; flex-shrink: 0; }
.masthead__cta .wp-block-button__link { padding: 9px 18px; font-size: 14px; font-weight: 600; }

@media (max-width: 1040px) {
  .masthead__chip { display: none; }
}
/* Below the nav's overlay breakpoint the header is just logo + menu toggle. */
@media (max-width: 600px) {
  .masthead__end .wp-block-buttons { display: none; }
}
