/* Oipinios — shared site chrome & layout (Phase 3) */
:root {
  --brand: #a11f2c;
  --brand-hot: #c42938;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --paper: #ffffff;
  --sand: #c4a574;
  --sand-dark: #a88955;
  --footer: #1c1c1c;
  --footer-bar: #111111;
  --max: 1160px;
  --sidebar: 320px;
  --radius: 2px;
  --font: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hot); }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* ===== TOP BAR ===== */
.topbar {
  background: #2b2b2b;
  color: #f2f2f2;
  font-size: 13px;
  min-height: 34px;
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(100% - 24px, var(--max));
}
.topbar-date { color: #f0f0f0; letter-spacing: 0.02em; }
.topbar-social { display: flex; gap: 10px; align-items: center; }
.topbar-social a {
  color: #f5f5f5;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.topbar-social a:hover { color: var(--sand); }
.topbar-social svg { width: 14px; height: 14px; fill: currentColor; }

/* ===== HEADER / LOGO ===== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 22px 0 0;
}
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 14px;
}
.brand img,
.brand svg {
  height: 48px;
  width: auto;
}

/* ===== NAV ===== */
.site-nav {
  border-top: 1px solid var(--line);
  position: relative;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  position: relative;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  align-items: center;
}
.nav-menu a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 0;
  display: inline-block;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { color: var(--brand); }

.nav-search {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.nav-search summary {
  list-style: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.nav-search summary::-webkit-details-marker { display: none; }
.nav-search summary:hover { color: var(--brand); }
.nav-search form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px;
  display: flex;
  gap: 8px;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  width: min(320px, 80vw);
}
.nav-search input[type="search"] {
  flex: 1;
  border: 1px solid #ccc;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.nav-search button {
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-search button:hover { background: var(--brand-hot); }

/* ===== LAYOUT ===== */
.site-main { padding: 28px 0 48px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar);
  gap: 36px;
  align-items: start;
}
.layout-full { grid-template-columns: 1fr; }

/* ===== POST GRID ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f3f3;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #222;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  padding: 5px 10px;
  z-index: 1;
}
.cat-badge:hover { color: #fff; background: var(--brand); }
.post-card h2,
.post-card .entry-title {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
  color: #2a2a2a;
}
.post-card h2 a,
.post-card .entry-title a { color: inherit; }
.post-card h2 a:hover,
.post-card .entry-title a:hover { color: var(--brand); }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.post-meta .author { color: #2f6fed; font-weight: 600; }
.post-meta .author:hover { color: var(--brand); }
.post-excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  border: 0;
}
.widget-title {
  background: var(--sand);
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  margin: 0 0 14px;
}
.popular-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: start;
}
.popular-item.featured {
  grid-template-columns: 1fr;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.popular-item .p-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
}
.popular-item.featured .p-thumb { aspect-ratio: 16 / 10; }
.popular-item .p-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popular-item h3 {
  font-family: var(--display);
  font-size: 0.98rem;
  line-height: 1.3;
  margin: 0 0 4px;
  font-weight: 700;
}
.popular-item h3 a { color: var(--ink); }
.popular-item h3 a:hover { color: var(--brand); }
.popular-item .meta { color: var(--muted); font-size: 12px; }

.cat-list li {
  border-bottom: 1px solid var(--line);
}
.cat-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  color: var(--ink);
  font-weight: 600;
}
.cat-list a:hover { color: var(--brand); }
.cat-list .count {
  color: var(--muted);
  font-weight: 600;
}

.social-follow { display: grid; gap: 8px; }
.social-follow a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius);
}
.social-follow a.fb { background: #3b5998; }
.social-follow a.tw { background: #1da1f2; }
.social-follow a.yt { background: #cd201f; }
.social-follow a.ig { background: #c13584; }
.social-follow a:hover { filter: brightness(1.06); color: #fff; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  background: #fff;
}
.pagination a:hover { border-color: var(--sand); color: var(--brand); }
.pagination .current {
  background: var(--sand);
  border-color: var(--sand);
  color: #1a1a1a;
}
.pagination .pages-info {
  margin-left: auto;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  background: transparent;
}

/* ===== ARTICLE ===== */
.article-wrap { max-width: 760px; }
.article-cat {
  display: inline-block;
  background: #222;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  margin-bottom: 12px;
  text-transform: capitalize;
}
.article-cat:hover { color: #fff; background: var(--brand); }
.article-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.article-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.article-meta .author { color: #2f6fed; font-weight: 600; }
.article-body {
  color: #222;
  font-size: 1.05rem;
  line-height: 1.7;
}
.article-body p { margin: 0 0 1.1em; }
.article-body h2,
.article-body h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.25;
  margin: 1.4em 0 0.6em;
}
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body img { margin: 1em 0; }
.article-body ul,
.article-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.article-body li { margin: 0.35em 0; list-style: disc; }

.page-title {
  font-family: var(--display);
  font-size: 2rem;
  margin: 0 0 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer);
  color: #e8e8e8;
  padding: 42px 0 0;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr 0.9fr;
  gap: 28px;
  padding-bottom: 36px;
}
.footer-brand img { height: 42px; width: auto; }
.footer-title {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.footer-about {
  color: #d6d6d6;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 12px;
}
.footer-about a,
.footer-contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-about a:hover,
.footer-contact a:hover { color: var(--sand); }
.footer-contact { color: #d6d6d6; font-size: 0.95rem; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: #2a2a2a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social a:hover { background: var(--brand); color: #fff; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bar {
  background: var(--footer-bar);
  color: #cfcfcf;
  text-align: center;
  font-size: 13px;
  padding: 14px 12px;
}

/* ===== SEARCH RESULTS ===== */
.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.search-box input {
  flex: 1;
  border: 1px solid #ccc;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.search-box button {
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.search-results li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-results a { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.search-results a:hover { color: var(--brand); }
.search-results .meta { color: var(--muted); font-size: 13px; }

/* ===== 404 ===== */
.not-found {
  text-align: center;
  padding: 48px 16px;
}
.not-found h1 {
  font-family: var(--display);
  font-size: 2.4rem;
  margin: 0 0 12px;
}
.not-found p { color: var(--ink-soft); }
.btn {
  display: inline-block;
  margin-top: 18px;
  background: var(--brand);
  color: #fff !important;
  padding: 12px 20px;
  font-weight: 700;
}
.btn:hover { background: var(--brand-hot); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-search { position: static; transform: none; margin-left: auto; }
  .site-nav .container { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
  }
  .site-nav.is-open .nav-menu { display: flex; }
  .nav-menu a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .pagination .pages-info { width: 100%; margin-left: 0; justify-content: flex-start; border: 0; }
}

@media (max-width: 375px) {
  body { font-size: 15px; }
  .brand img, .brand svg { height: 40px; }
  .post-card h2, .post-card .entry-title { font-size: 1.15rem; }
  .article-title { font-size: 1.45rem; }
  .topbar { font-size: 12px; }
}


.yt-thumb{position:relative;display:block;max-width:100%;margin:1em 0;aspect-ratio:16/9;background:#111;overflow:hidden}
.yt-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.yt-thumb .yt-play{position:absolute;inset:0;display:grid;place-items:center}
.yt-thumb .yt-play::before{content:"";width:68px;height:48px;background:rgba(200,0,0,.92);border-radius:12px;clip-path:polygon(30% 20%, 30% 80%, 75% 50%);display:block}
.yt-thumb:hover .yt-play::before{background:rgba(255,0,0,.95)}
.post-card .thumb.no-image,.popular-item .p-thumb.no-image{display:none}
.post-card.no-feat .thumb{display:none}


.article-featured{margin:0 0 18px}
.article-featured img{width:100%;height:auto;border-radius:2px}


/* Phase 6 — legal pages + cookie consent */
.footer-grid { grid-template-columns: 1fr 1.3fr 1fr 0.9fr; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 8px; }
.footer-links a,
.footer-cookie-btn {
  color: #fff;
  font-size: 0.92rem;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.footer-links a:hover,
.footer-cookie-btn:hover { color: var(--sand); text-decoration: underline; }

.legal-body h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0 1rem; }
.legal-body li { margin: 0.35rem 0; }
.legal-body .form-note { color: var(--muted); font-size: 0.9rem; }
.contact-form { display: grid; gap: 12px; max-width: 520px; margin: 20px 0; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input,
.contact-form textarea {
  border: 1px solid #ccc;
  padding: 10px 12px;
  font: inherit;
}
.text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.not-found-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.not-found-links a {
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 600;
}
.not-found-links a:hover { border-color: var(--brand); color: var(--brand); }

.cc-banner {
  position: fixed;
  z-index: 99999;
  left: 0; right: 0; bottom: 0;
  background: #161616;
  color: #f2f2f2;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  padding: 16px;
}
.cc-banner[hidden], .cc-modal[hidden] { display: none !important; }
.cc-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cc-copy { flex: 1 1 280px; }
.cc-copy p { margin: 6px 0 0; color: #d0d0d0; font-size: 0.92rem; line-height: 1.5; }
.cc-copy a { color: #fff; text-decoration: underline; }
.cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-btn {
  border: 0;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}
.cc-accept { background: var(--brand); color: #fff; }
.cc-reject { background: #333; color: #fff; }
.cc-manage { background: #fff; color: #111; }
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,.55);
  display: grid;
  place-items: center;
  padding: 16px;
}
.cc-modal-card {
  background: #fff;
  color: var(--ink);
  max-width: 520px;
  width: 100%;
  padding: 22px;
  border-radius: 2px;
}
.cc-modal-card h2 { margin: 0 0 8px; font-family: var(--display); }
.cc-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 0.95rem; }
.cc-links { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cc-inner { flex-direction: column; align-items: stretch; }
}


.related-posts{margin:2rem 0 1rem;padding-top:1.25rem;border-top:1px solid var(--line)}
.related-posts h2{font-family:var(--display);font-size:1.35rem;margin:0 0 0.75rem}
.related-posts ul{list-style:disc;padding-left:1.2rem;margin:0}
.related-posts li{margin:0.4rem 0}
.further-reading{margin:1.5rem 0;padding:1rem 1.1rem;background:#f7f7f7;border-left:3px solid var(--brand)}
.further-reading ul{list-style:disc;padding-left:1.2rem;margin:0.4rem 0 0}
.further-reading p{margin:0}

.see-also{margin:1.25rem 0;padding:0.75rem 0;border-top:1px dashed var(--line);font-size:0.95rem}
