/* GEN — Baza wiedzy (Knowledge Vault). Theme-neutral: adopts the active theme's
   --accent when present, with safe fallbacks, so it fits Practice/Ocean/Earth. */

.gpv-teaser{position:relative}
.gpv-teaser::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5.5em;
  background:linear-gradient(180deg,rgba(255,255,255,0),var(--surface,#fff));pointer-events:none}

.gpv-paywall{
  position:relative;margin:28px auto 0;max-width:620px;text-align:center;
  background:var(--surface-2,#f3f7f9);border:1px solid var(--line,#d5e2e8);border-radius:14px;
  padding:clamp(26px,4vw,44px);
}
.gpv-paywall .gpv-lock{font-size:30px;width:30px;height:30px;color:var(--accent,#36667b);opacity:.9}
.gpv-paywall h2{margin:.3em 0 .35em;font-size:clamp(1.25rem,2.2vw,1.6rem);color:var(--accent,#22404c)}
.gpv-pw-text{margin:0 auto 18px;max-width:46ch;color:var(--ink-soft,#436270);line-height:1.6}
.gpv-error{color:#b32d2e;font-weight:600;margin:0 0 14px}

.gpv-form{margin:14px auto 0;max-width:440px;text-align:left}
.gpv-label{display:block;font-size:.9rem;color:var(--ink-soft,#436270);margin:0 0 6px;font-weight:600}
.gpv-row{display:flex;gap:8px;flex-wrap:wrap}
.gpv-row input{flex:1 1 200px;min-width:0;padding:11px 14px;border:1.5px solid var(--field-line,#c9dae2);
  border-radius:999px;background:var(--field-bg,#fff);color:var(--ink,#22404c);font:inherit}
.gpv-row input:focus{outline:2px solid var(--accent,#36667b);outline-offset:1px;border-color:transparent}
.gpv-row .btn,.gpv-row button{
  flex:0 0 auto;padding:11px 22px;border-radius:999px;border:1.6px solid var(--accent,#36667b);
  background:var(--accent,#36667b);color:#fff;font:inherit;font-weight:500;cursor:pointer;
  transition:background .25s,color .25s}
.gpv-row button:hover{background:transparent;color:var(--accent,#36667b)}

.gpv-buy{margin:20px 0 0;color:var(--ink-soft,#436270)}
.gpv-buy strong{color:var(--accent,#36667b)}
.gpv-soon{opacity:.6;font-size:.85em}

.gpv-unlocked{display:inline-flex;align-items:center;gap:7px;font-size:.82rem;letter-spacing:.02em;
  color:var(--sage-deep,#5b7553);background:rgba(132,152,126,.12);border-radius:999px;padding:5px 14px;margin:0 0 18px}
.gpv-unlocked .dashicons{font-size:16px;width:16px;height:16px}

/* copy deterrent — applied by vault.js only when protection is on */
.gpv-noselect{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none}
.gpv-noselect img{pointer-events:none;-webkit-user-drag:none;user-drag:none}

/* article typography (body sits inside the theme's 760px single column) */
.gpv-content h2{margin:2.1em 0 .6em;font-family:var(--serif,inherit);font-size:clamp(1.3rem,2.4vw,1.65rem);line-height:1.25;color:var(--ink,#22404c)}
.gpv-content h2:first-child{margin-top:0}
.gpv-content p{margin:0 0 1.1em;line-height:1.75}
.gpv-content ul{margin:0 0 1.3em;padding-left:1.2em}
.gpv-content li{margin:0 0 .55em;line-height:1.7}
.gpv-content li::marker{color:var(--accent,#36667b)}
.gpv-content li strong{color:var(--ink,#22404c)}
.gpv-content blockquote{margin:1.6em 0;padding:.2em 0 .2em 1.2em;border-left:3px solid var(--accent,#36667b);
  font-family:var(--serif,inherit);font-size:1.12em;line-height:1.55;color:var(--ink,#22404c)}
.gpv-content blockquote p{margin:0}
.gpv-content .gpv-lead{font-size:1.12em;line-height:1.7;color:var(--ink-soft,#436270)}

/* author box under the article */
.gpv-author{display:flex;align-items:center;gap:clamp(18px,3vw,30px);margin:clamp(40px,6vw,64px) 0 0;
  padding:clamp(22px,3.5vw,32px);background:var(--surface-2,#eef4f7);border:1px solid var(--line,#d5e2e8);border-radius:16px}
.gpv-author__photo{flex:0 0 auto;width:clamp(96px,14vw,128px);aspect-ratio:1/1;border-radius:50%;overflow:hidden;
  box-shadow:0 0 0 4px var(--surface,#fff),0 0 0 5px var(--line,#d5e2e8)}
.gpv-author__photo a{display:block;width:100%;height:100%}
.gpv-author__photo img{width:100%;height:100%;object-fit:cover;display:block}
.gpv-author__body{min-width:0}
.gpv-author__body p{margin:0}
.gpv-author__eyebrow{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:var(--accent,#36667b);margin-bottom:4px!important}
.gpv-author__name{font-family:var(--serif,inherit);font-size:clamp(1.15rem,2vw,1.35rem);font-weight:600;line-height:1.25;color:var(--ink,#22404c)}
.gpv-author__name a{color:inherit;text-decoration:none}
.gpv-author__name a:hover{color:var(--accent,#36667b)}
.gpv-author__role{margin-top:4px!important;font-size:.86rem;color:var(--ink-soft,#436270)}
.gpv-author__bio{margin-top:10px!important;font-size:.94rem;line-height:1.6;color:var(--ink-soft,#436270)}
.gpv-author__more{display:inline-block;margin-top:10px;font-weight:600;font-size:.9rem;color:var(--accent,#36667b);text-decoration:none}
.gpv-author__more:hover{text-decoration:underline}
@media (max-width:560px){.gpv-author{flex-direction:column;text-align:center}}

/* [gen_vault] tiles — markup reuses the theme's .class-grid/.class-card (homepage
   "Zajęcia" tiles); this only adds what the article tiles need on top. */
.gpv-grid{margin-top:clamp(8px,1.5vw,16px)}
/* 4 per row on desktop, 2 on tablets, 1 on phones (theme's 560px breakpoint) */
.class-grid.gpv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:1200px){
	.class-grid.gpv-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
	/* narrower tiles: compact card like the theme's .class-panel cards */
	.gpv-grid .gpv-tile{padding:24px}
	.gpv-grid .gpv-tile h3{font-size:1.25rem}
	.gpv-grid .gpv-tile__meta{display:block}
	.gpv-grid .gpv-tile__meta--sep::before{content:none}
}
@media (max-width:560px){.class-grid.gpv-grid{grid-template-columns:1fr}}
.gpv-tile{--_c:color-mix(in srgb,var(--accent) 72%,#12222a);height:100%}
.gpv-tile h3{line-height:1.25}
.gpv-tile .cc-teacher{margin:-6px 0 0}
.gpv-tile__meta{font-weight:400;font-family:var(--sans,inherit);color:var(--ink-faint,#4e646e);white-space:nowrap}
.gpv-tile__meta--sep::before{content:"· "}
/* height:auto, or the img height attribute (e.g. 614) beats aspect-ratio and the tile turns portrait */
.gpv-tile__img img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px}
.gpv-tags{display:flex;flex-wrap:wrap;gap:6px}
.gpv-tag-paid .dashicons{font-size:12px;width:12px;height:12px;line-height:1;vertical-align:-1px}
.gpv-tile__link{align-self:flex-start;color:var(--_c);font-family:var(--serif,inherit);font-weight:600;text-decoration:none}
/* whole tile is clickable (the link stretches over the card) */
.gpv-tile__link::after{content:"";position:absolute;inset:0;z-index:1}
.gpv-tile:hover .arr{transform:translateX(5px)}

/* /baza-wiedzy/: intro under the heading + "Wkrótce w Bazie wiedzy" topics */
.gpv-intro{margin:16px 0 0;max-width:68ch;color:var(--ink-soft,#3b5966);line-height:1.7}
.gpv-upcoming{margin-top:clamp(40px,6vw,72px);padding-top:clamp(28px,4vw,40px);border-top:1px solid var(--line,#d6e3e9)}
.gpv-upcoming h2{margin:0 0 18px;font-size:var(--fs-h3,1.5rem);font-weight:600;line-height:1.25}
.gpv-upcoming-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:12px}
.gpv-upcoming-list{counter-reset:gpv-up}
.gpv-upcoming-list li{margin:0;padding:18px 20px 20px;border:1px solid var(--line,#d6e3e9);border-radius:16px;background:var(--surface,#fff);color:var(--ink,#22404c);counter-increment:gpv-up}
.gpv-upcoming-list li::before{content:counter(gpv-up,decimal-leading-zero);display:block;margin-bottom:8px;font-size:.8125rem;font-weight:700;letter-spacing:.08em;color:var(--accent-2-ink,#a85c4c)}
.gpv-upcoming-list h3{margin:0 0 8px;font-size:1.0625rem;font-weight:600;line-height:1.35;color:var(--ink,#22404c)}
.gpv-upcoming-list p{margin:0;font-size:.9375rem;line-height:1.55;color:var(--ink-soft,#3b5966)}

/* Article photos (figures in the article body) */
.gpv-content .gpv-figure{margin:clamp(26px,4vw,44px) 0}
.gpv-content .gpv-figure img{display:block;width:100%;height:auto;border-radius:16px}
.gpv-content .gpv-figure--portrait img{width:auto;max-width:100%;max-height:min(78vh,720px);margin-inline:auto}
.gpv-content > .gpv-figure:first-child{margin-top:0}
.gpv-content .gpv-poem p{font-size:1.05em;line-height:1.8}
.gpv-content .gpv-credit{margin-top:2.2em;padding-top:1em;border-top:1px solid var(--line,#d6e3e9);font-size:.875rem;line-height:1.6;color:var(--ink-soft,#3b5966)}
