/* PKPLAST catalog library (/cataloges) – inherits the site font (Ubuntu / GE SS Two) and uses the site palette:
   green #267a52, lime #8dc63f, text #4e4e4e (assets/inner.css). Scoped to .pkcat – no global selectors. */

.pkcat {
  --pkc-green: #267a52;
  --pkc-green-dark: #1d6142;
  --pkc-lime: #8dc63f;
  --pkc-text: #4e4e4e;
  --pkc-ink: #23302a;
  --pkc-muted: #6b746f;
  --pkc-line: #e4ebe3;
  --pkc-mist: #f5f8f3;
  --pkc-radius: 16px;
  color: var(--pkc-text);
  padding: 8px 0 72px;
}
.pkcat *, .pkcat *::before, .pkcat *::after { box-sizing: border-box; }
.pkcat .pkcat-container { display: block; }            /* the theme's .container is flex in some contexts */
.pkcat svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.pkcat-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; }

/* ---------------------------------------------------------------- intro */
.pkcat-intro { max-width: 760px; margin: 4px auto 36px; text-align: center; }
.pkcat-kicker { display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  color: var(--pkc-green); text-transform: uppercase; }
.pkcat-kicker::after { content: ""; display: block; width: 36px; height: 3px; margin: 8px auto 0; border-radius: 2px;
  background: var(--pkc-lime); }
.pkcat-heading { margin: 0 0 12px; font-size: 34px; line-height: 1.2; font-weight: 700; color: var(--pkc-ink); }
.pkcat-subtitle { margin: 0; font-size: 19px; line-height: 1.6; color: var(--pkc-text); }
.pkcat-subtitle::after { content: ""; display: block; width: 44px; height: 3px; margin: 18px auto 0; border-radius: 2px; background: var(--pkc-lime); }

/* ---------------------------------------------------------------- collection */
.pkcat-collection { display: grid; gap: 28px; }
.pkcat-collection--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.pkcat-collection--featured { grid-template-columns: minmax(0, 1fr); max-width: 1080px; margin: 0 auto; }

.pkcat-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pkc-line);
  border-radius: var(--pkc-radius); overflow: hidden; box-shadow: 0 1px 2px rgba(20, 50, 35, .04);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.pkcat-card:hover { border-color: #cfdfcc; box-shadow: 0 14px 34px -18px rgba(20, 60, 40, .35); transform: translateY(-2px); }
.pkcat-card:focus-within { border-color: var(--pkc-lime); }

.pkcat-cover { display: block; position: relative; overflow: hidden; background: var(--pkc-mist); }
.pkcat-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pkcat-card:hover .pkcat-cover img { transform: scale(1.025); }

.pkcat-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 26px; flex: 1 1 auto; }
.pkcat-eyebrow { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pkc-green); }
[dir="rtl"] .pkcat-eyebrow { letter-spacing: .02em; }
.pkcat-title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--pkc-ink); }
.pkcat-title a { color: inherit; text-decoration: none; }
.pkcat-title a:hover { color: var(--pkc-green); }
.pkcat-desc { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--pkc-text); }
.pkcat-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 2px 0 0; padding: 0; list-style: none;
  font-size: 13.5px; color: var(--pkc-muted); }
.pkcat-meta li { display: inline-flex; align-items: center; gap: 6px; }
.pkcat-meta svg { width: 16px; height: 16px; color: var(--pkc-green); }
.pkcat-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }

/* featured (one catalog): horizontal card, cover on the reading-start side */
.pkcat-card--featured { flex-direction: row; align-items: stretch; }
.pkcat-card--featured .pkcat-cover { flex: 0 0 58%; align-self: center; border-inline-end: 1px solid var(--pkc-line); }
.pkcat-card--featured .pkcat-body { justify-content: center; padding: 40px 44px; gap: 16px; }
.pkcat-card--featured .pkcat-title { font-size: 30px; }
.pkcat-card--featured .pkcat-actions { margin-top: 10px; }

/* ---------------------------------------------------------------- buttons */
.pkcat-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 30px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.pkcat-btn:focus-visible, .pkcat-back:focus-visible, .pkcat-title a:focus-visible {
  outline: 3px solid var(--pkc-lime); outline-offset: 3px; border-radius: 30px; }
.pkcat-btn--primary { background: var(--pkc-green); color: #fff; }
.pkcat-btn--primary:hover, .pkcat-btn--primary:focus-visible { background: var(--pkc-green-dark); color: #fff; box-shadow: 0 6px 18px -8px rgba(38, 122, 82, .7); }
.pkcat-btn--secondary { background: #fff; color: var(--pkc-green); border-color: #bfd8b9; }
.pkcat-btn--secondary:hover, .pkcat-btn--secondary:focus-visible { border-color: var(--pkc-green); background: var(--pkc-mist); color: var(--pkc-green-dark); }
.pkcat-btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.pkcat-filesize { font-weight: 400; color: var(--pkc-muted); }

/* ---------------------------------------------------------------- "two ways" strip */
.pkcat-how { max-width: 1080px; margin: 56px auto 0; padding-top: 40px; border-top: 1px solid var(--pkc-line); }
.pkcat-how-title { margin: 0 0 26px; font-size: 20px; font-weight: 700; color: var(--pkc-ink); text-align: center; }
.pkcat-how-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.pkcat-how-list li { padding: 22px 22px 20px; background: var(--pkc-mist); border-radius: 14px; }
.pkcat-how-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 12px;
  border-radius: 50%; background: #fff; color: var(--pkc-green); box-shadow: inset 0 0 0 1px #d6e6d0; }
.pkcat-how-list h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--pkc-ink); }
.pkcat-how-list p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--pkc-muted); }

/* ---------------------------------------------------------------- viewer page */
.pkcat--viewer { padding-bottom: 56px; }
.pkcat-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.pkcat-back { display: inline-flex; align-items: center; gap: 6px; color: var(--pkc-green); font-weight: 700; font-size: 15px; text-decoration: none; }
.pkcat-back:hover { color: var(--pkc-green-dark); text-decoration: underline; text-underline-offset: 3px; }
.pkcat-viewer-meta { font-size: 14px; color: var(--pkc-muted); }
.pkcat-noscript { margin-top: 14px; }
.pkcat-empty { max-width: 560px; margin: 24px auto; text-align: center; }
.pkcat-empty p { font-size: 17px; line-height: 1.7; margin: 0 0 22px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .pkcat-card--featured { flex-direction: column; }
  .pkcat-card--featured .pkcat-cover { flex: none; border-inline-end: 0; border-bottom: 1px solid var(--pkc-line); }
  .pkcat-card--featured .pkcat-body { padding: 26px 24px 28px; }
  .pkcat-card--featured .pkcat-title { font-size: 25px; }
  .pkcat-how-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .pkcat { padding-bottom: 48px; }
  .pkcat-intro { margin-bottom: 28px; }
  .pkcat-heading { font-size: 27px; }
  .pkcat-subtitle { font-size: 15.5px; }
  .pkcat-actions { flex-direction: column; }
  .pkcat-actions .pkcat-btn { width: 100%; }
  .pkcat-how { margin-top: 40px; padding-top: 30px; }
  .pkcat-viewer-head .pkcat-filesize { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pkcat-card, .pkcat-cover img, .pkcat-btn { transition: none; }
  .pkcat-card:hover { transform: none; }
  .pkcat-card:hover .pkcat-cover img { transform: none; }
}

/* the site theme sets  img { width:auto !important }  – catalog covers must fill their frame */
.pkcat .pkcat-cover img { width: 100% !important; height: 100% !important; max-width: none; }

/* phones: catalog pages are landscape – size the viewer to the page instead of the full screen height */
@media (max-width: 860px) and (orientation: portrait) {
  .pkcat--viewer .pkfb { height: min(calc(100vh - 90px), calc((100vw - 30px) / 1.4 + 150px)) !important; min-height: 0 !important; }
}
