/* Kvitta blog — the daylight section.
   The blog joins the marketing world: slate paper, hairline rules,
   one orange (#c2410c) reserved for noon — the conversion step.
   Tokens come from home.css/application.css; no accent override here. */

::selection {
  background: rgba(194, 65, 12, 0.16);
}

/* ---------------------------------------------------------------- index */

.blog-index {
  font-family: var(--font-main);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 46rem);
  min-height: 100vh;
}

.blog-breadcrumbs {
  margin: 0 auto;
  max-width: 73rem;
  padding: 1.5rem 1rem 0;
}

.blog-breadcrumbs__list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.blog-breadcrumbs a {
  color: #64748b;
  transition: color 0.15s ease;
}

.blog-breadcrumbs a:hover {
  color: var(--accent);
}

.blog-breadcrumbs a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.22);
}

.blog-breadcrumbs__sep {
  color: #cbd5e1;
}

.blog-breadcrumbs__current {
  color: #0f172a;
  font-weight: 650;
}

.blog-index-head {
  padding-top: 2.25rem;
}

.blog-index-title {
  max-width: 44ch;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.blog-index-lead {
  margin-top: 1rem;
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
}

/* featured route */
.blog-featured {
  display: grid;
  gap: 2rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

@media (min-width: 1024px) {
  .blog-featured {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.blog-featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #0f172a;
}

.blog-meta-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.blog-meta-sep {
  color: #cbd5e1;
}

.blog-featured__lead {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
}

.blog-featured__points ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-featured__points li {
  display: flex;
  align-items: start;
  gap: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

.blog-featured__points li svg {
  flex: 0 0 auto;
  margin-top: 0.3rem;
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
}

.blog-featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* plan card */
.blog-map {
  align-self: start;
  padding: 1.3rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.06);
}

.blog-map__cap {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}

.blog-map ol {
  display: grid;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-map__row {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.68rem 0;
  border-top: 1px solid #f1f5f9;
}

.blog-map__row:first-child {
  border-top: 0;
  padding-top: 0.15rem;
}

.blog-map__no {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 650;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.blog-map__text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #475569;
}

.blog-map__row--link:hover .blog-map__text {
  color: #0f172a;
}

.blog-map__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  transition: color 0.15s ease;
}

.blog-map__link:hover {
  color: var(--accent);
}

.blog-map__link:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.22);
}

.blog-map__row--link {
  text-decoration: none;
  transition: background 0.15s ease;
}

.blog-map__row--link:hover .blog-map__no {
  color: var(--accent);
}

/* cards grid */
.blog-index-subtitle {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.blog-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  display: block;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.1);
}

.blog-card:focus-visible {
  outline: none;
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.06), 0 0 0 3px rgba(194, 65, 12, 0.22);
}

.blog-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}

.blog-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.blog-card__meta s,
.blog-card__meta time {
  font-weight: 450;
}

.blog-card__meta .blog-card__sep {
  width: 3px;
  height: 3px;
  border-radius: 9999px;
  background: #cbd5e1;
}

.blog-card__title {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.32;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: #0f172a;
}

.blog-card .blog-card__title {
  transition: color 0.15s ease;
}

.blog-card:hover .blog-card__title {
  color: #1e293b;
}

.blog-card__excerpt {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid #f1f5f9;
}

.blog-card__time {
  font-size: 0.8rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.blog-card__read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.blog-card__read svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s ease;
}

.blog-card:hover .blog-card__read {
  color: var(--accent);
}

.blog-card:hover .blog-card__read svg {
  transform: translateX(2px);
}

/* ---------------------------------------------------------------- article */

.blog-article {
  font-family: var(--font-main);
  background: #f8fafc;
}

.blog-article ::selection {
  background: rgba(194, 65, 12, 0.16);
}

/* Let the guide reflow naturally without isolated final words. */
.blog-article--route-map :is(p, li, figcaption, .article-screens__text) {
  text-wrap: pretty;
}

.blog-article--route-map :is(.article-title, h2, .blog-route__title, .blog-faq__question > span, .article-screens__name, .blog-card__excerpt) {
  text-wrap: balance;
}

.blog-article--route-map .article-body {
  container-type: inline-size;
}

.blog-article--route-map .blog-cta__title {
  max-width: none;
}

.blog-layout {
  padding-top: 2rem;
}

@media (min-width: 1024px) {
  .blog-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3.75rem;
    align-items: start;
  }
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.35rem);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.article-lead {
  margin-top: 1.25rem;
  max-width: 60ch;
  font-size: 1.125rem;
  line-height: 1.65;
  color: #475569;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.article-source {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
}

.article-source a {
  color: #c2410c;
  text-decoration: underline;
  text-decoration-color: #fdba74;
  text-underline-offset: 3px;
}

.article-source a:hover {
  text-decoration-color: currentColor;
}

/* faq */
.blog-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.blog-faq h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.blog-faq__row {
  margin-top: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.blog-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #0f172a;
}

.blog-faq__question::-webkit-details-marker {
  display: none;
}

.blog-faq__chevron {
  flex: 0 0 auto;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.blog-faq__row[open] .blog-faq__chevron {
  transform: rotate(180deg);
}

.blog-faq__answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

/* key points */
.blog-keypoints {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.05);
}

.blog-keypoints__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.blog-keypoints__intro {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
}

.blog-keypoints ul {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-keypoints li {
  display: flex;
  align-items: start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.blog-keypoints li svg {
  flex: 0 0 auto;
  margin-top: 0.3rem;
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
}

/* questionnaire screen map */
.article-screens {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #f8fafc;
  overflow: hidden;
}

.article-screens li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.article-screens li + li {
  border-top: 1px solid #f1f5f9;
}

.article-screens__no {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #c2410c;
}

.article-screens__content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.article-screens__name {
  font-weight: 650;
  color: #0f172a;
}

.article-screens__text {
  color: #475569;
}

@media (min-width: 640px) {
  .article-screens__content {
    flex-direction: row;
    align-items: baseline;
    gap: 1.1rem;
  }

  .article-screens__name {
    flex: 0 0 15rem;
  }
}

/* Size the screen map to the article column, including beside the desktop TOC. */
.blog-article--route-map .article-screens__content {
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-article--route-map .article-screens__name {
  flex: none;
}

@container (min-width: 38rem) {
  .blog-article--route-map .article-screens__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1rem;
  }
}

/* mobile toc */
.blog-toc {
  margin-top: 1.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
}

.blog-toc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  list-style: none;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 650;
}

.blog-toc > summary::-webkit-details-marker {
  display: none;
}

.blog-toc > summary:focus-visible {
  outline: 3px solid rgba(194, 65, 12, 0.25);
  outline-offset: 2px;
  border-radius: 0.9rem;
}

.blog-toc > summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  rotate: 45deg;
  transition: rotate 0.15s ease;
}

.blog-toc[open] > summary::after {
  rotate: 225deg;
}

.blog-toc ol {
  display: grid;
  margin: 0;
  padding: 0.25rem 1rem 0.8rem;
  list-style: none;
}

.blog-toc li + li {
  border-top: 1px dashed #e2e8f0;
}

.blog-toc a {
  display: block;
  padding: 0.75rem 0;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.4;
}

.blog-toc a:hover {
  color: var(--accent);
}

.blog-toc a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.22);
}

/* route rail */
.blog-route {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.blog-route__nav {
  position: relative;
}

.blog-route__cap {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}

.blog-route__track {
  position: absolute;
  left: 16px;
  top: 2.15rem;
  bottom: 1.6rem;
  width: 2px;
  border-radius: 9999px;
  background: #e2e8f0;
}

.blog-route__beam {
  position: absolute;
  left: 16px;
  width: 2px;
  border-radius: 9999px;
  transform: scaleY(var(--beam-p, 0));
  transform-origin: top;
  background: #0f172a;
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.45s ease,
    opacity 0.3s ease;
  will-change: transform;
}

.blog-route__beam.is-visible {
  opacity: 1;
}

.blog-route__beam.is-noon {
  background: var(--accent);
}

.blog-route ol {
  display: grid;
  gap: 0.1rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-route__link {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: start;
  padding: 0.5rem 0;
  font-size: 0.84rem;
  line-height: 1.38;
  color: #64748b;
  transition: color 0.15s ease;
}

.blog-route__no {
  display: block;
  width: 2.2rem;
  align-self: stretch;
  padding-top: 0.42rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  background: #f8fafc;
  transition: color 0.15s ease;
}

.blog-route__title {
  min-width: 0;
}

.blog-route__link:hover {
  color: #0f172a;
}

.blog-route__link.is-active {
  color: #0f172a;
}

.blog-route__link.is-active .blog-route__no {
  color: #0f172a;
}

.blog-route__item.is-noon .blog-route__link {
  color: var(--accent);
}

.blog-route__item.is-noon .blog-route__link.is-active {
  color: var(--accent-strong);
}

.blog-route__item.is-noon .blog-route__no {
  color: var(--accent);
}

.blog-route__cta {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.25s ease, transform 0.25s ease, clip-path 0.4s ease;
}

.blog-route__cta.is-visible {
  clip-path: inset(-16px);
  opacity: 1;
  transform: none;
}

@supports not (clip-path: inset(-1px)) {
  .blog-route__cta.is-visible {
    clip-path: none;
  }
}

.blog-route__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.2rem 0 0.35rem 2.2rem;
  padding: 0.32rem 0.7rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 650;
  box-shadow: 0 4px 10px rgba(154, 52, 18, 0.2);
  transition: filter 0.15s ease;
}

.blog-route__cta-link:hover {
  filter: brightness(1.05);
}

.blog-route__cta-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.3);
}

.blog-route__link:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.22);
}

/* text body */
.article-body {
  max-width: 70ch;
  margin: 2.5rem auto 0;
  font-size: 1.06rem;
  line-height: 1.78;
  color: #334155;
}

.article-section {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.article-section + .article-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid #e2e8f0;
}

.article-section:first-child {
  margin-top: 0;
}

.article-section > p:first-child {
  font-size: 1.14rem;
  line-height: 1.75;
  color: #1e293b;
}

.article-section h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #0f172a;
}

.article-section p {
  margin: 1.05rem 0 0;
}

.article-section strong {
  color: #0f172a;
  font-weight: 650;
}

.article-section ul {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.article-section ul li {
  position: relative;
  padding-left: 1.45rem;
  line-height: 1.65;
}

.article-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(203, 213, 225, 0.28);
}

.article-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(194, 65, 12, 0.4);
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
  transition: text-decoration-color 0.15s ease;
}

.article-section a:hover {
  text-decoration-color: currentColor;
}

.article-section a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.22);
}

/* figures: flat framed plates, no glow — trimmed canvases, true aspect */
.article-figure-wrap {
  margin: 1.6rem 0 1rem;
}

.article-figure {
  position: relative;
  width: min(100%, 28rem);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
}

.article-figure__tag {
  position: absolute;
  z-index: 1;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.22rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  pointer-events: none;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure__caption {
  padding: 0.8rem 1rem 0.9rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
}

/* Route-map spot plates stay legible without turning every section into a full viewport. */
.blog-article--route-map .article-figure-wrap {
  margin: 1.35rem 0 0.85rem;
}

.blog-article--route-map .article-figure {
  width: min(100%, 26rem);
  margin-inline: auto;
  border-radius: 0.85rem;
}

.blog-article--route-map .article-figure__caption {
  padding: 0.7rem 0.85rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 639.98px) {
  .blog-article--route-map .article-figure-wrap {
    margin: 1.2rem 0 0.7rem;
  }

  .blog-article--route-map .article-figure {
    width: min(100%, 18rem);
  }

  .article-figure-wrap {
    margin: 1.35rem 0 0.85rem;
  }
}

/* pull quote: hairline rule, no colored bar */
.article-quote {
  margin: 2.5rem 0;
  padding: 1.6rem 0.25rem;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.article-quote blockquote {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.6;
  color: #1e293b;
  text-wrap: balance;
}

.article-quote figcaption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-style: normal;
}

.article-quote__author {
  font-weight: 650;
  color: #0f172a;
}

.article-quote__role {
  margin-left: 0.45rem;
  color: #64748b;
}

/* receipt inlay — the noon */
.blog-receipt {
  display: grid;
  gap: 1.4rem;
  margin: 2.25rem 0 0;
  padding: 1.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.05);
}

@media (min-width: 640px) {
  .blog-receipt {
    grid-template-columns: minmax(13rem, 15.5rem) minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
    padding: 1.6rem;
  }
}

.blog-receipt__paper {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
}

.blog-receipt__zoom-link {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  font: inherit;
  overflow: hidden;
  border-radius: 0.72rem;
  cursor: zoom-in;
}

.blog-receipt__zoom-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.22);
}

.blog-receipt__zoom-link img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-receipt__zoom {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  color: #475569;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.blog-receipt__zoom svg {
  width: 0.9rem;
  height: 0.9rem;
}

.blog-receipt__zoom-link:hover .blog-receipt__zoom {
  border-color: rgba(194, 65, 12, 0.4);
  color: var(--accent);
}



/* Mobile: crop receipt to keep plate legible (3:1 shows Date → 50.00 GEL band);
   full image available via lightbox dialog. Verified 50.00 GEL stays visible. */
@media (max-width: 639.98px) {
  .blog-receipt__zoom-link img {
    aspect-ratio: 3 / 1;
    object-fit: cover;
    object-position: 50% 30%;
  }
}

/* lightbox dialog */
.blog-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(92vw, 60rem);
  padding: 0.6rem;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.35);
}

.blog-lightbox::backdrop {
  background: rgba(2, 6, 23, 0.72);
}

.blog-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 0.6rem;
}

.blog-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  background: rgba(2, 6, 23, 0.55);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.blog-lightbox__close:hover {
  background: rgba(2, 6, 23, 0.8);
}

.blog-lightbox__close svg {
  width: 1rem;
  height: 1rem;
}

.blog-lightbox__caption {
  margin: 0.6rem 0.35rem 0.2rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
}

.blog-receipt__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.blog-receipt__text {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
}

.blog-receipt__note {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
}

.blog-receipt__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

/* conclusion */
.blog-conclusion {
  margin-top: 4rem;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.05);
}

@media (min-width: 640px) {
  .blog-conclusion {
    padding: 2.25rem;
  }
}

.blog-conclusion__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: #0f172a;
}

.blog-conclusion__body {
  margin-top: 1.1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

.blog-conclusion__body p + p {
  margin-top: 0.9rem;
}

.blog-conclusion__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid #f1f5f9;
  list-style: none;
}

.blog-conclusion__actions li {
  display: flex;
  align-items: start;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}

.blog-conclusion__actions li svg {
  flex: 0 0 auto;
  margin-top: 0.3rem;
  width: 1rem;
  height: 1rem;
  color: #94a3b8;
}

/* end CTA — daylight exit */
.blog-cta {
  margin-top: 4rem;
  padding: 2.5rem 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background:
    radial-gradient(46rem 30rem at 88% -12%, rgba(255, 237, 213, 0.85), rgba(255, 237, 213, 0) 58%),
    #fff;
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.05);
  text-align: center;
}

@media (min-width: 640px) {
  .blog-cta {
    padding: 3.25rem 2.5rem;
  }
}

.blog-cta__title {
  max-width: 20ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #0f172a;
}

.blog-cta__text {
  max-width: 52ch;
  margin: 1rem auto 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #475569;
}

.blog-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

/* related */
/* related cards live inside the article column: two columns max */
.blog-grid.blog-grid--related {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .blog-grid.blog-grid--related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.blog-related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.blog-related__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.blog-related__desc {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
}

.blog-related__all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 650;
  color: #334155;
  transition: color 0.15s ease;
}

.blog-related__all:hover {
  color: var(--accent);
}

.blog-related__all:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.22);
}

.blog-related__all svg {
  width: 1rem;
  height: 1rem;
}

/* mobile progress beam */
.blog-beam {
  display: none;
  position: fixed;
  z-index: 30;
  top: calc(var(--header-h) - 1px);
  right: 0;
  left: 0;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.blog-beam.is-visible {
  transform: none;
  opacity: 1;
}

.blog-beam__track {
  display: block;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
}

.blog-beam__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: #0f172a;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-beam__step {
  margin: 0.4rem 1rem 0 0;
  padding: 0.25rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(6px);
}

@media (max-width: 1023.98px) {
  .blog-beam {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-route__beam,
  .blog-route__cta,
  .blog-beam__fill,
  .blog-beam {
    transition: none;
  }
}

/* print */
@media print {
  header,
  footer,
  .blog-breadcrumbs,
  .blog-route,
  .blog-toc,
  .blog-beam,
  .blog-cta,
  .blog-related__head {
    display: none !important;
  }

  .blog-article,
  .blog-index {
    background: #fff;
  }

  .article-body,
  .article-title,
  .article-lead {
    color: #111;
  }

  .blog-article,
  .article-body {
    font-size: 0.95rem;
  }

  .article-figure,
  .article-quote,
  .blog-receipt,
  .blog-conclusion {
    break-inside: avoid;
  }
}
