/* ============================================================
 * Article detail page — v3 design system.
 * Namespace: .art-*  ·  Tokens: --hp-* (from general.css)
 * A centered reading column for the prose body; full-width
 * hero + related rails. Pinned articles get a hero image;
 * the rest are text-only at the top.
 * ============================================================ */

.art {
  background: var(--hp-bg, #ffffff);
}

.art-inner {
  max-width: var(--hp-max, 1440px);
  margin: 0 auto;
  padding: 32px 24px 96px;
}

@media (max-width: 599px) {
  .art-inner {
    padding: 24px 16px 72px;
  }
}

/* ─── Breadcrumb ────────────────────────────────────────────── */
.art-breadcrumb-shell {
  /* Mirrors .art-layout so the breadcrumb's left edge aligns with the
     article's text column even though it lives outside the grid. */
  max-width: calc(720px + 56px + 320px);
  margin: 0 auto;
}
.art-breadcrumb {
  margin-top: 56px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--hp-fg-faint, #727b8a);
  margin-bottom: 40px;
}
.art-breadcrumb a {
  color: var(--hp-fg-muted, #5b6473);
  text-decoration: none;
  transition: color 140ms ease;
}
.art-breadcrumb a:hover {
  color: var(--hp-accent, #0ea5e9);
}
.art-breadcrumb i {
  font-size: 9px;
}
.art-breadcrumb-current {
  color: var(--hp-fg, #0b1320);
}

/* ─── Two-column layout ─────────────────────────────────────── */
/* Left: the full article (header, hero, body). Right: a static
 * sidebar with related products + related news. The CTA below
 * spans the full width. */
/* Left column sized to the content (720px), sidebar fixed at 320px.
 * The left column is NOT a stretchy 1fr — that left an empty gap
 * between the capped content and the sidebar. The pair is centered
 * in the inner width via justify-content. */
.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 320px;
  justify-content: center;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1023px) {
  .art-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* The left column fills its grid track; the 720px cap is the track. */
.art-main {
  min-width: 0;
}

/* ─── Header ────────────────────────────────────────────────── */
.art-header {
  margin-bottom: 32px;
}

/* Category + brand chips above the title. */
.art-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.art-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--hp-mono, 'Roboto Mono', monospace);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.art-chip i {
  font-size: 9px;
}
/* Category chip — accent fill. */
.art-chip-cat {
  background: var(--hp-accent-soft, rgba(14, 165, 233, 0.08));
  color: var(--hp-accent, #0ea5e9);
}
.art-chip-cat:hover {
  background: rgba(14, 165, 233, 0.16);
}
/* Brand chip — neutral outline. */
.art-chip-brand {
  background: transparent;
  color: var(--hp-fg-muted, #5b6473);
  border: 1px solid var(--hp-hairline, #e6e8ec);
}
.art-chip-brand:hover {
  background: rgba(11, 19, 32, 0.04);
  color: var(--hp-fg, #0b1320);
}

.art .art-header h1.art-title {
  margin: 0 0 16px;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
  color: var(--hp-fg, #0b1320);
}
@media (max-width: 767px) {
  .art .art-header h1.art-title {
    font-size: 30px !important;
  }
}

.art-dek {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--hp-fg-muted, #5b6473);
}

.art-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--hp-hairline, #e6e8ec);
  font-family: var(--hp-mono, 'Roboto Mono', monospace);
  font-size: 12px;
  color: var(--hp-fg-faint, #727b8a);
}
.art-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.art-meta-item i {
  font-size: 11px;
}
.art-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--hp-hairline-strong, #c8ccd3);
}

/* ─── Hero (pinned articles only) ───────────────────────────── */
.art-hero {
  margin: 0 0 40px;
}
.art-hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #f7f9fb;
  display: block;
}
.art-hero-caption {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--hp-fg-faint, #727b8a);
  text-align: center;
}

/* ─── Prose body ────────────────────────────────────────────── */
.art-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--hp-fg, #0b1320);
}

.art-body > * {
  margin-top: 0;
}
.art-body > * + * {
  margin-top: 24px;
}

/* Intro lead — slightly larger, sets the tone. */
.art-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--hp-fg-muted, #5b6473);
}

.art-body h2 {
  margin-top: 48px !important;
  margin-bottom: 14px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--hp-fg, #0b1320);
  scroll-margin-top: 24px;
}

.art-body h3 {
  margin-top: 36px !important;
  margin-bottom: 10px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--hp-fg, #0b1320);
  scroll-margin-top: 24px;
}

/* The element right after a heading drops the generic `* + *` top
   margin so the gap is controlled solely by the heading's own
   margin-bottom — a deliberate, tight heading-to-body break. */
.art-body h2 + *,
.art-body h3 + * {
  margin-top: 0 !important;
}

/* First heading after the lead shouldn't push an oversized gap. */
.art-body h2:first-child,
.art-body h3:first-child {
  margin-top: 0 !important;
}

.art-body p {
  margin: 0;
}

.art-body strong {
  font-weight: 600;
  color: var(--hp-fg, #0b1320);
}

.art-body a {
  color: var(--hp-accent, #0ea5e9);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.art-body a:hover {
  text-decoration-thickness: 2px;
}

/* Lists */
.art-body ul,
.art-body ol {
  margin: 24px 0;
  padding-left: 24px;
}
.art-body li {
  margin: 8px 0;
  padding-left: 4px;
  line-height: 1.65;
}
.art-body ul > li::marker {
  color: var(--hp-accent, #0ea5e9);
}
.art-body ol > li::marker {
  color: var(--hp-fg-faint, #727b8a);
  font-family: var(--hp-mono, 'Roboto Mono', monospace);
  font-size: 0.9em;
}

/* Pull quote */
.art-body blockquote,
.art-body .art-quote {
  margin: 36px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--hp-accent, #0ea5e9);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--hp-fg, #0b1320);
}
.art-body blockquote p,
.art-body .art-quote p {
  margin: 0;
}

/* Callout box — for notes / key takeaways */
.art-body .art-callout {
  margin: 32px 0;
  padding: 20px 22px;
  background: var(--hp-accent-soft, rgba(14, 165, 233, 0.08));
  border-radius: 10px;
  font-size: 15.5px;
  line-height: 1.6;
}
.art-body .art-callout p {
  margin: 0;
}
.art-body .art-callout p + p {
  margin-top: 10px;
}

/* In-body figures */
.art-body figure,
.art-body .art-figure {
  margin: 36px 0;
}
.art-body figure img,
.art-body .art-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #f7f9fb;
  display: block;
}
.art-body figcaption,
.art-body .art-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--hp-fg-faint, #727b8a);
  text-align: center;
}

/* Data tables (some imported articles carry spec tables) */
.art-body table {
  width: 100%;
  margin: 32px 0;
  border-collapse: collapse;
  font-size: 14.5px;
}
.art-body th,
.art-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hp-hairline, #e6e8ec);
  vertical-align: top;
}
.art-body th {
  font-weight: 600;
  color: var(--hp-fg, #0b1320);
  background: #f7f9fb;
}

/* ─── Sidebar ───────────────────────────────────────────────── */
/* The right column. Static (scrolls with the page). Holds the
 * related-products and related-news blocks. */
.art-aside {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.art-related-head {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hp-hairline, #e6e8ec);
}
.art-related-eyebrow {
  margin: 0 0 4px;
  font-family: var(--hp-mono, 'Roboto Mono', monospace);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hp-fg-faint, #727b8a);
}
.art .art-related h2.art-related-title {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--hp-fg, #0b1320);
}

/* Related products — compact horizontal rows in the sidebar. */
.art-product-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.art-product-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  margin: 0 -10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 120ms ease;
}
.art-product-row:hover {
  background: rgba(11, 19, 32, 0.04);
}
/* White image plate with a hairline edge — product photos aren't
   uniformly transparent, so the border (not a gray fill) defines
   the plate. */
.art-product-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--hp-hairline, #e6e8ec);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

/* Mini promo badge — star-only, for the small related-product card.
   A solid gold disc, matching the gold "Naš izbor" promo family.
   Kept fully inside the thumb (the thumb clips overflow). */
.art-product-thumb .product-promo-badge-mini {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 999px;
  background: #f5b800;
  color: #5c4400;
  font-size: 8px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(11, 19, 32, 0.22);
}
.art-product-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
.art-product-info {
  min-width: 0;
}
.art-product-name {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--hp-fg, #0b1320);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-product-row:hover .art-product-name {
  color: var(--hp-accent, #0ea5e9);
}
.art-product-price {
  font-family: var(--hp-mono, 'Roboto Mono', monospace);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--hp-fg-muted, #5b6473);
}
.art-product-price-ask {
  color: var(--hp-fg-faint, #727b8a);
}

/* Related news — compact text rows in the sidebar. */
.art-news-list {
  display: flex;
  flex-direction: column;
}
.art-news-row {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--hp-hairline, #e6e8ec);
}
.art-news-row:first-child {
  padding-top: 0;
}
.art-news-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.art-news-date {
  margin: 0 0 5px;
  font-family: var(--hp-mono, 'Roboto Mono', monospace);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hp-fg-faint, #727b8a);
}
.art-news-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hp-fg, #0b1320);
  transition: color 140ms ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.art-news-row:hover .art-news-title {
  color: var(--hp-accent, #0ea5e9);
}

/* ─── CTA ───────────────────────────────────────────────────── */
/* Sits at the end of the left article column. */
.art-cta {
  margin-top: 64px;
  padding: 36px 32px;
  background: #f7f9fb;
  border-radius: 12px;
  text-align: center;
}
.art .art-cta h2.art-cta-title {
  margin: 0 0 8px;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--hp-fg, #0b1320);
}
.art-cta-text {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--hp-fg-muted, #5b6473);
}
.art-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--hp-accent, #0ea5e9);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 140ms ease;
}
.art-cta-btn:hover {
  filter: brightness(0.95);
}
.art-cta-btn i {
  font-size: 12px;
}

/* ─── Keyboard focus ────────────────────────────────────────────
   Visible focus indicators for keyboard users — the article page
   has chips, in-prose links, related-product/news rows and the CTA
   button, none of which had a focus state. */
.art-chip:focus-visible,
.art-cta-btn:focus-visible,
.art-product-row:focus-visible,
.art-related a:focus-visible,
.art-body a:focus-visible,
.art-breadcrumb a:focus-visible {
  outline: 2px solid var(--hp-accent, #0ea5e9);
  outline-offset: 2px;
  border-radius: 4px;
}
