/* ==========================================================================
   Neoretina blog — listing (/blog/), category archives and single posts.
   Builds on home.css + inner.css tokens and components.
   ========================================================================== */

/* ---------- Hero meta line on posts ---------- */
.nr-pagehero--blog h1 { max-width: 30ch; }
.nr-postmeta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; color: rgba(255,255,255,.82); font-size: .95rem; }
.nr-postmeta > * { display: inline-flex; align-items: center; gap: 8px; }
.nr-postmeta svg { width: 17px; height: 17px; color: #8fd6dc; }

/* ---------- Layout: content left, sidebar right ---------- */
@media (min-width: 1024px) {
  .nr-page__grid.nr-blog-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .nr-bloglist .nr-page__grid.nr-blog-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .nr-page__grid > .nr-side.nr-blogside--post { position: sticky; top: calc(var(--nr-header-h) + 24px); }
}
@media (min-width: 1240px) {
  .nr-bloglist .nr-page__grid.nr-blog-grid { gap: 36px; }
}

/* ---------- Listing cards: 3 per row beside the banner ---------- */
.nr-bgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 2.4vw, 30px); }
@media (min-width: 640px) { .nr-bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .nr-bloglist .nr-bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .nr-bloglist .nr-bcard__body { padding: 14px 16px 16px; }
  .nr-bloglist .nr-bcard__title { margin: 0 0 8px; font-size: 1rem; line-height: 1.35; }
  .nr-bloglist .nr-bcard__excerpt { margin: 0 0 12px; font-size: .9rem; line-height: 1.55; -webkit-line-clamp: 3; }
  .nr-bloglist .nr-bcard__foot { padding: 10px 16px; }
  .nr-bloglist .nr-bcard__badge { top: 10px; right: 10px; padding: 4px 10px; }
}
@media (min-width: 960px) { .nr-bgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nr-bgrid > li { display: flex; min-width: 0; }
.nr-bcard {
  position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--nr-line); border-radius: var(--nr-radius);
  box-shadow: 0 1px 2px rgba(17,19,53,.04), 0 18px 40px -32px rgba(17,19,53,.35);
  transition: transform .3s var(--nr-ease), box-shadow .3s var(--nr-ease), border-color .3s;
}
.nr-bcard:hover { transform: translateY(-4px); border-color: var(--nr-purple-100); box-shadow: var(--nr-shadow-hover); }
.nr-bcard__media { position: relative; display: block; aspect-ratio: 570 / 350; overflow: hidden; background: var(--nr-slate-50); }
.nr-bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--nr-ease); }
.nr-bcard:hover .nr-bcard__media img { transform: scale(1.04); }
.nr-bcard__badge {
  position: absolute; top: 14px; right: 14px; padding: 5px 12px; border-radius: 999px;
  font: 700 .6875rem/1.2 var(--nr-font-head); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--nr-teal-deep); box-shadow: 0 6px 16px -6px rgba(17,19,53,.45);
}
.nr-bcard__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.2vw, 28px); }
.nr-bcard__title { margin: 0 0 12px; font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem); line-height: 1.4; font-weight: 700; }
.nr-bcard__title a { color: var(--nr-ink); text-decoration: none; }
.nr-bcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.nr-bcard__title a:hover { color: var(--nr-purple); }
.nr-bcard__excerpt { margin: 0 0 18px; color: var(--nr-muted); font-size: .975rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.nr-bcard__more { position: relative; z-index: 2; margin-top: auto; align-self: flex-start; font: 700 .8125rem/1 var(--nr-font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--nr-slate); text-decoration: none; padding: 6px 0; border-bottom: 2px solid var(--nr-teal-100); transition: color .2s, border-color .2s; }
.nr-bcard__more:hover { color: var(--nr-purple); border-color: var(--nr-purple); }
.nr-bcard__foot { padding: 14px clamp(20px, 2.2vw, 28px); border-top: 1px solid var(--nr-line); font-size: .8125rem; color: var(--nr-muted); }
.nr-bcard :focus-visible { outline: 3px solid var(--nr-purple); outline-offset: 3px; }
.nr-blog-empty { padding: 40px; text-align: center; color: var(--nr-muted); border: 1px dashed var(--nr-line); border-radius: var(--nr-radius); }

/* ---------- Pagination ---------- */
.nr-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: clamp(32px, 4vw, 48px); }
.nr-pages ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.nr-pages__num, .nr-pages__step, .nr-pages__gap {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 12px; font: 700 .95rem/1 var(--nr-font-head); color: var(--nr-slate); text-decoration: none;
}
.nr-pages a { background: #fff; border: 1px solid var(--nr-line); transition: border-color .2s, color .2s, background-color .2s; }
.nr-pages a:hover { border-color: var(--nr-purple); color: var(--nr-purple); }
.nr-pages [aria-current="page"] { background: var(--nr-purple); color: #fff; border: 1px solid var(--nr-purple); }
.nr-pages__step svg { width: 16px; height: 16px; }
@media (max-width: 520px) { .nr-pages__step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Listing sidebar ---------- */
.nr-blogside { align-content: start; }
.nr-blogad { display: block; border-radius: var(--nr-radius-lg); overflow: hidden; box-shadow: 0 18px 40px -30px rgba(17,19,53,.4); }
.nr-blogad img { width: 100%; height: auto; display: block; }
.nr-blogside .nr-side__nav a { justify-content: space-between; }
.nr-blogside .nr-side__nav small { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--nr-slate-50); color: var(--nr-muted); font-size: .75rem; text-align: center; }
.nr-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nr-recent a { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 12px; text-decoration: none; transition: background-color .2s; }
.nr-recent a:hover { background: var(--nr-slate-50); }
.nr-recent img { width: 88px; height: 56px; object-fit: cover; border-radius: 10px; }
.nr-recent strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 .9rem/1.35 var(--nr-font-head); color: var(--nr-ink); }
.nr-recent small { display: block; margin-top: 3px; font-size: .75rem; color: var(--nr-muted); }

/* ---------- Single post ---------- */
.nr-article__hero { margin: 0 0 clamp(26px, 3vw, 38px); border-radius: var(--nr-radius-lg); overflow: hidden; box-shadow: 0 30px 60px -44px rgba(17,19,53,.55); }
.nr-article__hero img { width: 100%; height: auto; display: block; }
.nr-article__body img { max-width: 100%; height: auto; border-radius: 14px; }
.nr-article__body figure { margin: 1.6em 0; max-width: 100%; }
.nr-article__body figcaption, .nr-article__body .wp-caption-text { margin-top: 8px; font-size: .875rem; color: var(--nr-muted); text-align: center; }
.nr-article__body .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.nr-article__body .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 45%; }
.nr-article__body .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 45%; }
.nr-article__body iframe { max-width: 100%; border: 0; border-radius: 14px; }
.nr-article__body .wp-block-embed__wrapper iframe, .nr-article__body iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.nr-article__body .nr-table { overflow-x: auto; margin: 1.4em 0; }
.nr-article__body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.nr-article__body th, .nr-article__body td { padding: 10px 12px; border: 1px solid var(--nr-line); text-align: left; vertical-align: top; }
.nr-article__body th { background: var(--nr-slate-50); color: var(--nr-ink); }
.nr-article__body ol > li > h3, .nr-article__body ol > li > h4 { margin-top: 0; }
.nr-article__body::after { content: ""; display: table; clear: both; }
@media (max-width: 640px) { .nr-article__body .alignright, .nr-article__body .alignleft { float: none; max-width: 100%; margin: 1em 0; } }

/* ---------- Author under the featured image ---------- */
.nr-author { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 0 0 clamp(26px, 3vw, 36px); padding: 18px 20px; border: 1px solid var(--nr-line); border-radius: var(--nr-radius); background: linear-gradient(180deg, #fff, var(--nr-slate-50)); }
.nr-author__img { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center 12%; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--nr-teal-100), 0 8px 20px -10px rgba(17,19,53,.4); }
.nr-author__img--initials { display: grid; place-items: center; font: 800 1.35rem/1 var(--nr-font-head); color: #fff; background: linear-gradient(135deg, var(--nr-purple), var(--nr-teal)); }
.nr-author__text { display: grid; gap: 3px; min-width: 0; flex: 1 1 220px; }
.nr-author__label { font: 700 .6875rem/1.2 var(--nr-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--nr-teal-deep); }
.nr-author__name { font-family: var(--nr-font-head); font-size: 1.2rem; line-height: 1.3; color: var(--nr-ink); }
.nr-author__role, .nr-author__quals, .nr-author__reg { font-size: .9rem; color: var(--nr-muted); line-height: 1.4; }
.nr-author__reg { font-weight: 700; color: var(--nr-teal-deep); }
.nr-author__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .875rem; color: var(--nr-muted); }
.nr-author__meta > * { display: inline-flex; align-items: center; gap: 6px; }
.nr-author__meta svg { width: 16px; height: 16px; color: var(--nr-teal); }
@media (min-width: 640px) { .nr-author__meta { flex-direction: column; align-items: flex-end; gap: 4px; } }

/* ---------- FAQ accordion ---------- */
.nr-faq { margin-top: clamp(36px, 4vw, 52px); }
.nr-prose .nr-faq h2 { margin-top: 0; text-align: left; }
.nr-faq__list { display: grid; gap: 12px; }
.nr-faq__item { border: 1px solid var(--nr-line); border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.nr-faq__item[open] { border-color: var(--nr-purple-100); box-shadow: 0 14px 34px -24px rgba(17,19,53,.35); }
.nr-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; font-family: var(--nr-font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.45; color: var(--nr-ink); }
.nr-faq__item summary::-webkit-details-marker { display: none; }
.nr-faq__item summary:hover { color: var(--nr-purple); }
.nr-faq__item summary:focus-visible { outline: 3px solid var(--nr-purple); outline-offset: -3px; border-radius: 16px; }
.nr-faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--nr-purple-50); transition: background-color .2s, transform .3s var(--nr-ease); }
.nr-faq__icon::before, .nr-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--nr-purple); transition: transform .3s var(--nr-ease); }
.nr-faq__icon::after { transform: rotate(90deg); }
.nr-faq__item[open] .nr-faq__icon { background: var(--nr-purple); }
.nr-faq__item[open] .nr-faq__icon::before, .nr-faq__item[open] .nr-faq__icon::after { background: #fff; }
.nr-faq__item[open] .nr-faq__icon::after { transform: rotate(0deg); }
.nr-faq__a { padding: 0 20px 18px; color: var(--nr-text); }
.nr-faq__a p { margin: 0 0 .8em; }
.nr-faq__a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) { .nr-faq__item[open] .nr-faq__a { animation: nr-faq-in .3s var(--nr-ease); } }
@keyframes nr-faq-in { from { opacity: 0; transform: translateY(-4px); } }

.nr-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--nr-line); }
.nr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nr-tags > span, .nr-share > span { font: 700 .75rem/1 var(--nr-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--nr-muted); margin-right: 4px; }
.nr-prose a.nr-tag { padding: 7px 14px; border-radius: 999px; background: var(--nr-purple-50); color: var(--nr-purple-deep); font-size: .875rem; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.nr-prose a.nr-tag:hover { background: var(--nr-purple-100); }
.nr-share { display: flex; align-items: center; gap: 8px; }
.nr-prose .nr-share a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--nr-line); color: var(--nr-slate); text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.nr-prose .nr-share a:hover { background: var(--nr-slate); border-color: var(--nr-slate); color: #fff; }
.nr-share svg { width: 17px; height: 17px; }

/* ---------- Sidebar enquiry form ---------- */
.nr-blogform { padding: clamp(22px, 2.4vw, 30px); border-top: 4px solid var(--nr-teal); }
.nr-blogform__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 .75rem/1.2 var(--nr-font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--nr-teal-deep); }
.nr-blogform__eyebrow svg { width: 18px; height: 18px; }
.nr-formcard h2.nr-blogform__title { font-size: 1.45rem; margin-bottom: 6px; }
.nr-blogform > p { margin-bottom: 18px; }
.nr-blogform .nr-form { gap: 13px; }
.nr-blogform .nr-field input, .nr-blogform .nr-field textarea { min-height: 46px; }
.nr-blogform .nr-field textarea { min-height: 88px; }
.nr-blogform .nr-btn { width: 100%; justify-content: center; }
.nr-form__status { margin: 0; font-size: .9rem; color: #b42318; }
.nr-form__status:empty { display: none; }
.nr-blogform__done { text-align: center; padding: 18px 4px 6px; }
.nr-blogform__done:focus { outline: none; }
.nr-blogform__tick { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--nr-teal-50); color: var(--nr-teal-deep); margin-bottom: 12px; }
.nr-blogform__tick svg { width: 26px; height: 26px; }
.nr-blogform__alt { margin: 18px 0 0 !important; padding-top: 16px; border-top: 1px dashed var(--nr-line); font-size: .9rem; color: var(--nr-muted); }
.nr-blogform__alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--nr-ink); text-decoration: none; }
.nr-blogform__alt a:hover { color: var(--nr-purple); }
.nr-blogform__alt svg { width: 18px; height: 18px; color: #25d366; }

/* ---------- Related posts ---------- */
.nr-related__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 36px); }
.nr-related__head .nr-heading { margin: 0; }

/* ---------- Admin preview bar ---------- */
.nr-preview-bar { position: sticky; top: 0; z-index: 120; padding: 10px 16px; text-align: center; font-size: .9rem; background: #fff4d6; color: #5c4400; border-bottom: 1px solid #f1d58a; }
.nr-preview-bar a { color: inherit; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .nr-bcard, .nr-bcard__media img { transition: none; }
  .nr-bcard:hover { transform: none; }
  .nr-bcard:hover .nr-bcard__media img { transform: none; }
}
