/*
Theme Name: OPC Modern Clone
Theme URI: https://oregonpcr.com/
Author: OpenAI-assisted rebuild for Oregon Post-Conviction Consortium
Description: A lightweight modern WordPress theme that recreates the public-facing structure and visual character of the legacy OregonPCR.com site while remaining compatible with current WordPress/PHP.
Version: 1.6.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: opc-modern-clone
*/

:root {
  --opc-orange: #e87521;
  --opc-dark: #252525;
  --opc-nav: #3a3a3a;
  --opc-border: #dedede;
  --opc-shell: 990px;
  --opc-inner: 960px;
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; }
body {
  margin: 0;
  color: #555;
  background-color: #171717;
  background-image:
    url('/wp-content/uploads/2026/08/background.png'),
    linear-gradient(45deg, rgba(255,255,255,.018) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.018) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.018) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.018) 75%);
  background-size: auto, 24px 24px, 24px 24px, 24px 24px, 24px 24px;
  background-position: 0 0, 0 0, 0 12px, 12px -12px, -12px 0;
  background-repeat: repeat;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

a { color: #2d5f9a; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.opc-shell {
  width: min(var(--opc-shell), calc(100% - 32px));
  margin: 0 auto;
}

.site-header { padding: 30px 0 23px; }
.site-title {
  margin: 0;
  color: #f5f5f5;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.4px;
}
.site-title a { color: inherit; text-decoration: none; }
.site-description { position: absolute; left: -9999px; }

.main-navigation {
  background: linear-gradient(#454545, #343434);
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.03);
}
.main-navigation .menu-toggle {
  display: none;
  width: 100%;
  padding: 12px 15px;
  border: 0;
  background: #383838;
  color: #fff;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}
.main-navigation ul {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-navigation li { margin: 0; padding: 0; }
.main-navigation a {
  display: block;
  padding: 13px 16px 11px;
  color: #eee;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: #fff;
  background: rgba(0,0,0,.2);
}

.hero-shell {
  background: #fff;
  padding: 15px 15px 0;
}
.hero-shell .metaslider,
.hero-shell .ml-slider,
.hero-shell [class*="metaslider"] {
  max-width: var(--opc-inner) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.hero-fallback {
  min-height: 260px;
  background: #222;
  display: grid;
  place-items: center;
  color: #ddd;
  font-size: 15px;
}

.content-shell {
  background: #fff;
  padding: 14px 15px 28px;
  min-height: 320px;
}
.home .content-shell { padding-top: 14px; }

/* 1.4 homepage: keep slideshow and welcome panel inside one continuous white block. */
.home-combined-shell {
  background: #fff;
  padding: 15px 15px 28px;
  min-height: 610px;
}
.home-combined-shell .hero-shell {
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  background: transparent;
}
.home-combined-shell .hero-shell .metaslider,
.home-combined-shell .hero-shell .ml-slider,
.home-combined-shell .hero-shell [class*="metaslider"] {
  max-width: var(--opc-inner) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.home-combined-shell .home-welcome {
  margin: 0;
}

/* 1.5 interior pages: keep slideshow and page content inside one continuous white block. */
.page-combined-shell {
  background: #fff;
  padding: 15px 15px 28px;
  min-height: 610px;
}
.page-combined-shell .hero-shell {
  width: 100%;
  margin: 0;
  padding: 0 0 14px;
  background: transparent;
}
.page-combined-shell .hero-shell .metaslider,
.page-combined-shell .hero-shell .ml-slider,
.page-combined-shell .hero-shell [class*="metaslider"] {
  max-width: var(--opc-inner) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-combined-shell .page-content-inner {
  padding-top: 0;
}

.home-welcome {
  margin: 0 0 15px;
  padding: 16px 12px 13px;
  border: 1px solid #dedede;
  background: #f7f7f7;
}
.home-welcome h2 {
  margin: 0 0 8px;
  color: var(--opc-orange);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.entry-title {
  margin: 0 0 18px;
  color: #333;
  font-size: 24px;
  font-weight: 400;
}
.home .entry-title { display: none; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h1, .entry-content h2, .entry-content h3 {
  color: #333;
}
.entry-content h2 { color: var(--opc-orange); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 7px; border: 1px solid #ddd; }

.widget-area { font-size: 13px; }
.widget { margin: 0 0 24px; }
.widget-title,
.sidebar-heading {
  margin: 0 0 8px;
  padding: 0 0 7px;
  border-bottom: 1px solid #d8d8d8;
  color: #444;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 18px;
  text-transform: uppercase;
}
.widget ul, .opc-login-links { margin: 0; padding: 0; list-style: none; }
.widget li, .opc-login-links li { margin: 0 0 7px; }
.search-form { display: flex; width: 100%; }
.search-form label { flex: 1; }
.search-field {
  width: 100%;
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid #ddd;
}
.search-submit {
  min-height: 31px;
  border: 1px solid #ddd;
  border-left: 0;
  background: #f4f4f4;
  cursor: pointer;
}

.site-footer {
  border-top: 3px solid var(--opc-orange);
  background: #2d2d2d;
  color: #cfcfcf;
  text-align: center;
  padding: 23px 15px;
  font-size: 12px;
}

.pagination, .nav-links { margin-top: 25px; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 860px) {
  .opc-shell { width: min(var(--opc-shell), calc(100% - 20px)); }
  .site-header { padding: 22px 0 16px; }
  .site-title { font-size: 27px; }
  .main-navigation .menu-toggle { display: block; }
  .main-navigation ul { display: none; flex-direction: column; }
  .main-navigation.toggled ul { display: flex; }
  .main-navigation a { padding: 11px 14px; }
  .hero-shell { padding: 10px 10px 0; }
  .content-shell { padding: 12px 10px 24px; }
  .home-combined-shell { padding: 10px 10px 24px; min-height: 0; }
  .home-combined-shell .hero-shell { padding: 0 0 12px; }
  .page-combined-shell { padding: 10px 10px 24px; min-height: 0; }
  .page-combined-shell .hero-shell { padding: 0 0 12px; }
  .content-grid { grid-template-columns: 1fr; gap: 20px; }
  .widget-area { border-top: 1px solid #e2e2e2; padding-top: 18px; }
}

/* 1.1 legacy-detail refinements */
.widget-area .opc-legacy-search .search-form {
  position: relative;
}
.widget-area .opc-legacy-search .search-field {
  min-height: 31px;
  padding-right: 34px;
  background: #fff;
}
.widget-area .opc-legacy-search .search-submit {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  padding: 0;
  border: 0;
  overflow: hidden;
  text-indent: -9999px;
  background: transparent;
}
.widget-area .opc-legacy-search .search-submit::after {
  content: "\1F50D";
  position: absolute;
  inset: 0;
  text-indent: 0;
  color: #bbb;
  font-size: 13px;
  line-height: 18px;
}
.sidebar-heading {
  position: relative;
  padding-bottom: 8px;
}
.sidebar-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--opc-orange);
}
.opc-login-links a { color: #777; }
.opc-legacy-credit {
  padding: 7px 0 12px;
  color: #777;
  text-align: center;
  font-size: 11px;
}


/* 1.6: simplified, high-readability presentation for the PCR Forms Helper. */
.entry-content .opc-pcr-guide {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.65;
}
.entry-content .opc-pcr-guide h2 { line-height: 1.25; }
.entry-content .opc-pcr-guide h3 { line-height: 1.3; }
.entry-content .opc-pcr-guide .opc-pcr-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.entry-content .opc-pcr-guide select,
.entry-content .opc-pcr-guide textarea,
.entry-content .opc-pcr-guide input,
.entry-content .opc-pcr-guide button {
  font-size: 16px;
}
.entry-content .opc-pcr-guide summary {
  line-height: 1.35;
}
@media (max-width: 640px) {
  .entry-content .opc-pcr-guide { font-size: 16px; }
  .page-combined-shell { padding-left: 10px; padding-right: 10px; }
}
