/* ============================================================
   Click Moose · straipsniai (sąrašas ir straipsnis)
   Naudoja tuos pačius kintamuosius kaip styles.css
   ============================================================ */

.page-post main > section { padding: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.post-preview { position: sticky; top: 72px; z-index: 40; background: #FFF3CF; border-bottom: 1px solid rgba(219, 148, 15, .35); color: #6e4a06; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.post-preview a { color: inherit; }

/* ---------- viršelis ---------- */
.cover {
  --c1: #172445; --c2: #0F1830; --fg: #E8ECF6;
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3; border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px);
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .14), transparent 55%), linear-gradient(150deg, var(--c1), var(--c2));
  color: var(--fg); box-shadow: var(--shadow-deep);
}
.cover::before { /* orientavimosi žemėlapio linijos, kaip svetainės fone */
  content: ""; position: absolute; inset: -10%; z-index: -1; opacity: .16;
  background: url("../bg/topo.svg") center / cover no-repeat; mix-blend-mode: screen;
}
.cover--blue { --c1: #3E63FF; --c2: #1D3BD1; }
.cover--violet { --c1: #6D4BD8; --c2: #3B2A8F; }
.cover--mint { --c1: #138A6B; --c2: #0B5A47; }
.cover--sand { --c1: #E9E2D0; --c2: #D7CDB4; --fg: #13151A; }
.cover__kicker { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.cover__kw { font: 800 clamp(24px, 3.2vw, 40px)/1.02 var(--f-display); letter-spacing: -.035em; max-width: 56%; text-wrap: balance; }
.cover__ico { position: absolute; right: 6%; bottom: 8%; width: 38%; max-width: 190px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }
.cover__ico--moose { width: 46%; max-width: 230px; right: 3%; bottom: -2%; }
/* Nuotrauka (Pexels ar įkelta): tas pats rėmas, kampe paslaugos žyma */
.cover--photo { padding: 0; background: var(--paper-2); }
.cover--photo::before { display: none; }
.cover--photo img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.cover--photo::after { content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: 45%; background: linear-gradient(180deg, rgba(15, 24, 48, .55), transparent); }
.cover--photo .cover__kicker { position: absolute; left: clamp(16px, 2.4vw, 24px); top: clamp(16px, 2.4vw, 24px); color: #fff; opacity: .95; }
.cover-fig { margin: 0; }
.cover-fig figcaption { margin-top: 10px; font: 500 12.5px/1.4 var(--f-mono); color: var(--ink-3); }
.cover-fig figcaption a { color: inherit; }
.cover--sm { aspect-ratio: 16 / 9; border-radius: var(--r); padding: 18px; box-shadow: none; }
.cover--sm .cover__kw { font-size: clamp(20px, 2vw, 26px); }
.cover--sm .cover__ico { width: 30%; max-width: 110px; }

/* ---------- sąrašas ---------- */
.posts-hero { padding-top: clamp(32px, 5vw, 64px) !important; padding-bottom: clamp(28px, 4vw, 48px) !important; }
.posts-hero h1 { font-size: clamp(38px, 5.4vw, 68px); max-width: 15ch; }
.posts-hero__lead { max-width: 640px; color: var(--ink-2); font-size: 19px; margin-top: 18px; }
.posts-list { padding-bottom: clamp(72px, 9vw, 120px) !important; }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; text-decoration: none; color: var(--ink); margin-bottom: clamp(40px, 6vw, 72px); }
.post-feature__txt { display: flex; flex-direction: column; gap: 12px; }
.post-feature b { font: 800 clamp(28px, 3.4vw, 42px)/1.08 var(--f-display); letter-spacing: -.03em; }
.post-feature:hover b { color: var(--accent); }
.post-feature span { color: var(--ink-2); font-size: 17px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.post-card b { font: 700 21px/1.2 var(--f-display); letter-spacing: -.02em; }
.post-card:hover b { color: var(--accent); }
.post-card > span:last-child { color: var(--ink-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { font: 500 12.5px/1 var(--f-mono); color: var(--ink-3) !important; letter-spacing: .02em; }
.post-card__more { color: var(--accent) !important; font-weight: 700; }
.post-empty { text-align: center; padding: clamp(48px, 8vw, 96px) 16px; }
.post-empty svg { width: 72px; height: 72px; color: var(--ink-3); opacity: .5; --logo-eyes: var(--paper); }
.post-empty h1, .post-empty h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0; }
.post-empty p { color: var(--ink-2); margin: 10px auto; max-width: 460px; }

/* ---------- straipsnis ---------- */
.post-hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.post-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.post-hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; text-wrap: balance; }
.post-hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); margin-top: 18px; max-width: 38em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font: 500 13px/1.4 var(--f-mono); color: var(--ink-3); }
.post-meta span::before { content: "·"; margin-right: 18px; }

.post-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: clamp(28px, 5vw, 72px); justify-content: center; padding-bottom: clamp(48px, 6vw, 80px); }
.post-layout:not(:has(.post-toc)) { grid-template-columns: minmax(0, 720px); }
.post-toc { position: sticky; top: 96px; align-self: start; font-size: 14.5px; }
.post-toc b { display: block; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.post-toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.post-toc li a:hover, .post-toc li a.is-on { color: var(--accent); border-left-color: var(--accent); }
.post-toc__audit { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--accent); text-decoration: none; }

.post-body { font-size: 18.5px; line-height: 1.72; color: #22252C; min-width: 0; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.1em; }
.post-body > p:first-child { font-size: 20.5px; line-height: 1.6; color: var(--ink); }
.post-body h2 { font-size: clamp(27px, 2.8vw, 36px); line-height: 1.12; margin: 1.9em 0 .6em; scroll-margin-top: 96px; }
.post-body h3 { font-size: 22px; line-height: 1.25; margin: 1.5em 0 .5em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.post-body li { margin: .35em 0; }
.post-body li::marker { color: var(--accent); font-weight: 700; }
.post-body a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.post-body strong { color: var(--ink); }
.post-body blockquote { margin: 1.5em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 19px; }
.post-body blockquote p:last-child { margin: 0; }
.post-body figure { margin: 1.8em 0; }
.post-body figure img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.post-body figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.post__table { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.post-body th, .post-body td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.post-body th { font: 700 14.5px/1.3 var(--f-body); background: var(--paper-2); }
.post-body tr:last-child td { border-bottom: 0; }

.post-cta { border-radius: var(--r-lg); }
.post-cta--mid { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin: 2.2em 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 16px; line-height: 1.5; }
.post-cta--mid b { font: 700 18px/1.3 var(--f-display); color: var(--ink); }
.post-cta--mid p { margin: 2px 0 0; color: var(--ink-2); }
.post-cta__ava { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; color: var(--on-navy); --logo-eyes: var(--navy); }
.post-cta__ava svg { width: 36px; height: 36px; }
.post-cta--end { margin-top: 2.6em; padding: clamp(24px, 4vw, 40px); background: var(--navy); color: var(--on-navy); background-image: radial-gradient(90% 80% at 100% 0%, rgba(46, 84, 255, .45), transparent 60%); }
.post-cta--end h2 { margin: 0 0 .4em; color: #fff; font-size: clamp(26px, 3vw, 36px); }
.post-cta--end p { color: var(--on-navy-2); margin: 0; }
.post-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.post-cta--end .btn--ghost { color: #fff; border-color: rgba(232, 236, 246, .35); }
.post-cta--end .btn--ghost:hover { border-color: #fff; }
.post-cta__fine { font-size: 14px; }

.post-faq { margin-top: 2.4em; }
.post-faq h2 { margin-top: 0; }
.post-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.post-faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font: 700 19px/1.35 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 26px/1 var(--f-body); color: var(--accent); transition: transform .25s var(--ease); }
.post-faq details[open] summary::after { transform: rotate(45deg); }
.post-faq details p { margin: 0 0 16px; font-size: 17px; }

.post-related { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 112px); border-top: 1px solid var(--line); }
.post-related h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 26px; }

@media (max-width: 960px) {
  .post-hero__grid, .post-feature { grid-template-columns: 1fr; }
  .post-hero .cover { aspect-ratio: 16 / 9; max-width: 560px; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-toc { display: none; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 17.5px; }
  .post-body > p:first-child { font-size: 19px; }
  .post-cta--mid { grid-template-columns: auto 1fr; }
  .post-cta--mid .btn { grid-column: 1 / -1; }
  .post-meta span::before { margin-right: 10px; }
}
