/* css/blog.css (rewritten for the Elementor mirror) */
/* Blog (7 Nov). Index: a journal head with a large serif title and the post count set big on the right (ref Lightship
   "Journal 14" on Mobbin), then the featured post as a large photo beside a calm list of the other posts with small thumbnails,
   topic, year and reading time (refs Mural "Featured post / New" and the Calm article list on Mobbin, 21st.dev Shop by Category
   Grid for the hover zoom). Article: a centred serif head (ref Wispr Flow blog head), a wide warm photo, a sticky aside with the
   facts of the post and a reading readout, a comfortable 38em measure, a pull quote taken from the post's own text (ref Intercom
   article pull quote) and a thin gold reading line at the top (ref 21st.dev Reading Progress with a time-left readout). */

/* index */
body.cg .jr-head { padding-bottom: clamp(36px, 5vw, 64px); }
body.cg .jr-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(20px, 2.4vw, 28px); border-bottom: 1px solid var(--line-strong); }
body.cg .jr-h1 { font: 300 clamp(72px, 11vw, 168px)/.86 var(--serif); letter-spacing: -0.045em; color: var(--ink); }
body.cg .jr-count { font: 300 clamp(72px, 11vw, 168px)/.86 var(--serif); letter-spacing: -0.04em; color: var(--gold-text); font-variant-numeric: lining-nums; }
body.cg .jr-count :where(small,.t-small):not(cg-x) { display: block; margin-bottom: 10px; font: 400 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: right; }
body.cg .jr-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; margin-top: 22px; }
body.cg .jr-intro .kicker { align-self: start; padding-top: 6px; }
body.cg .jr-lead { max-width: 34em; font-size: 19px; line-height: 1.6; color: var(--text); }

body.cg .jr-feed { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 120px); }
body.cg .jr-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; font: 400 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
body.cg .jr-label :where(h2:not(.elementor-heading-title),.t-h2):not(cg-x) { font: inherit; letter-spacing: inherit; }
body.cg .jr-label :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { letter-spacing: .04em; text-transform: none; font-size: 15px; color: var(--muted); }
body.cg .jr-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
body.cg .jr-feature-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #d9d5cb; }
body.cg .jr-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
body.cg .jr-feature:hover .jr-feature-media img { transform: scale(1.04); }
body.cg .jr-feature-media .tag-soft { position: absolute; left: 16px; top: 16px; }
body.cg .jr-feature-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; margin-top: 22px; }
body.cg .jr-feature-title { grid-column: 1 / -1; margin-top: 4px; font: 300 clamp(38px, 4vw, 58px)/1 var(--serif); letter-spacing: -0.03em; text-wrap: balance; }
body.cg .jr-feature-title :where(a,.t-a):not(cg-x),body.cg  .jr-row-title :where(a,.t-a):not(cg-x) { color: var(--ink); text-decoration: none; }
body.cg .jr-feature-title :where(a,.t-a):not(cg-x)::after { content: ""; position: absolute; inset: 0; }
body.cg .jr-feature { position: relative; }
body.cg .jr-feature-ex { max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--muted); }
body.cg .jr-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14.5px; color: var(--muted); }
body.cg .jr-meta > *:not(:where(.elementor-heading-title)) + *::before,body.cg .jr-meta > :where(.elementor-heading-title)>*:not(:where(.elementor-heading-title)) + *::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 14px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
body.cg .jr-feature-body .jr-topic { grid-column: 1; }
body.cg .jr-feature-ex { grid-column: 1; }
body.cg .jr-feature-body .jr-meta { grid-column: 1; }
body.cg .jr-go { grid-column: 2; grid-row: 3 / span 2; align-self: end; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
body.cg .jr-go .icon { width: 20px; height: 20px; }
body.cg .jr-feature:hover .jr-go { background: var(--ink); border-color: var(--ink); color: #fff; }

body.cg .jr-list { list-style: none; border-top: 1px solid var(--line-strong); }
body.cg .jr-row { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
body.cg .jr-row-media { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: #d9d5cb; }
body.cg .jr-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
body.cg .jr-row:hover .jr-row-media img { transform: scale(1.07); }
body.cg .jr-row-title { margin: 6px 0 8px; font: 400 clamp(23px, 2vw, 28px)/1.1 var(--serif); letter-spacing: -0.015em; }
body.cg .jr-row-title :where(a,.t-a):not(cg-x)::after { content: ""; position: absolute; inset: 0; }
body.cg .jr-topic { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.cg .jr-row .icon-go { width: 20px; height: 20px; color: var(--gold-deep); transition: transform .35s var(--ease); }
body.cg .jr-row:hover .icon-go { transform: translateX(4px); }
body.cg .jr-row:hover .jr-row-title :where(a,.t-a):not(cg-x) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--gold); }
body.cg .jr-note { margin-top: 22px; padding: 20px 22px; border-radius: var(--r-md); background: var(--sand); font-size: 16px; line-height: 1.55; color: var(--text); }
body.cg .jr-note :where(a,.t-a):not(cg-x) { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--gold-deep); }

/* article */
body.cg .art-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 80; height: 3px; pointer-events: none; }
body.cg .art-progress :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { display: block; height: 100%; background: var(--gold); transform: scaleX(var(--read, 0)); transform-origin: left; }
body.cg .art-head { padding-bottom: clamp(28px, 3.4vw, 44px); text-align: center; }
body.cg .art-head .crumbs :where(ol,.t-ol):not(cg-x) { justify-content: center; }
body.cg .art-head .kicker { margin-top: clamp(28px, 4vw, 52px); }
body.cg .art-head .kicker::after { content: ""; width: 22px; height: 1px; background: var(--gold); }
body.cg .art-title { max-width: 15em; margin: 18px auto 0; font: 300 clamp(48px, 6.4vw, 96px)/.96 var(--serif); letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
body.cg .art-head .jr-meta { justify-content: center; margin-top: 22px; }
body.cg .art-hero { position: relative; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
body.cg .art-hero img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-band); background: #d9d5cb; }
body.cg .art-hero :where(figcaption,.t-figcaption):not(cg-x) { position: absolute; right: calc(var(--gutter) + 18px); bottom: 18px; }
body.cg .art-body { display: grid; grid-template-columns: 180px minmax(0, 36em) minmax(240px, 1fr); gap: clamp(28px, 3vw, 44px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
body.cg .art-aside { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; display: grid; gap: 14px; }
body.cg .art-facts { display: grid; gap: 0; border-top: 1px solid var(--line-strong); font-size: 14.5px; }
body.cg .art-facts :where(div:not(.elementor-heading-title,.elementor,.elementor-widget,.elementor-location-header,.elementor-location-footer),.t-div):not(cg-x) { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
body.cg .art-facts :where(dt,.t-dt):not(cg-x) { color: var(--muted); }
body.cg .art-facts :where(dd,.t-dd):not(cg-x) { margin: 0; color: var(--ink); text-align: right; }
body.cg .art-left { font: italic 400 19px/1.2 var(--serif); color: var(--ink); }
body.cg .art-left :where(small,.t-small):not(cg-x) { display: block; margin-top: 4px; font: 400 13px/1.3 var(--sans); color: var(--muted); font-style: normal; }
body.cg .art-text :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { font-size: 18.5px; line-height: 1.8; }
body.cg .art-text > :where(p:not(.elementor-heading-title),.t-p):not(cg-x):nth-child(1 of :where(p:not(.elementor-heading-title),.t-p))::first-letter { float: left; margin: .08em .1em 0 -.02em; font: 300 4.9em/.76 var(--serif); color: var(--ink); }
body.cg .art-sub { margin-top: 40px !important; font: 400 clamp(25px, 2.2vw, 30px)/1.15 var(--serif) !important; letter-spacing: -0.015em; color: var(--ink) !important; }
body.cg .art-step { display: flex; align-items: baseline; gap: 14px; margin-top: 44px !important; padding-top: 18px; border-top: 1px solid var(--line); font: 400 clamp(25px, 2.2vw, 30px)/1.15 var(--serif) !important; letter-spacing: -0.015em; color: var(--ink) !important; }
body.cg .art-pull { margin: 44px 0 !important; padding: 8px 0 8px 28px; border-left: 2px solid var(--gold); }
body.cg .art-pull :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { font: italic 300 clamp(28px, 2.8vw, 38px)/1.2 var(--serif) !important; letter-spacing: -0.015em; color: var(--ink) !important; }
body.cg .art-side { display: grid; gap: 14px; align-self: start; position: sticky; top: calc(var(--header-h) + 28px); }
body.cg .art-card { padding: 20px 20px 22px; border-radius: var(--r-md); background: var(--card); }
body.cg .art-card .art-card-title { margin-top: 0; font: 400 22px/1.15 var(--serif); color: var(--ink); }
body.cg .art-card :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
body.cg .art-card .link-arrow { margin-top: 12px; font-size: 15.5px; }
body.cg .art-card-sand { background: var(--sand); }
body.cg .art-card-mist { background: var(--mist); }
body.cg .art-card-primrose { background: var(--primrose); }
body.cg .art-card-blush { background: var(--blush); }
body.cg .art-card .art-date { margin-top: 0; display: flex; align-items: baseline; gap: 12px; }
body.cg .art-date :where(b,.t-b):not(cg-x) { font: 300 64px/.9 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
body.cg .art-date :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { font: italic 400 22px/1.1 var(--serif); color: var(--ink); }
body.cg .art-mini { display: grid; margin-top: 10px; list-style: none; font-size: 15px; }
body.cg .art-mini :where(li,.t-li):not(cg-x) { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(0, 0, 0, .1); color: var(--ink); }
body.cg .art-mini :where(li,.t-li):not(cg-x) :where(span:not(.elementor-heading-title),.t-span):not(cg-x):last-child { color: var(--muted); text-align: right; }
body.cg .art-mini :where(a,.t-a):not(cg-x) { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--gold-deep); }
body.cg .art-steps { display: grid; gap: 0; margin-top: 10px; list-style: none; counter-reset: st; font-size: 15px; }
body.cg .art-steps :where(li,.t-li):not(cg-x) { position: relative; padding: 9px 0; border-top: 1px solid rgba(0, 0, 0, .1); color: var(--ink); }
body.cg .art-swatches { display: flex; gap: 10px; margin-top: 12px; }
body.cg .art-swatches :where(figure,.t-figure):not(cg-x) { margin: 0; flex: 1; }
body.cg .art-swatches img { width: 100%; aspect-ratio: 1; border-radius: var(--r-xs); object-fit: cover; }
body.cg .art-swatches :where(figcaption,.t-figcaption):not(cg-x) { margin-top: 6px; font-size: 13.5px; color: var(--ink); }

body.cg .art-comments { padding-bottom: clamp(56px, 7vw, 96px); }
body.cg .art-comments-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px clamp(32px, 5vw, 72px); max-width: 1040px; margin: 0 auto; padding: clamp(28px, 3.6vw, 44px); border-radius: var(--r-lg); background: var(--paper-deep); }
body.cg .art-comments-intro .kicker { margin-bottom: 14px; font-weight: 400; }
body.cg .art-comments :where(h3:not(.elementor-heading-title),.t-h3):not(cg-x) { font: 300 clamp(34px, 3.4vw, 46px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
body.cg .art-comments-intro :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
body.cg .art-comments-intro .tag-soft { margin-top: 18px; }
body.cg .art-form .form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.cg .art-form .field-wide,body.cg  .art-form .check,body.cg  .art-form .btn { grid-column: 1 / -1; }
body.cg .art-form .btn { justify-self: start; }

body.cg .art-more { padding-bottom: clamp(72px, 9vw, 120px); }
body.cg .art-more-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
body.cg .art-more-title { font: 300 clamp(38px, 4vw, 56px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
body.cg .art-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; }
body.cg .art-cards :where(li,.t-li):not(cg-x) { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 22px; border-radius: var(--r-card); background: var(--card); }
body.cg .art-cards .jr-row-media { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
body.cg .art-cards :where(li,.t-li):not(cg-x):hover .jr-row-media img { transform: scale(1.05); }
body.cg .art-cards .jr-topic,body.cg  .art-cards .jr-row-title,body.cg  .art-cards .jr-meta { margin-left: 12px; margin-right: 12px; }
body.cg .art-cards .jr-row-title { margin-top: 0; margin-bottom: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js body.cg .jr-feed .reveal:nth-child(2) { transition-delay: .1s; }
}
@media (max-width: 1180px) {
  body.cg .art-body { grid-template-columns: 220px minmax(0, 1fr); }
  body.cg .art-side { grid-column: 2; position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  body.cg .jr-grid,body.cg  .jr-intro,body.cg  .art-comments-in { grid-template-columns: 1fr; }
  body.cg .art-body { grid-template-columns: 1fr; }
  body.cg .art-aside,body.cg  .art-side { position: static; grid-column: auto; }
  body.cg .art-aside { order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  body.cg .art-cards { grid-template-columns: 1fr; }
  body.cg .art-hero img { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
}
@media (max-width: 700px) {
  body.cg .jr-row { grid-template-columns: 84px minmax(0, 1fr); }
  body.cg .jr-row .icon-go { display: none; }
  body.cg .art-form .form-fields,body.cg  .art-side,body.cg  .art-aside { grid-template-columns: 1fr; }
  body.cg .art-text :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { font-size: 18px; }
  body.cg .art-hero :where(figcaption,.t-figcaption):not(cg-x) { right: calc(var(--gutter) + 10px); bottom: 10px; }
}

/* site audit, 8 Nov: the comments card on the 1200px column like everything else */
body.cg .art-comments-in { max-width: none; }

/* responsive pass, 22 Nov 2026: "Czytaj dalej" stands three across on tablets (one full-width photo per row before) */
@media (min-width: 701px) and (max-width: 980px) {
  body.cg .art-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.cg .art-card-title { font-size: 20px !important; }
}
/* visual audit, 23 Nov 2026 */
body.cg .art-mini :where(li,.t-li):not(cg-x) :where(span:not(.elementor-heading-title),.t-span):not(cg-x):last-child { white-space: nowrap; }
@media (min-width: 701px) and (max-width: 980px) { body.cg .art-side > :only-child { grid-column: 1 / -1; } }
