/* Christmas Days Left: styles for WordPress posts, pages, the blog and archives.
   Layout: festive red header band, then the article as a cream "paper" sheet on the evergreen band. */

/* ---------- Hero extras ---------- */
.hero .answer p { margin: 0; }
.post-meta { margin: 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.crumbs li[aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- The article sheet ---------- */
.entry {
  background: var(--cream); color: var(--ink);
  border-radius: 18px; padding: clamp(22px, 4vw, 48px);
  max-width: 820px; box-shadow: 0 18px 44px rgba(0,0,0,.25);
  border-top: 8px solid var(--red);
}
.entry-thumb { margin: calc(-1 * clamp(22px, 4vw, 48px)) calc(-1 * clamp(22px, 4vw, 48px)) 28px; }
.entry-thumb img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: 10px 10px 0 0; }
.entry-content { font-size: 1.08rem; line-height: 1.75; overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 1.1em; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6 {
  font-family: var(--display); font-weight: 400; color: var(--red-deep); line-height: 1.2; text-wrap: balance; margin: 1.6em 0 .5em;
}
.entry h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.entry h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); color: var(--green); }
.entry h4 { font-size: 1.2rem; }
.entry-content > h2:first-child, .entry-content > h3:first-child { margin-top: 0; }
.entry a { color: var(--red); text-decoration-thickness: 1px; }
.entry a:hover { color: var(--red-deep); }
.entry strong { color: #1d0b0d; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry li::marker { color: var(--red); }
.entry hr, .entry .wp-block-separator { border: 0; height: 10px; margin: 2em 0; border-radius: 99px; background: repeating-linear-gradient(-45deg, var(--red) 0 10px, #fff 10px 20px); opacity: .9; }
.entry blockquote, .entry .wp-block-quote {
  margin: 1.6em 0; padding: 16px 22px; border-left: 6px solid var(--gold); background: #fbecd0; border-radius: 0 12px 12px 0;
  font-family: var(--display); font-size: 1.25rem; line-height: 1.5; color: var(--red-deep);
}
.entry blockquote cite, .entry .wp-block-quote cite { display: block; margin-top: 8px; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); font-style: normal; }
.entry .wp-block-pullquote { border-top: 4px solid var(--red); border-bottom: 4px solid var(--red); padding: 1.4em 0; text-align: center; }
.entry .wp-block-pullquote blockquote { border: 0; background: none; }
.entry img { max-width: 100%; height: auto; border-radius: 10px; }
.entry figure { margin-inline: 0; }
.entry figcaption, .entry .wp-element-caption { font-size: .85rem; color: #6a5557; text-align: center; margin-top: 8px; }
.entry pre, .entry code { font-family: var(--mono); font-size: .9em; background: #f3e4c6; border-radius: 6px; }
.entry code { padding: 1px 6px; }
.entry pre { padding: 14px 16px; overflow-x: auto; }
.entry pre code { padding: 0; background: none; }
.entry table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.entry .wp-block-table { overflow-x: auto; }
.entry th, .entry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(42,18,20,.12); }
.entry thead th { background: var(--red-deep); color: #fff; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.entry .wp-block-button__link, .entry .wp-element-button {
  display: inline-block; background: var(--red); color: #fff !important; text-decoration: none; border-radius: 10px; padding: 12px 20px; font-weight: 600;
}
.entry .wp-block-button__link:hover, .entry .wp-element-button:hover { background: var(--green); }
.entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--red) !important; border: 2px solid var(--red); }
.entry iframe, .entry video, .entry embed { max-width: 100%; }
.entry .wp-block-embed__wrapper iframe { width: 100%; }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry .aligncenter { margin-inline: auto; text-align: center; }
.entry .alignwide, .entry .alignfull { margin-inline: 0; }
.entry .has-text-align-center { text-align: center; }
.entry .has-text-align-right { text-align: right; }
.entry::after { content: ""; display: table; clear: both; }
.entry .wp-block-details { background: #fbecd0; border-radius: 10px; padding: 12px 16px; }
.entry .wp-block-details summary { font-weight: 600; cursor: pointer; }

/* Footer of the post: categories and tags as chips */
.entry-footer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px dashed rgba(42,18,20,.2); }
.entry-footer a { background: var(--green); color: #fff; text-decoration: none; border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 500; }
.entry-footer a[rel~="tag"] { background: #f3e4c6; color: var(--red-deep); }
.entry-footer a:hover { background: var(--red); color: #fff; }
.edit-link { margin: 20px 0 0; font-size: .85rem; }
.page-links { margin-top: 20px; font-weight: 600; }

/* Previous / next */
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 820px; margin-top: 18px; }
.post-nav a { display: block; height: 100%; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--snow); text-decoration: none; font-family: var(--display); font-size: 1.1rem; line-height: 1.3; }
.post-nav a:hover { border-color: var(--gold); color: var(--gold-soft); }
.post-nav span { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.post-nav .next { grid-column: 2; text-align: right; }

/* ---------- Post cards ---------- */
.post-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-card { padding: 0 0 18px; overflow: hidden; }
.post-card > *:not(.post-card-img) { margin-inline: 20px; }
.post-card .meta { margin-top: 16px; }
.post-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 0; max-width: 100%; }
.band .more-sub, .more-sub { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 34px 0 14px; color: var(--gold-soft); }

/* Pagination */
.pagination { margin-top: 26px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-block; min-width: 42px; text-align: center; padding: 9px 12px; border-radius: 10px; background: rgba(0,0,0,.2); border: 1px solid var(--line); color: var(--snow); text-decoration: none; }
.pagination .page-numbers.current { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.pagination a.page-numbers:hover { border-color: var(--gold); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Search form inside an empty list */
.entry .search-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.entry .search-form label { flex: 1 1 220px; }
.entry .search-field { width: 100%; padding: 10px 14px; border-radius: 10px; border: 2px solid rgba(42,18,20,.15); font: inherit; color: var(--ink); background: #fff; }
.entry .search-submit { background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 600px) {
  .entry .alignleft, .entry .alignright { float: none; margin: 0 0 1em; max-width: 100%; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: 1; text-align: left; }
}
