/* ourrhine-theme — Main Stylesheet */

:root {
  --or-bg: #FAFAF8;
  --or-card: #FFFFFF;
  --or-primary: #0D7377;
  --or-primary-light: #E6F3F3;
  --or-accent: #D4720B;
  --or-text: #1A1A1A;
  --or-text-muted: #6B7280;
  --or-border: #E5E7EB;
  --or-border-dark: #D1D5DB;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--or-bg);
  color: var(--or-text);
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Literata', serif;
  line-height: 1.2;
}

a { color: var(--or-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ─── Container ─── */
.or-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Header ─── */
.or-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--or-border);
  padding: 0 2rem;
}

.or-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.or-logo {
  font-family: 'Literata', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--or-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.or-logo:hover { text-decoration: none; }
.or-logo span { color: var(--or-primary); }

.or-nav { display: flex; gap: 1.75rem; align-items: center; }

.or-nav a {
  color: var(--or-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.or-nav a:hover,
.or-nav a.active {
  color: var(--or-primary);
  border-bottom-color: var(--or-primary);
  text-decoration: none;
}

/* Nav menu WordPress overrides */
.or-nav .menu { list-style: none; display: flex; gap: 1.75rem; }
.or-nav .menu li { list-style: none; }
.or-nav .menu li a {
  color: var(--or-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.or-nav .menu li a:hover,
.or-nav .menu li.current-menu-item a,
.or-nav .menu li.current-menu-ancestor a {
  color: var(--or-primary);
  border-bottom-color: var(--or-primary);
  text-decoration: none;
}

/* Language Toggle */
.or-lang-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--or-border);
  border-radius: 6px;
  overflow: hidden;
}

.or-lang-toggle a {
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--or-text-muted);
  border-bottom: none !important;
  transition: all 0.2s;
}

.or-lang-toggle a:hover { text-decoration: none; }

.or-lang-toggle a.active {
  background: var(--or-primary);
  color: #fff;
}

/* Mobile menu toggle */
.or-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--or-text);
}

.or-nav-toggle svg { display: block; }

/* ─── Hero ─── */
.or-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 6rem 2rem 2rem;
  text-align: center;
}

.or-hero--image {
  position: relative;
  max-width: 100%;
  padding: 8rem 2rem 4rem;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.or-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.or-hero--image .or-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

.or-hero--image h1 { color: #fff; }
.or-hero--image .or-hero-line { background: #fff; }
.or-hero--image p { color: rgba(255,255,255,0.9); }

.or-hero h1 {
  font-family: 'Literata', serif;
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.or-hero-line {
  width: 60px;
  height: 3px;
  background: var(--or-primary);
  margin: 0 auto 1.25rem;
}

.or-hero p {
  font-family: 'Literata', serif;
  font-size: 1.15rem;
  color: var(--or-text-muted);
  font-style: italic;
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Stat Row ─── */
.or-stats {
  max-width: 960px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--or-border);
  border-bottom: 1px solid var(--or-border);
}

.or-stat {
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid var(--or-border);
}

.or-stat:last-child { border-right: none; }

.or-stat-number {
  font-family: 'Literata', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--or-primary);
  line-height: 1.2;
}

.or-stat-label {
  font-size: 0.8rem;
  color: var(--or-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* ─── Sections ─── */
.or-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.or-section-title {
  font-family: 'Literata', serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--or-text-muted);
  margin-bottom: 2rem;
}

/* ─── Topic Cards ─── */
.or-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.or-topic-card {
  background: var(--or-card);
  border: 1px solid var(--or-border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.or-topic-card:hover {
  border-color: var(--or-primary);
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.08);
  text-decoration: none;
}

.or-topic-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--or-primary);
  margin-bottom: 0.75rem;
}

.or-topic-card h3 {
  font-family: 'Literata', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.or-topic-card p {
  font-size: 0.95rem;
  color: var(--or-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.or-topic-link {
  font-size: 0.85rem;
  color: var(--or-primary);
  font-weight: 600;
}

/* ─── Article List ─── */
.or-articles { display: flex; flex-direction: column; }

.or-article-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--or-border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.or-article-item:first-child { border-top: 1px solid var(--or-border); }
.or-article-item:hover { opacity: 0.8; text-decoration: none; }

.or-article-thumb {
  width: 100px;
  height: 72px;
  border-radius: 4px;
  background: var(--or-primary-light);
  flex-shrink: 0;
  overflow: hidden;
}

.or-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.or-article-body h4 {
  font-family: 'Literata', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.or-article-body p {
  font-size: 0.88rem;
  color: var(--or-text-muted);
  line-height: 1.5;
}

.or-article-meta {
  font-size: 0.75rem;
  color: var(--or-text-muted);
  margin-top: 0.4rem;
}

.or-article-meta .or-tag {
  color: var(--or-primary);
  font-weight: 600;
}

/* ─── Key Fact ─── */
.or-keyfact {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.or-keyfact-box {
  border-left: 4px solid var(--or-accent);
  background: var(--or-card);
  padding: 1.5rem 2rem;
  border-radius: 0 4px 4px 0;
}

.or-keyfact-box .or-stat-number {
  font-size: 1.6rem;
  color: var(--or-accent);
  margin-bottom: 0.25rem;
}

.or-keyfact-box p {
  font-size: 0.95rem;
  color: var(--or-text-muted);
}

.or-keyfact-source {
  font-size: 0.75rem;
  color: var(--or-text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── Author ─── */
.or-author {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  text-align: center;
}

.or-author-line {
  width: 40px;
  height: 2px;
  background: var(--or-border-dark);
  margin: 0 auto 1.5rem;
}

.or-author-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.or-author-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.or-author-info { text-align: left; }

.or-author-name {
  font-family: 'Literata', serif;
  font-size: 1rem;
  font-weight: 600;
}

.or-author-role {
  font-size: 0.88rem;
  color: var(--or-text-muted);
}

.or-author-portrait {
  max-width: 400px;
  margin: 2rem auto;
}

.or-author-portrait img {
  border-radius: 8px;
  width: 100%;
}

/* ─── Single Article ─── */
.or-single {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.or-single__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--or-border);
}

.or-single__header h1 {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.or-single__meta {
  font-size: 0.85rem;
  color: var(--or-text-muted);
}

.or-single__meta .or-tag {
  color: var(--or-primary);
  font-weight: 600;
}

.or-single__thumbnail {
  margin-bottom: 2rem;
  border-radius: 4px;
  overflow: hidden;
}

.or-single__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.or-single__content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.or-single__content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.or-single__content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.or-single__content p { margin-bottom: 1.25rem; }

.or-single__content ul,
.or-single__content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.or-single__content li { margin-bottom: 0.4rem; }

.or-single__content blockquote {
  border-left: 4px solid var(--or-primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--or-primary-light);
  font-style: italic;
  color: var(--or-text-muted);
}

.or-single__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.or-single__content table th {
  background: var(--or-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.or-single__content table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--or-border);
}

.or-single__content table tr:nth-child(even) td {
  background: var(--or-primary-light);
}

.or-single__content figure {
  margin: 2rem 0;
}

.or-single__content figcaption {
  font-size: 0.82rem;
  color: var(--or-text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  text-align: center;
}

.or-single__content img {
  border-radius: 4px;
}

.or-single__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--or-border);
}

/* Source list in articles */
.or-sources {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--or-border);
}

.or-sources h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--or-text-muted);
  margin-bottom: 1rem;
}

.or-sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.or-sources li {
  font-size: 0.85rem;
  color: var(--or-text-muted);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--or-border);
}

.or-sources li a { color: var(--or-primary); }

/* Post navigation */
.or-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.or-post-nav a {
  font-size: 0.9rem;
  color: var(--or-text-muted);
  transition: color 0.2s;
}

.or-post-nav a:hover { color: var(--or-primary); text-decoration: none; }

/* ─── Page ─── */
.or-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.or-page h1 {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.or-page-line {
  width: 60px;
  height: 3px;
  background: var(--or-primary);
  margin-bottom: 2rem;
}

.or-page__content {
  font-size: 1.05rem;
  line-height: 1.85;
}

.or-page__content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.or-page__content h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.or-page__content p { margin-bottom: 1.25rem; }
.or-page__content ul,
.or-page__content ol { margin: 1rem 0 1.25rem 1.5rem; }
.or-page__content li { margin-bottom: 0.4rem; }

/* ─── Data Page Tables ─── */
.or-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
  font-size: 0.92rem;
  font-family: 'Source Sans 3', sans-serif;
}

.or-page__content table th {
  background: var(--or-primary);
  color: #fff;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.or-page__content table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--or-border);
  vertical-align: top;
}

.or-page__content table td:nth-child(2) {
  font-weight: 600;
  color: var(--or-primary);
  white-space: nowrap;
}

.or-page__content table td:nth-child(3) {
  font-size: 0.82rem;
  color: var(--or-text-muted, #6b7280);
}

.or-page__content table tr:nth-child(even) td {
  background: var(--or-primary-light);
}

.or-page__content table tr:hover td {
  background: rgba(13, 115, 119, 0.06);
}

.or-data-intro {
  font-size: 1.1rem;
  color: var(--or-text-muted, #6b7280);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--or-border);
}

.or-data-footer {
  font-size: 0.85rem;
  color: var(--or-text-muted, #6b7280);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--or-border);
  font-style: italic;
}

/* ─── Archive ─── */
.or-archive {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.or-archive__header {
  margin-bottom: 2.5rem;
}

.or-archive__header h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.or-archive__desc {
  font-size: 1rem;
  color: var(--or-text-muted);
  font-style: italic;
}

.or-pagination {
  margin-top: 3rem;
  text-align: center;
}

.or-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.or-pagination .page-numbers {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--or-border);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--or-text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.or-pagination .page-numbers.current,
.or-pagination .page-numbers:hover {
  background: var(--or-primary);
  color: #fff;
  border-color: var(--or-primary);
}

/* ─── Breadcrumbs ─── */
.or-breadcrumbs {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: 0.8rem;
  color: var(--or-text-muted);
}

.or-breadcrumbs a {
  color: var(--or-text-muted);
  text-decoration: none;
}

.or-breadcrumbs a:hover { color: var(--or-primary); }
.or-breadcrumbs .or-sep { margin: 0 0.4rem; }

/* ─── 404 ─── */
.or-404 {
  max-width: 960px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}

.or-404 h1 {
  font-size: 5rem;
  color: var(--or-primary);
  margin-bottom: 0.5rem;
}

.or-404 h2 {
  font-size: 1.4rem;
  color: var(--or-text-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.or-404 p { color: var(--or-text-muted); margin-bottom: 1.5rem; }

/* ─── Buttons ─── */
.or-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--or-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.or-btn:hover { opacity: 0.9; text-decoration: none; color: #fff; }

/* ─── Search Form ─── */
.or-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}

.or-search-form__input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--or-border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Source Sans 3', sans-serif;
}

.or-search-form__input:focus {
  outline: none;
  border-color: var(--or-primary);
}

.or-search-form__submit {
  padding: 0.6rem 1.2rem;
  background: var(--or-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
}

/* ─── Footer ─── */
.or-footer {
  border-top: 1px solid var(--or-border);
  padding: 2rem;
  text-align: center;
  color: var(--or-text-muted);
  font-size: 0.82rem;
}

.or-footer a {
  color: var(--or-text-muted);
  text-decoration: none;
}

.or-footer a:hover { color: var(--or-primary); }
.or-footer-links { margin-bottom: 0.5rem; }
.or-footer-links a { margin: 0 0.6rem; }
.or-footer .menu { list-style: none; display: flex; justify-content: center; gap: 1.2rem; margin-bottom: 0.5rem; }
.or-footer .menu li a { margin: 0; }

/* ─── Silo Page ─── */
.or-silo {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.or-silo__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.or-silo__header h1 {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.or-silo__header p {
  font-size: 1.05rem;
  color: var(--or-text-muted);
  font-style: italic;
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .or-hero h1 { font-size: 2.2rem; }
  .or-stats { grid-template-columns: 1fr; }
  .or-stat { border-right: none; border-bottom: 1px solid var(--or-border); }
  .or-stat:last-child { border-bottom: none; }
  .or-topics { grid-template-columns: 1fr; }
  .or-article-item { flex-direction: column; }
  .or-article-thumb { width: 100%; height: 150px; }
  .or-nav { display: none; }
  .or-nav--open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(250,250,248,0.98); backdrop-filter: blur(12px); padding: 1.5rem 2rem; border-bottom: 1px solid var(--or-border); gap: 1rem; }
  .or-nav--open .menu { flex-direction: column; gap: 1rem; }
  .or-nav-toggle { display: block; }
  .or-header-inner { position: relative; }
  .or-single__header h1 { font-size: 1.8rem; }
  .or-page h1 { font-size: 1.8rem; }
  .or-hero--image { padding: 5rem 2rem 3rem; }
  .or-post-nav { flex-direction: column; }
}

/* Infographics */
.or-infographic { margin: 2rem 0; text-align: center; }
.or-infographic img { max-width: 100%; height: auto; }
