/* css/cmentarze.css (rewritten for the Elementor mirror) */
/* Cemetery hubs and Liternictwo (7 Nov).
   - Junikowo: title and lead beside a wide sunlit avenue, the four services of the old slider as a ribbon of tiles, a "karta
     cmentarza" with big figures, address, opening hours and a zoomed crop of the engraved area map (refs Little Amps Coffee
     location card and Homerun address band on Mobbin), then the five original chapters as alternating photo notes.
   - Górczyn: photo left, title right, three short columns, a history spread with a year timeline and the trees named in the
     original text, then the services text beside the map crop.
   - Liternictwo: a type specimen whose gold fills the letters as the page loads (the "renovation"), three kinds of lettering,
     the real before/after and a free-quote form with photo upload. */

/* ---------- map crop shared by the cemetery pages */
body.cg .mapcard { display: flex; flex-direction: column; margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--card); }
body.cg .mapcard-plate { position: relative; display: block; flex: 1; min-height: 260px; overflow: hidden; background: #efece4; container-type: size; }
body.cg .mapcard-plate > img,body.cg .mapcard-plate > :where(.cg-img)>img { position: absolute; width: calc(var(--z) * 100%); max-width: none; height: auto; left: 50%; top: 50%; transform: translate(calc(var(--cx) * -1%), calc(var(--cy) * -1%)); }
body.cg .mapcard-pin { position: absolute; left: calc(50% + (var(--px) - var(--cx)) * var(--z) * 1cqw); top: calc(50% + (var(--py) - var(--cy)) * var(--z) * .846 * 1cqw); z-index: 1; display: flex; align-items: center; gap: 8px; transform: translate(-7px, -7px); }
body.cg .mapcard-pin :where(i,.t-i):not(cg-x) { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(181, 148, 80, .25); }
body.cg .mapcard-home :where(i,.t-i):not(cg-x) { background: var(--ink); box-shadow: 0 0 0 5px rgba(0, 0, 0, .12); }
body.cg .mapcard-pin :where(b,.t-b):not(cg-x) { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); font: 400 15px/1 var(--serif); color: var(--ink); white-space: nowrap; }
body.cg .mapcard :where(figcaption,.t-figcaption):not(cg-x) { display: grid; gap: 4px; padding: 16px 20px 18px; border-top: 1px solid var(--line); }
body.cg .mapcard :where(figcaption,.t-figcaption):not(cg-x) :where(b,.t-b):not(cg-x) { font: 400 22px/1.1 var(--serif); color: var(--ink); }
body.cg .mapcard :where(figcaption,.t-figcaption):not(cg-x) :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { font-size: 14.5px; color: var(--muted); }
body.cg .mapcard :where(figcaption,.t-figcaption):not(cg-x) .link-arrow { margin-top: 8px; font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  body.cg .mapcard-pin:not(.mapcard-home) :where(i,.t-i):not(cg-x) { animation: pin-pulse 2.4s var(--ease) 3; }
}
@keyframes pin-pulse { 50% { box-shadow: 0 0 0 14px rgba(181, 148, 80, 0); } }

/* ---------- Junikowo */
body.cg .cem-hero .crumbs { margin-bottom: clamp(24px, 3vw, 40px); }
body.cg .cem-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
body.cg .cem-title { margin-top: 18px; font-size: clamp(52px, 6.2vw, 96px); line-height: .95; }
body.cg .cem-title em,body.cg  .gor-title em { font-style: italic; color: var(--gold-text); }
body.cg .cem-hero-copy .lead { margin-top: 24px; color: var(--muted); }
body.cg .cem-hero-photo { position: relative; margin: 0; aspect-ratio: 5 / 4; border-radius: var(--r-band); overflow: hidden; background: #d9d5cb; }
body.cg .cem-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
body.cg .cem-hero-photo :where(figcaption,.t-figcaption):not(cg-x) { position: absolute; left: 18px; bottom: 18px; }
body.cg .ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: clamp(28px, 3.6vw, 44px); list-style: none; }
body.cg .rib { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; column-gap: 14px; min-height: 96px; padding: 16px 18px; border-radius: var(--r-md); background: var(--card); color: var(--ink); text-decoration: none; transition: background-color .3s, transform .4s var(--ease); }
body.cg .rib:hover { transform: translateY(-3px); }
body.cg .ribbon :where(li,.t-li):not(cg-x):nth-child(2) .rib { background: var(--sand); }
body.cg .ribbon :where(li,.t-li):not(cg-x):nth-child(3) .rib { background: var(--primrose); }
body.cg .ribbon :where(li,.t-li):not(cg-x):nth-child(4) .rib { background: var(--mist); }
body.cg .rib-ic { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); }
body.cg .ribbon :where(li,.t-li):not(cg-x):not(:first-child) .rib-ic { background: var(--card); }
body.cg .rib-ic .icon { width: 22px; height: 22px; color: var(--gold-deep); }
body.cg .rib-name { font: 400 21px/1.15 var(--serif); }
body.cg .rib-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--muted); }
body.cg .rib-go .icon { width: 15px; height: 15px; transition: transform .35s var(--ease); }
body.cg .rib:hover .rib-go .icon { transform: translateX(4px); }

body.cg .cem-intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
body.cg .cem-intro-lead { font: 300 clamp(24px, 2.2vw, 31px)/1.42 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
body.cg .cem-prints { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.cg .print { position: relative; margin: 0; padding: 10px 10px 12px; border-radius: var(--r-sm); background: var(--card); transform: rotate(-2deg); }
body.cg .print-2 { transform: rotate(2deg) translateY(28px); }
body.cg .print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
body.cg .print :where(figcaption,.t-figcaption):not(cg-x) { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; }
body.cg .print-note { grid-column: 1 / -1; margin-top: 36px; font-size: 14px; color: var(--muted); }

body.cg .cem-info .page-head :where(p:not(.elementor-heading-title),.t-p):not(cg-x):not(.kicker) { font-size: 18px; line-height: 1.7; color: var(--text); }
body.cg .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
body.cg .facts :where(div:not(.elementor-heading-title,.elementor,.elementor-widget,.elementor-location-header,.elementor-location-footer),.t-div):not(cg-x) { padding: 22px 0 20px; }
body.cg .facts :where(div:not(.elementor-heading-title,.elementor,.elementor-widget,.elementor-location-header,.elementor-location-footer),.t-div):not(cg-x) + :where(div:not(.elementor-heading-title,.elementor,.elementor-widget,.elementor-location-header,.elementor-location-footer),.t-div):not(cg-x) { padding-left: 24px; border-left: 1px solid var(--line); }
body.cg .facts :where(b,.t-b):not(cg-x) { display: block; font: 300 clamp(40px, 4.4vw, 64px)/1 var(--serif); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums; }
body.cg .facts :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
body.cg .sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .9fr); gap: 14px; align-items: stretch; }
body.cg .sheet-card { padding: 24px; border-radius: var(--r-card); background: var(--card); }
body.cg .sheet-k { display: flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.cg .sheet-k .icon { width: 17px; height: 17px; color: var(--gold-text); }
body.cg .sheet-addr { margin-top: 14px; font: 400 22px/1.3 var(--serif); color: var(--ink); }
body.cg .sheet-phone { margin-top: 10px; font-size: 16px; color: var(--ink); }
body.cg .sheet-facts { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.6; color: var(--muted); }
body.cg .sheet-hours { background: var(--primrose); }
body.cg .hours { display: grid; margin-top: 12px; list-style: none; }
body.cg .hours :where(li,.t-li):not(cg-x) { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); font-size: 15.5px; }
body.cg .hours :where(b,.t-b):not(cg-x) { font-weight: 400; font-variant-numeric: tabular-nums; }

body.cg .cem-notes .wrap { display: grid; gap: clamp(56px, 7vw, 96px); }
body.cg .note { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
body.cg .note-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
body.cg .note-flip .note-photo { order: 2; }
body.cg .note-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: #d9d5cb; }
body.cg .note:first-child .note-photo { aspect-ratio: 4 / 3; }
body.cg .note-photo img { width: 100%; height: 100%; object-fit: cover; }
body.cg .note-no { font: italic 400 22px/1 var(--serif); color: var(--gold-text); }
body.cg .note-title { margin: 14px 0 18px; font: 300 clamp(34px, 3.4vw, 50px)/1.04 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
body.cg .note-title :where(a,.t-a):not(cg-x) { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; text-decoration-color: var(--gold); }
body.cg .note-copy :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { font-size: 18px; line-height: 1.75; color: var(--text); max-width: 36em; }
body.cg .note-copy :where(p:not(.elementor-heading-title),.t-p):not(cg-x) + :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { margin-top: 16px; }

/* ---------- Górczyn */
body.cg .gor-hero .crumbs { margin-bottom: clamp(24px, 3vw, 40px); }
body.cg .gor-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4.4vw, 72px); align-items: end; }
body.cg .gor-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-band); overflow: hidden; background: #d9d5cb; }
body.cg .gor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
body.cg .gor-photo-tag { position: absolute; top: 18px; left: 18px; }
body.cg .gor-copy { padding-bottom: 12px; }
body.cg .gor-title { margin-top: 18px; font-size: clamp(50px, 5.6vw, 88px); line-height: .96; }
body.cg .gor-lead { margin-top: 22px; font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 30em; }
body.cg .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
body.cg .trio-item { display: flex; flex-direction: column; padding: 10px 10px 22px; border-radius: var(--r-card); }
body.cg .trio-item.tint-card { background: var(--card); }
body.cg .trio-item:nth-child(2) { margin-top: 0; }
body.cg .trio-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: #d9d5cb; }
body.cg .trio-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
body.cg .trio-item:hover .trio-photo img { transform: scale(1.05); }
body.cg .trio-photo .tag { position: absolute; left: 12px; bottom: 12px; }
body.cg .trio-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; background: rgba(255, 255, 255, .75); vertical-align: -6px; }
body.cg .trio-item.tint-card .trio-ic { background: var(--sand); }
body.cg .trio-ic .icon { width: 17px; height: 17px; color: var(--gold-deep); }
body.cg .trio-k { margin: 18px 12px 0; font: 400 25px/1.15 var(--serif); color: var(--ink); }
body.cg .trio-item :where(p:not(.elementor-heading-title),.t-p):not(cg-x):not(.trio-k) { margin: 10px 12px 0; font-size: 17.5px; line-height: 1.7; color: var(--text); }
body.cg .hist-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
body.cg .timeline { display: grid; gap: 0; list-style: none; border-left: 1px solid var(--gold); }
body.cg .timeline :where(li,.t-li):not(cg-x) { position: relative; display: grid; gap: 4px; padding: 0 0 26px 26px; }
body.cg .timeline :where(li,.t-li):not(cg-x)::before { content: ""; position: absolute; left: -6px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
body.cg .timeline :where(b,.t-b):not(cg-x) { font: 300 46px/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
body.cg .timeline :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { font-size: 16px; color: var(--muted); }
body.cg .hist-photo { margin: 12px 0 0; aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; }
body.cg .hist-photo img { width: 100%; height: 100%; object-fit: cover; }
body.cg .hist-copy :where(h3:not(.elementor-heading-title),.t-h3):not(cg-x) { margin-top: 0; }
body.cg .trees-k { margin-top: 28px !important; font-size: 12.5px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--muted) !important; }
body.cg .trees { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 10px !important; }
body.cg .trees :where(li,.t-li):not(cg-x) { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--card); font: italic 400 18px/1 var(--serif); color: var(--ink); }
body.cg .gor-svc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
body.cg .gor-svc-title { font: 300 clamp(34px, 3.4vw, 48px)/1.04 var(--serif) !important; letter-spacing: -0.02em; }

/* ---------- Liternictwo */
body.cg .lit-hero .crumbs { margin-bottom: clamp(24px, 3vw, 40px); }
/* Liternictwo hero, second pass (7 Nov, user: "polish this hero"; ref the Amperos hero on Mobbin: a script-like kicker over a
   serif headline and a layered collage). The collage is a granite tablet whose "Pamięć" gets gilded (gold clipped to the text and
   revealed left to right over an incised groove), the brush photo, a teaser card with the real przed/po and a reply chip. */
body.cg .lit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
body.cg .lit-script { font: italic 400 clamp(28px, 2.6vw, 38px)/1 var(--serif); color: var(--gold-text); }
body.cg .lit-title { margin-top: 8px; font-size: clamp(68px, 8.4vw, 136px); line-height: .88; }
body.cg .lit-sub { margin-top: 22px; font: 300 clamp(26px, 2.4vw, 34px)/1.18 var(--serif); letter-spacing: -0.015em; color: var(--ink); max-width: 17em; }
body.cg .lit-offer { display: flex; align-items: flex-start; gap: 16px; max-width: 34em; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255, 255, 255, .6); }
body.cg .lit-offer-ic { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sand); }
body.cg .lit-offer-ic .icon { width: 20px; height: 20px; color: var(--gold-deep); }
body.cg .lit-k { margin-top: 2px; font: 400 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
body.cg .lit-lead { margin-top: 8px; font: 400 17px/1.55 var(--sans); color: var(--text); }
body.cg .lit-copy .svc-actions { margin-top: 26px; }
body.cg .lit-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; }
body.cg .lit-types :where(li,.t-li):not(cg-x) { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; color: var(--ink); }
body.cg .lit-types :where(b,.t-b):not(cg-x) { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-deep); font: italic 400 16px/1 var(--serif); color: var(--ink); }
body.cg .lit-art { position: relative; min-height: clamp(500px, 40vw, 580px); }
body.cg .lit-tablet { position: absolute; left: 0; top: 21%; z-index: 3; display: grid; place-items: center; width: 62%; aspect-ratio: 5 / 4; padding: 20px; border-radius: var(--r-md); background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 42%), url("/wp-content/uploads/cg-media/kamien-granit.webp") center / 240px, #262422; background-blend-mode: normal, overlay, normal; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 40px -28px rgba(20, 16, 10, .55); rotate: -3deg; }
body.cg .lit-etch,body.cg  .lit-gild { grid-area: 1 / 1; font: 400 clamp(62px, 6.4vw, 104px)/1 var(--serif); letter-spacing: .01em; }
body.cg .lit-etch { color: rgba(255, 255, 255, .16); text-shadow: 0 -1px 0 rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .12); }
body.cg .lit-gild { color: transparent; background: linear-gradient(100deg, var(--gold-text) 0%, #e2c47e 28%, #fbe9b8 42%, #d2ab5c 58%, var(--gold-text) 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)); clip-path: inset(0 0 0 0); }
body.cg .lit-tablet-cap { position: absolute; left: 14px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12.5px; color: var(--ink); }
body.cg .lit-photo { position: absolute; right: 0; top: 0; z-index: 2; width: 50%; margin: 0; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: #d9d5cb; }
body.cg .lit-photo img { width: 100%; height: 100%; object-fit: cover; }
body.cg .lit-teaser { position: absolute; left: 6%; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease); }
body.cg .lit-teaser:hover { transform: translateY(-3px); }
body.cg .lit-teaser:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
body.cg .lit-teaser-pics { display: flex; }
body.cg .lit-teaser-pics img { width: 58px; height: 68px; border: 2px solid #fff; border-radius: var(--r-xs); object-fit: cover; }
body.cg .lit-teaser-pics img + img,body.cg .lit-teaser-pics :where(.cg-img):has(> img) + :where(.cg-img) > img { margin-left: -14px; rotate: 4deg; }
body.cg .lit-teaser :where(b,.t-b):not(cg-x) { display: block; font: 400 21px/1.1 var(--serif); }
body.cg .lit-teaser :where(small,.t-small):not(cg-x) { font-size: 13.5px; color: var(--muted); }
body.cg .lit-teaser .icon { width: 18px; height: 18px; color: var(--gold-deep); }
body.cg .lit-chip { position: absolute; right: 16px; top: 16px; z-index: 4; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--ink); font-size: 14px; color: #fff; }
body.cg .lit-chip .icon { width: 16px; height: 16px; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  body.cg .lit-gild { clip-path: inset(0 100% 0 0); animation: gild-in 2.4s var(--ease) .5s forwards, gild-shine 2.6s ease 3s both; }
  body.cg .lit-tablet { animation: tablet-in 1.2s var(--ease) both; }
  body.cg .lit-photo,body.cg  .lit-teaser,body.cg  .lit-chip { animation: lit-rise 1s var(--ease) both; }
  body.cg .lit-teaser { animation-delay: .25s; }
  body.cg .lit-chip { animation-delay: .4s; }
}
@keyframes gild-in { to { clip-path: inset(0 0 0 0); } }
@keyframes gild-shine { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes tablet-in { from { opacity: 0; rotate: -8deg; translate: 0 24px; } }
@keyframes lit-rise { from { opacity: 0; translate: 0 24px; } }
body.cg .kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; }
body.cg .kind { padding: 26px 26px 30px; border-radius: var(--r-card); background: var(--card); }
body.cg .kind:nth-child(2) { background: var(--sand); }
body.cg .kind:nth-child(3) { background: var(--mist); }
body.cg .kind-glyph { display: block; font: 300 76px/1 var(--serif); letter-spacing: -0.02em; color: var(--gold-text); }
body.cg .kind:nth-child(2) .kind-glyph { font-style: italic; }
body.cg .kind:nth-child(3) .kind-glyph { font-weight: 500; color: #6d6a63; }
body.cg .kind :where(h3:not(.elementor-heading-title),.t-h3):not(cg-x) { margin-top: 18px; font: 400 27px/1.1 var(--serif); color: var(--ink); }
body.cg .kind :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
body.cg .lit-proof-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
body.cg .lit-proof-text { margin-top: 16px; font-size: 17.5px; line-height: 1.65; color: var(--muted); }
/* free quote, second pass (7 Nov, user: "this form needs to look better"): real example shots beside the form (ref the ClassPass
   quote page on Mobbin), a tinted photo dropzone with thumbnails (ref Corgi), letter-type chips and two-column fields */
body.cg .lit-quote-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
body.cg .lit-quote-copy { position: sticky; top: calc(var(--header-h) + 28px); }
body.cg .lit-quote-text { margin-top: 16px; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 30em; }
body.cg .shot-guide { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; margin-top: 30px; }
body.cg .shot { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; background: #d9d5cb; }
body.cg .shot:first-child { grid-row: span 2; }
body.cg .shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
body.cg .shot:first-child img { aspect-ratio: 3 / 4; }
body.cg .shot:nth-child(2) img { aspect-ratio: 4 / 3; }
body.cg .shot:hover img { transform: scale(1.05); }
body.cg .shot :where(figcaption,.t-figcaption):not(cg-x) { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 14px; color: var(--ink); }
body.cg .shot-reply { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px; background: var(--ink); color: #fff; }
body.cg .shot-reply-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: auto; border-radius: 50%; background: rgba(255, 255, 255, .12); }
body.cg .shot-reply-ic .icon { width: 19px; height: 19px; color: var(--gold); }
body.cg .shot-reply :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; font: 400 21px/1.15 var(--serif); }
body.cg .shot-reply :where(small,.t-small):not(cg-x) { font-size: 13.5px; color: rgba(255, 255, 255, .72); }
body.cg .quote-form { padding: clamp(22px, 2.8vw, 36px); border-radius: var(--r-lg); background: var(--card); }
body.cg .qf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
body.cg .qf-title { font: 400 28px/1.1 var(--serif); color: var(--ink); }
body.cg .qf-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--sand); font-size: 13.5px; color: var(--ink); }
body.cg .qf-badge .icon { width: 15px; height: 15px; color: var(--gold-deep); }
body.cg .quote-form .form-fields { display: grid; gap: 18px; }
body.cg .field-label { font-size: 14px; color: var(--ink); }
body.cg .drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 18px 22px; border: 1.5px dashed var(--gold); border-radius: var(--r-md); background: #f8f4ea; text-align: center; cursor: pointer; transition: background-color .3s, border-color .3s; }
body.cg .drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
body.cg .drop:hover,body.cg  .drop.is-over { border-color: var(--gold-deep); background: var(--sand); }
body.cg .drop:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
body.cg .drop-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; }
body.cg .drop-ic .icon { width: 22px; height: 22px; color: var(--gold-deep); }
body.cg .drop-t { margin-top: 6px; font-size: 16px; color: var(--ink); }
body.cg .drop-t :where(b,.t-b):not(cg-x) { font-weight: 400; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
body.cg .drop :where(small,.t-small):not(cg-x) { font-size: 13.5px; color: var(--muted); }
body.cg .drop.has-files { border-style: solid; }
body.cg .drop-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; list-style: none; }
body.cg .drop-thumbs :where(li,.t-li):not(cg-x) { width: 64px; height: 64px; border-radius: var(--r-xs); overflow: hidden; background: var(--paper); }
body.cg .drop-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body.cg .qf-kind { min-width: 0; margin: 0; padding: 0; border: 0; }
body.cg .qf-kind :where(legend,.t-legend):not(cg-x) { margin-bottom: 8px; padding: 0; font-size: 14px; color: var(--ink); }
body.cg .qf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.cg .qf-chip { position: relative; cursor: pointer; }
body.cg .qf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
body.cg .qf-chip :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; color: var(--ink); transition: background-color .3s, border-color .3s, color .3s; }
body.cg .qf-chip:hover :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { border-color: var(--ink); }
body.cg .qf-chip input:checked + :where(span:not(.elementor-heading-title),.t-span):not(cg-x),body.cg .qf-chip :where(.cg-raw):has(> :where(.elementor-heading-title) > input:checked) + :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { border-color: var(--ink); background: var(--ink); color: #fff; }
body.cg .qf-chip input:focus-visible + :where(span:not(.elementor-heading-title),.t-span):not(cg-x),body.cg .qf-chip :where(.cg-raw):has(> :where(.elementor-heading-title) > input:focus-visible) + :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { outline: 3px solid var(--ink); outline-offset: 2px; }
body.cg .qf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.cg .quote-form textarea { min-height: 104px; }
body.cg .qf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
body.cg .qf-note { font-size: 14px; line-height: 1.4; color: var(--muted); }
body.cg .qf-done { display: grid; justify-items: start; gap: 14px; padding: 12px 0; font-size: 18px; color: var(--ink); }
body.cg .quote-form [hidden] { display: none !important; }
body.cg .qf-done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sand); }
body.cg .qf-done-mark .icon { width: 26px; height: 26px; color: var(--gold-deep); }
@media (max-width: 980px) { body.cg .lit-quote-copy { position: static; } }
@media (max-width: 560px) { body.cg .qf-two { grid-template-columns: 1fr; } body.cg .shot-guide { grid-template-columns: 1fr 1fr; } }

@media (max-width: 1080px) {
  body.cg .sheet { grid-template-columns: 1fr 1fr; }
  body.cg .sheet .mapcard { grid-column: 1 / -1; order: 3; }
  body.cg .ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  body.cg .cem-hero-grid,body.cg  .cem-intro-grid,body.cg  .note,body.cg  .note-flip,body.cg  .gor-grid,body.cg  .hist-grid,body.cg  .gor-svc-grid,body.cg  .lit-grid,body.cg  .lit-proof-grid,body.cg  .lit-quote-grid { grid-template-columns: 1fr; }
  body.cg .note-flip .note-photo { order: 0; }
  body.cg .note-photo,body.cg  .note:first-child .note-photo { aspect-ratio: 4 / 3; }
  body.cg .trio,body.cg  .kinds { grid-template-columns: 1fr; }
  body.cg .trio-item:nth-child(2) { margin-top: 0; }
  body.cg .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.cg .facts :where(div:not(.elementor-heading-title,.elementor,.elementor-widget,.elementor-location-header,.elementor-location-footer),.t-div):not(cg-x):nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 700px) {
  body.cg .ribbon,body.cg  .sheet { grid-template-columns: 1fr; }
  body.cg .cem-prints { grid-template-columns: 1fr 1fr; gap: 8px; }
  body.cg .lit-art { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  body.cg .lit-tablet,body.cg  .lit-photo,body.cg  .lit-teaser,body.cg  .lit-chip { position: relative; inset: auto; width: auto; rotate: 0deg; }
  body.cg .lit-tablet { aspect-ratio: 3 / 4; }
  body.cg .lit-etch,body.cg  .lit-gild { font-size: clamp(44px, 12vw, 64px); }
  body.cg .lit-teaser { grid-column: 1 / -1; }
  body.cg .lit-chip { grid-column: 1 / -1; justify-self: start; }
  body.cg .timeline :where(b,.t-b):not(cg-x) { font-size: 38px; }
}

body.cg .tint-sand { background: var(--sand); }
body.cg .tint-mist { background: var(--mist); }
@media (min-width: 701px) and (max-width: 980px) { body.cg .lit-art { max-width: 640px; } body.cg .lit-etch,body.cg  .lit-gild { font-size: clamp(64px, 10vw, 96px); } }

/* map card, second pass (8 Nov audit: "mostly empty beige"): 2x around the midpoint of the cemetery and Stary Rynek, the atlas's
   5 and 10 km rings, a dashed route that draws in, the cemetery's label on its outer side */
body.cg .mapcard-ring,body.cg  .mapcard-route { position: absolute; pointer-events: none; }
body.cg .mapcard-ring { left: calc(50% + (var(--px) - var(--cx)) * var(--z) * 1cqw); top: calc(50% + (var(--py) - var(--cy)) * var(--z) * .846 * 1cqw);
  width: calc(var(--r) * var(--z) * 2cqw); aspect-ratio: 1; border: 1px dashed rgba(181, 148, 80, .7); border-radius: 50%; translate: -50% -50%; }
body.cg .mapcard-route { left: calc(50% + (var(--px) - var(--cx)) * var(--z) * 1cqw); top: calc(50% + (var(--py) - var(--cy)) * var(--z) * .846 * 1cqw);
  width: calc(var(--len) * 1cqw); height: 0; border-top: 2px dashed var(--ink); transform-origin: 0 50%; rotate: var(--ang); opacity: .7; }
body.cg .mapcard-left { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -7px); }
@media (prefers-reduced-motion: no-preference) {
  body.cg .mapcard-route { transition: clip-path 1.4s var(--ease) .4s; }
  .js body.cg .reveal:not(.is-in) .mapcard-route { clip-path: inset(0 100% 0 0); }
}

/* 21st.dev pass (8 Nov; ref Scroll animated timeline by ibrandify): the three dates draw a gold thread down to the middle of
   the screen and each node fills when the thread reaches it (pages.js sets --draw and .is-reached). Without JS the old
   gold rule and filled nodes stay. */
body.cg .timeline { position: relative; }
.js body.cg .timeline.is-thread { border-left-color: var(--line-strong); }
.js body.cg .timeline.is-thread::before { content: ""; position: absolute; left: -1.5px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--gold); transform: scaleY(var(--draw, 0)); transform-origin: top; }
.js body.cg .timeline.is-thread :where(li,.t-li):not(cg-x)::before { z-index: 1; border: 1px solid var(--line-strong); background: var(--card); transition: background-color .45s var(--ease), border-color .45s var(--ease), scale .45s var(--ease); }
.js body.cg .timeline.is-thread :where(li,.t-li):not(cg-x).is-reached::before { border-color: var(--gold); background: var(--gold); scale: 1.3; }

/* Junikowo and Górczyn, polish (8 Nov, user: "polish them to look 100 times better ... use mobbin"). Refs on Mobbin: Samara
   and Little Amps Coffee location cards (name, address, hours, then the place), Biograph's address card beside the story,
   AI in Design Report 2026 chapter pages (a numbered index beside the reading), Kinfolk's photo prints. */

/* Junikowo: the opening paragraph beside two real before/after prints on a sand board */
body.cg .cem-proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
body.cg .cem-proof-lead { margin-top: 18px; font: 400 clamp(21px, 1.75vw, 25px)/1.55 var(--serif); letter-spacing: -0.005em; color: var(--ink); }
body.cg .cem-proof-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
body.cg .cem-proof-board { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: clamp(22px, 2.6vw, 36px) clamp(22px, 2.6vw, 36px) 64px; border-radius: var(--r-lg); background: var(--sand); }
body.cg .proof-print { position: relative; margin: 0; padding: 8px; border-radius: var(--r-sm); background: var(--card); }
body.cg .proof-print img { display: block; width: 100%; height: auto; border-radius: 10px; }
body.cg .proof-print :where(figcaption,.t-figcaption):not(cg-x) { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; }
/* align-self: the print keeps its own height; stretched to the row it showed a blank white frame under the photo (22 Nov) */
body.cg .pp-1 { grid-column: 1 / 11; grid-row: 1; align-self: start; rotate: -2deg; }
body.cg .pp-2 { grid-column: 5 / 13; grid-row: 1; z-index: 1; margin-top: 46%; rotate: 2.5deg; }
body.cg .proof-note { position: absolute; left: clamp(22px, 2.6vw, 36px); bottom: 22px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
body.cg .proof-note .icon { width: 18px; height: 18px; color: var(--gold-deep); }

/* Karta cmentarza: a visitor card beside the map, then the four figures as tinted tiles */
body.cg .visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; margin-top: clamp(28px, 4vw, 48px); }
body.cg .visit-card { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-card); background: var(--card); }
body.cg .visit-name { font: 400 clamp(30px, 2.6vw, 38px)/1.05 var(--serif); color: var(--ink); }
body.cg .visit-sub { margin: 8px 0 18px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.cg .visit-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
body.cg .visit-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); }
body.cg .visit-ic .icon { width: 19px; height: 19px; color: var(--gold-deep); }
body.cg .visit-k { display: block; margin-bottom: 4px; font: 500 12.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.cg .visit-v { font-size: 17px; line-height: 1.5; color: var(--ink); }
body.cg .visit .hours { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 4px; list-style: none; }
body.cg .visit .hours :where(li,.t-li):not(cg-x) { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; color: var(--muted); }
body.cg .visit .hours :where(li,.t-li):not(cg-x) :where(b,.t-b):not(cg-x) { font-weight: 500; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
body.cg .visit .hours :where(li,.t-li):not(cg-x).is-today { margin-inline: -8px; padding-inline: 8px; border-bottom-color: transparent; border-radius: 8px; background: var(--primrose); color: var(--ink); }
body.cg .visit .hours :where(li,.t-li):not(cg-x).is-today :where(span:not(.elementor-heading-title),.t-span):not(cg-x)::after { content: " · dziś"; color: var(--gold-deep); }
body.cg .visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: auto; padding-top: 22px; }
body.cg .visit .mapcard-plate { min-height: 360px; }
body.cg .cem-stats { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); gap: clamp(20px, 3vw, 44px); align-items: center; margin-top: 14px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-card); background: var(--card); }
body.cg .cem-stats-lead { font-size: 16.5px; line-height: 1.6; color: var(--muted); }
body.cg .stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; }
body.cg .stat-tiles :where(li,.t-li):not(cg-x) { display: grid; gap: 6px; padding: 20px 20px 18px; border-radius: var(--r-md); background: var(--sand); }
body.cg .stat-tiles :where(li,.t-li):not(cg-x):nth-child(2) { background: var(--blush); }
body.cg .stat-tiles :where(li,.t-li):not(cg-x):nth-child(3) { background: var(--mist); }
body.cg .stat-tiles :where(li,.t-li):not(cg-x):nth-child(4) { background: var(--primrose); }
body.cg .stat-tiles :where(b,.t-b):not(cg-x) { font: 300 clamp(36px, 3.4vw, 52px)/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: lining-nums; white-space: nowrap; }
body.cg .stat-tiles :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { font-size: 14.5px; color: var(--muted); }

/* the five chapters as one guide: a sticky photo and index follow the chapter being read */
body.cg .guide { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
body.cg .guide-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
body.cg .guide-media { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 330px); min-height: 300px; border-radius: var(--r-card); overflow: hidden; background: var(--paper-deep); }
body.cg .guide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.05; transition: opacity .8s var(--ease), scale 1.4s var(--ease); }
body.cg .guide-img.is-on { opacity: 1; scale: 1; }
body.cg .guide-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 14px; color: var(--ink); }
body.cg .guide-badge .icon { width: 16px; height: 16px; color: var(--gold-deep); }
body.cg .guide-k { margin-bottom: 6px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.cg .guide-index { display: grid; list-style: none; counter-reset: none; }
body.cg .guide-index :where(a,.t-a):not(cg-x) { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: baseline; padding: 10px 0 10px 14px; border-top: 1px solid var(--line); font: 400 19px/1.3 var(--serif); color: var(--muted); text-decoration: none; transition: color .3s; }
body.cg .guide-index :where(a,.t-a):not(cg-x)::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--gold); transform: scaleY(0); transition: transform .4s var(--ease); }
body.cg .guide-index :where(a,.t-a):not(cg-x):hover,body.cg  .guide-index :where(a,.t-a):not(cg-x).is-on { color: var(--ink); }
body.cg .guide-index :where(a,.t-a):not(cg-x).is-on::before { transform: none; }
body.cg .guide-ch { padding: clamp(28px, 3.6vw, 44px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
body.cg .guide-ch:first-child { padding-top: 0; border-top: 0; }
body.cg .guide-title { margin: 0 0 18px; font: 300 clamp(34px, 3.2vw, 48px)/1.05 var(--serif); letter-spacing: -0.015em; color: var(--ink); }
body.cg .guide-title :where(a,.t-a):not(cg-x) { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 8px; }
body.cg .guide-title :where(a,.t-a):not(cg-x):hover { text-decoration-color: currentColor; }
body.cg .guide-ch :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { font-size: 17.5px; line-height: 1.75; color: var(--muted); }
body.cg .guide-ch :where(p:not(.elementor-heading-title),.t-p):not(cg-x) + :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { margin-top: 14px; }
body.cg .guide-ph { display: none; margin: 0 0 18px; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; }
body.cg .guide-ph img { width: 100%; height: 100%; object-fit: cover; }

/* Górczyn: the history beside a cemetery card with the dates on a drawn thread */
body.cg .gor-hist { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
body.cg .gor-card { position: sticky; top: calc(var(--header-h) + 24px); }
body.cg .gor-card .timeline { margin-top: 10px; }
body.cg .gor-card .timeline :where(b,.t-b):not(cg-x) { font-size: 34px; }
body.cg .gor-card .timeline :where(li,.t-li):not(cg-x) { padding-bottom: 18px; }
body.cg .gor-card .timeline :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { font-size: 15px; }
body.cg .gor-hist-photo { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; }
body.cg .gor-hist-photo img { width: 100%; height: 100%; object-fit: cover; }
body.cg .gor-hist-photo .tag { position: absolute; left: 14px; bottom: 14px; }
body.cg .gor-hist-main .hist-copy { margin-top: clamp(26px, 3vw, 38px); }
body.cg .gor-hist-main .hist-copy :where(h3:not(.elementor-heading-title),.t-h3):not(cg-x) { font: 300 clamp(34px, 3vw, 44px)/1.05 var(--serif); }
body.cg .gor-hist-main .hist-text { font-size: 17.5px; line-height: 1.75; }
body.cg .gor-hist-main .hist-text::first-letter { float: left; margin: 6px 12px 0 0; font: 300 76px/.78 var(--serif); color: var(--ink); }
body.cg .gor-trees { margin-top: 26px; padding: 22px 24px; border-radius: var(--r-card); background: var(--card); }
body.cg .gor-trees .trees-k { margin-top: 0 !important; }
body.cg .gor-trees .trees :where(li,.t-li):not(cg-x) { gap: 8px; background: var(--paper); }
body.cg .gor-trees .trees .icon { width: 16px; height: 16px; color: var(--gold-deep); }

/* Górczyn trio as a bento (8 Nov, user: "dont want empty space here", the short cards ended far above the long one): over
   980px the long "Liście i gałęzie" card stands on the left across both rows, and the two short cards stack on the right
   with the photo beside the text across the card's full height, so every edge lines up */
@media (min-width: 981px) {
  body.cg .trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-rows: 1fr 1fr; align-items: stretch; }
  body.cg .trio-item:nth-child(2) { grid-column: 1; grid-row: 1 / span 2; }
  body.cg .trio-item:nth-child(2) .trio-photo { aspect-ratio: 16 / 11; }
  body.cg .trio-item:nth-child(1),body.cg  .trio-item:nth-child(3) { grid-column: 2; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 8px; padding: 10px; }
  body.cg .trio-item:nth-child(1) { grid-row: 1; }
  body.cg .trio-item:nth-child(3) { grid-row: 2; }
  body.cg .trio-item:nth-child(1) .trio-photo,body.cg  .trio-item:nth-child(3) .trio-photo { grid-row: 1 / span 2; height: 100%; min-height: 250px; aspect-ratio: auto; }
  body.cg .trio-item:nth-child(1) .trio-k,body.cg  .trio-item:nth-child(3) .trio-k { align-self: end; margin-top: 0; }
  body.cg .trio-item:nth-child(1) :where(p:not(.elementor-heading-title),.t-p):not(cg-x):not(.trio-k),body.cg  .trio-item:nth-child(3) :where(p:not(.elementor-heading-title),.t-p):not(cg-x):not(.trio-k) { align-self: start; margin-bottom: 12px; }
}
@media (min-width: 601px) and (max-width: 980px) {
  body.cg .trio-item { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; column-gap: 8px; padding: 10px; }
  body.cg .trio-photo { grid-row: 1 / span 2; height: 100%; min-height: 260px; aspect-ratio: auto; }
  body.cg .trio-k { margin-top: 12px; }
  body.cg .trio-item :where(p:not(.elementor-heading-title),.t-p):not(cg-x):not(.trio-k) { margin-bottom: 12px; }
}

@media (max-width: 980px) {
  body.cg .cem-proof-grid,body.cg  .visit,body.cg  .cem-stats,body.cg  .guide,body.cg  .gor-hist { grid-template-columns: minmax(0, 1fr); }
  body.cg .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.cg .guide-side { display: none; }
  body.cg .guide-ph { display: block; }
  body.cg .gor-card { position: static; }
}
@media (max-width: 600px) {
  body.cg .visit .hours { grid-template-columns: minmax(0, 1fr); }
  body.cg .cem-proof-board { padding-bottom: 58px; }
  body.cg .stat-tiles :where(li,.t-li):not(cg-x) { padding: 16px; }
  body.cg .gor-hist-main .hist-text::first-letter { font-size: 62px; }
}

/* Liternictwo, 13 Nov (client: the "Każdy typ napisu" cards go, the new SEO text from the live page comes in): the title, lead and a
   photo of cut letters stay beside the reading column; the service list is a white card with the site's ticks, the closing line a
   gold italic sign-off */
body.cg .lit-seo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
body.cg .lit-seo-head { position: sticky; top: 110px; }
body.cg .lit-seo-head .h2 { margin-top: 12px; text-wrap: balance; }
body.cg .lit-seo-lead { margin-top: 18px; font-size: 18px; line-height: 1.7; color: var(--text); }
body.cg .lit-seo-photo { margin: 28px 0 0; border-radius: var(--r-card); overflow: hidden; }
body.cg .lit-seo-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
body.cg .lit-seo-body :where(h3:not(.elementor-heading-title),.t-h3):not(cg-x) { font: 400 clamp(26px, 2.3vw, 32px)/1.15 var(--serif); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
body.cg .lit-seo-body :where(h3:not(.elementor-heading-title),.t-h3):not(cg-x):not(:first-child) { margin-top: clamp(36px, 3.6vw, 48px); }
body.cg .lit-seo-body :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { margin-top: 14px; font-size: 18px; line-height: 1.75; color: var(--text); }
body.cg .lit-seo-card { margin-top: 24px; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-card); background: var(--card); }
body.cg .lit-seo-card .lit-seo-k { margin: 0 0 14px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
body.cg .lit-seo-card .ticks { display: grid; gap: 10px; list-style: none; }
body.cg .lit-seo-body .lit-seo-close { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--gold); font: italic 400 clamp(24px, 2.2vw, 30px)/1.3 var(--serif); color: var(--gold-text); }
body.cg .lit-seo-body .btn { margin-top: 24px; }
@media (max-width: 980px) {
  body.cg .lit-seo-grid { grid-template-columns: 1fr; }
  body.cg .lit-seo-head { position: static; }
}

/* responsive pass, 22 Nov 2026: a readable line length on tablets (the chapters ran about 110 characters wide) */
@media (min-width: 701px) and (max-width: 980px) {
  body.cg .guide-ch :where(p:not(.elementor-heading-title),.t-p):not(cg-x) { max-width: 41em; }
}
/* visual audit, 23 Nov 2026 */
/* the map card on phones: the Stary Rynek label sits above its pin, so it never runs past the card's edge */
@media (max-width: 700px) {
  body.cg .mapcard-home { flex-direction: column-reverse; gap: 6px; transform: translate(-50%, calc(-100% + 7px)); }
}
/* phones: the four letter-type chips of the Liternictwo form as an even 2 x 2 grid across the form (23 Nov, user: "symmetrical") */
@media (max-width: 700px) {
  body.cg .qf-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.cg .qf-chip :where(span:not(.elementor-heading-title),.t-span):not(cg-x) { justify-content: center; width: 100%; min-height: 48px; padding: 0 10px; }
}
/* phones: the quote form's button across the form and the note centred under it (23 Nov, user: "center everything") */
@media (max-width: 700px) {
  body.cg .qf-foot { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; text-align: center; }
  body.cg .qf-foot .btn { width: 100%; min-height: 56px; }
}
