/* --------------------------------------------------------------------------
   Enciklopedija odnosa s javnošću — podstranica portala.
   Predložak je preuzet iz dizajnerske demonstracije, a paleta i tipografija
   usklađene su s ostatkom stranice (zaglavlje i podnožje dolaze iz portala).
   Sve je omeđeno klasom .pt-window da ne utječe na ostatak sajta.
   -------------------------------------------------------------------------- */

/* Podstranica ne učitava blogov stylesheet, pa nosi vlastiti mali reset. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f8f7f4; }
img, svg { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }

.pt-window {
  --pt-page: #f8f7f4;
  --pt-surface: #ffffff;
  --pt-text: var(--ink, #171717);
  --pt-muted: #66615b;
  --pt-line: #d9d4cd;
  --pt-soft: #efebe5;
  --pt-orange: var(--orange, #d9784a);
  --pt-orange-soft: #f7e8de;
  --pt-on-orange: #ffffff;

  background: var(--pt-page);
  color: var(--pt-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14.5px;
  line-height: 1.62;
  overflow: hidden;

  /* podnožje ostaje na dnu i na kratkim natuknicama */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.pt-window > .pt-footer { margin-top: auto; }

.pt-window * { box-sizing: border-box; }
.pt-window a { color: inherit; text-decoration: none; }
.pt-window h1, .pt-window h2, .pt-window h3, .pt-window p { margin-top: 0; }
.pt-window h1, .pt-window h2, .pt-window h3 { margin-bottom: .5em; }
.pt-window p { margin-bottom: 1em; }
.pt-window ul, .pt-window ol { margin: 0; }
.pt-window h1, .pt-window h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.pt-window .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pt-wrap { width: min(100%, 1180px); margin: 0 auto; padding: 0 28px; }

.pt-eyebrow {
  color: var(--pt-orange);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 18px;
}

/* ------------------------------------------------------ zaglavlje --- */

.pt-header { background: var(--pt-surface); border-bottom: 1px solid var(--pt-line); }
.pt-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.pt-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pt-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: var(--pt-orange);
  color: var(--pt-on-orange);
  font-weight: 700;
  letter-spacing: .03em;
}
.pt-brand-copy { min-width: 0; }
.pt-brand-copy strong, .pt-brand-copy span { display: block; }
.pt-brand-copy strong { font-size: 15px; letter-spacing: .04em; }
.pt-brand-copy span { color: var(--pt-muted); font-size: 12.5px; }
.pt-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.pt-nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.pt-nav a:hover { color: var(--pt-orange); }
.pt-nav a[aria-current="page"] { color: var(--pt-orange); border-color: currentColor; }

.pt-footer {
  padding-top: 32px;
  padding-bottom: 32px;
  background: var(--pt-surface);
  color: var(--pt-muted);
  font-size: 13px;
  border-top: 1px solid var(--pt-line);
}
.pt-footer a:hover { color: var(--pt-orange); }

/* ---------------------------------------------------------------- hero --- */

.pt-hero {
  padding-top: 64px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--pt-line);
}

.pt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr);
  gap: 52px;
  align-items: end;
}

.pt-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.pt-intro { color: var(--pt-muted); max-width: 760px; margin-bottom: 28px; font-size: 15px; }

.pt-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-line);
}
.pt-search:focus-within { border-color: var(--pt-orange); }
.pt-search input {
  min-width: 0; width: 100%;
  border: 0; outline: 0;
  background: transparent;
  color: var(--pt-text);
  font: inherit;
  padding: 10px 0;
}
.pt-search button, .pt-filter, .pt-letter { font: inherit; cursor: pointer; }
.pt-search button {
  border: 0;
  background: var(--pt-orange);
  color: var(--pt-on-orange);
  padding: 11px 18px;
  font-weight: 700;
}
.pt-search-icon { color: var(--pt-muted); font-size: 17px; }

.pt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--pt-line);
  border-bottom: 1px solid var(--pt-line);
}
.pt-stat { padding: 20px 12px; }
.pt-stat + .pt-stat { border-left: 1px solid var(--pt-line); }
.pt-stat strong, .pt-stat span { display: block; }
.pt-stat strong { color: var(--pt-orange); font-weight: 700; font-size: 24px; line-height: 1.1; }
.pt-stat span { color: var(--pt-muted); font-size: 12.5px; margin-top: 4px; }

/* ------------------------------------------------------------ sekcije --- */

.pt-section { padding-top: 52px; padding-bottom: 52px; border-bottom: 1px solid var(--pt-line); }

.pt-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.pt-section-head h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 0; }
.pt-section-head p { color: var(--pt-muted); margin-bottom: 0; }

.pt-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--pt-line);
}
.pt-feature { min-width: 0; padding: 24px 24px 20px 0; border-bottom: 1px solid var(--pt-line); }
.pt-feature + .pt-feature { padding-left: 24px; border-left: 1px solid var(--pt-line); }
.pt-feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pt-no { display: block; color: var(--pt-orange); margin-bottom: 28px; font-size: 12px; }
.pt-feature p, .pt-topic p, .pt-entry p { color: var(--pt-muted); }
.pt-more { color: var(--pt-orange); font-weight: 700; font-size: 13px; }
.pt-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.pt-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--pt-line);
  border: 1px solid var(--pt-line);
}
.pt-topic {
  display: block;
  text-align: left;
  border: 0;
  background: var(--pt-surface);
  color: var(--pt-text);
  padding: 22px;
  font: inherit;
}
.pt-topic:hover, .pt-topic:focus-visible { background: var(--pt-orange-soft); }
.pt-topic strong { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.pt-topic p { margin-bottom: 0; font-size: 13.5px; }

/* --------------------------------------------------------- abecedarij --- */

.pt-browse-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.pt-browse-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
.pt-filter {
  display: inline-block;
  border: 1px solid var(--pt-line);
  color: var(--pt-text);
  background: var(--pt-surface);
  padding: 10px 14px;
  font-size: 13px;
}
.pt-filter:hover { border-color: var(--pt-orange); color: var(--pt-orange); }

.pt-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0 20px;
  border-top: 1px solid var(--pt-line);
  border-bottom: 1px solid var(--pt-line);
}
.pt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--pt-text);
  padding: 8px 9px;
  font-weight: 700;
  font-size: 13px;
}
.pt-letter:hover, .pt-letter:focus-visible { background: var(--pt-soft); }
.pt-letter[aria-pressed="true"] { background: var(--pt-orange); color: var(--pt-on-orange); }
.pt-letter.is-empty { color: #b3ada4; font-weight: 400; }

.pt-results-title { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 8px; }
.pt-results-title h2 { font-size: 26px; margin: 0; }
.pt-results-title span { color: var(--pt-muted); font-size: 13px; }

.pt-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 42px; }
.pt-entry { padding: 20px 0; border-bottom: 1px solid var(--pt-line); }
.pt-entry-meta { color: var(--pt-orange); margin-bottom: 7px; font-size: 12.5px; }
.pt-entry h3 { font-weight: 700; margin-bottom: 8px; font-size: 17px; }
.pt-entry p { margin-bottom: 10px; }
.pt-empty { grid-column: 1 / -1; padding: 28px 0; color: var(--pt-muted); }

/* ------------------------------------------------------- natuknica --- */

.pt-entry-page { padding-top: 54px; padding-bottom: 60px; }
.pt-crumbs { color: var(--pt-muted); font-size: 12.5px; margin-bottom: 26px; }
.pt-crumbs a:hover { color: var(--pt-orange); }
.pt-crumbs span { margin: 0 7px; }

.pt-entry-head { border-bottom: 1px solid var(--pt-line); padding-bottom: 26px; margin-bottom: 30px; }
.pt-entry-head h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; margin-bottom: 10px; }
.pt-entry-en { color: var(--pt-muted); font-style: italic; font-family: Georgia, serif; font-size: 17px; }
.pt-entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pt-tag {
  border: 1px solid var(--pt-line);
  background: var(--pt-surface);
  padding: 6px 11px;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pt-muted);
}
.pt-tag.is-area { border-color: var(--pt-orange); color: var(--pt-orange); }

.pt-entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 52px; align-items: start; }

.pt-lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.55;
  border-left: 3px solid var(--pt-orange);
  padding-left: 22px;
  margin-bottom: 32px;
}

.pt-prose { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.75; max-width: 720px; }
.pt-prose p { margin-bottom: 1.2em; }
.pt-prose h2 { font-family: Arial, Helvetica, sans-serif; font-size: 22px; font-weight: 700; margin: 1.8em 0 .6em; }
.pt-prose h3 { font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 700; margin: 1.6em 0 .5em; }
.pt-prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.2em; }
.pt-prose ol { list-style: decimal; padding-left: 1.3em; margin-bottom: 1.2em; }
.pt-prose li { margin-bottom: .4em; }
.pt-prose a { color: #a94723; text-decoration: underline; text-underline-offset: 3px; }
.pt-prose blockquote { border-left: 3px solid var(--pt-line); padding-left: 20px; margin: 1.6em 0; color: var(--pt-muted); }

.pt-aside > * + * { margin-top: 26px; }
.pt-box { border: 1px solid var(--pt-line); background: var(--pt-surface); padding: 20px; }
.pt-box h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pt-muted);
  font-weight: 700;
  margin-bottom: 12px;
}
.pt-box ul { list-style: none; padding: 0; margin: 0; }
.pt-box li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--pt-line); }
.pt-box a { font-weight: 700; }
.pt-box a:hover { color: var(--pt-orange); }
.pt-box small { display: block; color: var(--pt-muted); font-size: 12px; margin-top: 2px; }
.pt-cite { font-family: Georgia, serif; font-size: 13.5px; line-height: 1.6; color: var(--pt-text); }

.pt-sources { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--pt-line); }
.pt-sources h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pt-muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.pt-sources .pt-prose { font-size: 14.5px; }

.pt-entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--pt-line);
  font-size: 13px;
}

/* ------------------------------------------------------------ mobile --- */

@media (max-width: 900px) {
  .pt-entry-layout { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 800px) {
  .pt-hero-grid, .pt-featured, .pt-entries { grid-template-columns: 1fr; }
  .pt-feature + .pt-feature { padding-left: 0; border-left: 0; }
  .pt-feature { padding-right: 0; }
  .pt-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-nav { gap: 14px; font-size: 13px; }
}

@media (max-width: 520px) {
  .pt-wrap { padding-left: 18px; padding-right: 18px; }
  .pt-header-row { gap: 14px; }
  .pt-brand-copy span { display: none; }
  .pt-mark { width: 40px; height: 40px; font-size: 14px; }
  .pt-nav { gap: 12px; font-size: 12.5px; }
  .pt-hero { padding-top: 42px; padding-bottom: 38px; }
  .pt-topics { grid-template-columns: 1fr; }
  .pt-search { grid-template-columns: auto 1fr; }
  .pt-search button { grid-column: 1 / -1; width: 100%; }
  .pt-section-head, .pt-browse-head { align-items: flex-start; flex-direction: column; }
  .pt-lead { font-size: 18px; padding-left: 16px; }
  .pt-prose { font-size: 16px; }
}
