/*
Theme Name: Patrivia Net
Theme URI: https://patrivia.net/
Author: Tier1 Domain Themes
Description: Search-style knowledge portal theme for patrivia.net with broad category archives.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: patrivia-net
*/

:root {
  --pr-page: #eef2f5;
  --pr-paper: #ffffff;
  --pr-ink: #111820;
  --pr-muted: #5f6b76;
  --pr-line: #c8d2dc;
  --pr-soft: #e5ebf0;
  --pr-blue: #006d9c;
  --pr-yellow: #ffbd2e;
  --pr-red: #c64232;
  --pr-green: #13805a;
}

* {
  box-sizing: border-box;
}

body.pr-theme-body {
  margin: 0;
  min-height: 100vh;
  background: var(--pr-page);
  color: var(--pr-ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.pr-theme-body a {
  color: inherit;
  text-decoration: none;
}

.pr-site {
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--pr-paper);
  border-left: 1px solid var(--pr-line);
  border-right: 1px solid var(--pr-line);
}

.pr-utility-bar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  min-height: 38px;
  background: var(--pr-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pr-utility-bar span {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  overflow-wrap: anywhere;
}

.pr-utility-bar span:nth-child(2) {
  justify-content: center;
  color: var(--pr-yellow);
}

.pr-utility-bar span:last-child {
  justify-content: flex-end;
  border-right: 0;
}

.pr-brand-bar {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid var(--pr-line);
}

.pr-mark {
  display: grid;
  place-items: center;
  min-height: 134px;
  border-right: 1px solid var(--pr-line);
  background: #f8fafc;
}

.pr-mark img {
  display: block;
  width: 82px;
  height: 82px;
}

.pr-brand-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 134px;
  padding: clamp(20px, 4vw, 44px);
  background:
    linear-gradient(90deg, rgba(0, 109, 156, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 109, 156, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
}

.pr-brand-copy p {
  margin: 0;
  color: var(--pr-blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pr-brand-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 118px);
  line-height: 0.82;
  letter-spacing: 0;
}

.pr-search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  border-bottom: 1px solid var(--pr-line);
}

.pr-hero-statement {
  padding: clamp(26px, 4vw, 52px);
  border-right: 1px solid var(--pr-line);
}

.pr-kicker,
.pr-result-header span,
.pr-query-board span,
.pr-wide-note span,
.pr-page-header span {
  display: inline-flex;
  color: var(--pr-red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pr-hero-statement h2,
.pr-page-header h1,
.pr-single h1 {
  max-width: 920px;
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.pr-hero-statement p,
.pr-page-header p,
.pr-single-meta,
.pr-archive-description {
  max-width: 820px;
  margin: 20px 0 0;
  color: var(--pr-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.pr-search-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 42px);
  background: #f8fafc;
}

.pr-search-panel label {
  color: var(--pr-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pr-fake-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  min-height: 58px;
  border: 2px solid var(--pr-ink);
  background: #fff;
}

.pr-fake-search div {
  display: grid;
  align-content: center;
  padding: 10px 14px;
  overflow-wrap: anywhere;
}

.pr-fake-search small {
  color: var(--pr-blue);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pr-fake-search strong {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.1;
}

.pr-fake-search button {
  border: 0;
  border-left: 2px solid var(--pr-ink);
  background: var(--pr-yellow);
  color: var(--pr-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.pr-search-panel p {
  margin: 0;
  color: var(--pr-muted);
  font-size: 14px;
  line-height: 1.55;
}

.pr-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 2px solid var(--pr-ink);
}

.pr-tabs a {
  display: grid;
  gap: 8px;
  min-height: 78px;
  align-content: center;
  padding: 12px 14px;
  border-right: 1px solid var(--pr-line);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pr-tabs a:last-child {
  border-right: 0;
}

.pr-tabs span {
  color: var(--pr-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.pr-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 520px;
  border-bottom: 1px solid var(--pr-line);
}

.pr-results {
  padding: clamp(22px, 3vw, 38px);
  border-right: 1px solid var(--pr-line);
}

.pr-result-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--pr-ink);
}

.pr-result-header h2,
.pr-query-board h2,
.pr-wide-note .label b,
.pr-result-row h3,
.pr-page-body h2,
.pr-single-body h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.pr-result-header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.95;
}

.pr-result-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--pr-line);
}

.pr-result-row code {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid var(--pr-ink);
  background: #fff;
  color: var(--pr-blue);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 950;
}

.pr-result-row h3 {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 34px);
}

.pr-result-row p,
.pr-query-list p,
.pr-wide-note p,
.pr-post-list p,
.pr-empty p {
  margin: 9px 0 0;
  color: var(--pr-muted);
  font-size: 14px;
  line-height: 1.55;
}

.pr-result-row .pr-open,
.pr-read-more {
  justify-self: end;
  min-width: 118px;
  padding: 10px 12px;
  border: 1px solid var(--pr-ink);
  background: var(--pr-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.pr-query-board {
  padding: clamp(22px, 3vw, 34px);
  background: #fbfcfd;
}

.pr-query-board h2 {
  margin: 12px 0 18px;
  font-size: clamp(28px, 3vw, 42px);
}

.pr-query-list {
  display: grid;
  border-top: 1px solid var(--pr-line);
}

.pr-query-list div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--pr-soft);
}

.pr-query-list b {
  color: var(--pr-green);
  font-size: 12px;
}

.pr-signal-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--pr-ink);
}

.pr-signal-table div {
  min-height: 88px;
  padding: 12px;
  border-right: 1px solid var(--pr-line);
}

.pr-signal-table div:last-child {
  border-right: 0;
}

.pr-signal-table strong {
  display: block;
  color: var(--pr-red);
  font-size: 22px;
  line-height: 1;
}

.pr-signal-table small {
  display: block;
  margin-top: 8px;
  color: var(--pr-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.pr-wide-note {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-bottom: 1px solid var(--pr-line);
}

.pr-wide-note .label {
  display: grid;
  align-content: center;
  padding: 22px;
  border-right: 1px solid var(--pr-line);
  background: var(--pr-yellow);
}

.pr-wide-note .label b {
  font-size: 34px;
  line-height: 0.95;
}

.pr-wide-note .copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pr-wide-note article {
  padding: 22px;
  border-right: 1px solid var(--pr-line);
}

.pr-wide-note article:last-child {
  border-right: 0;
}

.pr-wide-note h3 {
  margin: 9px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.pr-page-header,
.pr-single,
.pr-empty {
  padding: clamp(26px, 4vw, 52px);
}

.pr-post-list {
  display: grid;
  padding: 0 clamp(26px, 4vw, 52px) clamp(26px, 4vw, 52px);
}

.pr-post-list article {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--pr-line);
}

.pr-post-list time {
  color: var(--pr-blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pr-post-list h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

.pr-page-body,
.pr-single-body {
  max-width: 900px;
  margin-top: 26px;
  color: var(--pr-ink);
  font-size: 18px;
  line-height: 1.75;
}

.pr-page-body h2,
.pr-single-body h2 {
  margin: 32px 0 0;
  font-size: 32px;
}

.pr-page-body p,
.pr-single-body p {
  margin: 16px 0 0;
}

.pr-pagination {
  padding: 0 clamp(26px, 4vw, 52px) clamp(26px, 4vw, 52px);
  color: var(--pr-blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pr-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  color: var(--pr-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  .pr-utility-bar,
  .pr-brand-bar,
  .pr-search-hero,
  .pr-content-grid,
  .pr-wide-note {
    grid-template-columns: 1fr;
  }

  .pr-mark,
  .pr-hero-statement,
  .pr-results,
  .pr-wide-note .label {
    border-right: 0;
  }

  .pr-mark {
    min-height: 100px;
    border-bottom: 1px solid var(--pr-line);
  }

  .pr-tabs,
  .pr-wide-note .copy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pr-site {
    border-left: 0;
    border-right: 0;
  }

  .pr-utility-bar span,
  .pr-utility-bar span:nth-child(2),
  .pr-utility-bar span:last-child {
    justify-content: flex-start;
    min-height: 34px;
  }

  .pr-fake-search,
  .pr-tabs,
  .pr-result-row,
  .pr-signal-table,
  .pr-wide-note .copy,
  .pr-post-list article {
    grid-template-columns: 1fr;
  }

  .pr-tabs a {
    border-right: 0;
    border-bottom: 1px solid var(--pr-line);
  }

  .pr-result-row .pr-open,
  .pr-read-more {
    justify-self: start;
  }

  .pr-signal-table div,
  .pr-wide-note article {
    border-right: 0;
    border-bottom: 1px solid var(--pr-line);
  }

  .pr-signal-table div:last-child,
  .pr-wide-note article:last-child {
    border-bottom: 0;
  }
}
