/*
Theme Name: SDPZ
Theme URI: https://sdpz.co.rs/
Author: Srpsko društvo za proučavanje zemljišta
Author URI: https://sdpz.co.rs/
Description: Quiet, minimal, earth-rooted theme for the Serbian Society of Soil Science (Srpsko društvo za proučavanje zemljišta). Bilingual-ready (Latin Serbian + English), accessible, soil-profile color story drawn from the SDPZ logo. Includes Publications and Events custom post types, block patterns, translation files, and footer/sidebar widgets.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sdpz
Tags: classic-theme, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, translation-ready, blog, education, news, two-columns, threaded-comments, block-patterns, block-styles, accessibility-ready
*/

/* ============================================================
   SDPZ Theme — main stylesheet
   Tokens and base typography are imported from assets/css/tokens.css
   via the enqueue in functions.php. This file holds layout,
   templates, and component CSS.
   ============================================================ */

/* -------- Containers & rhythm -------- */
.container { width: min(100% - 48px, 1240px); margin-inline: auto; }
.prose { max-width: var(--prose-max, 680px); }

main { display: block; }

section { padding-block: var(--section-y, 96px); }
@media (max-width: 900px) { section { padding-block: var(--section-y-tablet, 64px); } }
@media (max-width: 600px) { section { padding-block: var(--section-y-mobile, 48px); } }

.section-tight { padding-block: 56px; }
.section-flush { padding-block: 0; }

/* -------- Skip link -------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--sdpz-brown-700);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; color: inherit; }
.brand:hover { text-decoration: none; }
.brand img, .brand .brand-mark { height: 70px; display: block; flex-shrink: 0; }
.brand .word { font-size: 18px; font-weight: 600; color: var(--sdpz-brown-700); letter-spacing: .02em; line-height: 1.1; }
.brand .sub { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--color-fg-3); margin-top: 4px; line-height: 1.4; }

.nav-primary {
  display: flex; gap: 25px; font-size: 17px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-primary li { position: relative; }
.nav-primary > li > a {
  color: var(--color-fg-2); text-decoration: none;
  padding: 22px 0; display: inline-flex; align-items: center;
  transition: color var(--dur-base) var(--ease-out);
}
.nav-primary > li > a:hover { color: var(--sdpz-orange-500); text-decoration: none; }
.nav-primary > li.current-menu-item > a,
.nav-primary > li.current-menu-parent > a,
.nav-primary > li.current-menu-ancestor > a {
  color: var(--sdpz-brown-700); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--sdpz-orange-500);
}

.nav-primary .sub-menu {
  position: absolute; top: 100%; left: -16px;
  min-width: 260px;
  background: var(--sdpz-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 8px;
  list-style: none; margin: 0;
  display: none;
  z-index: 10;
}
.nav-primary > li.lang-item{
  margin-left: 20px;
}
.nav-primary > li:hover > .sub-menu,
.nav-primary > li:focus-within > .sub-menu { display: block; }
.nav-primary .sub-menu li { display: block; }
.nav-primary .sub-menu a {
  display: block; padding: 8px 12px; font-size: 16px;
  color: var(--color-fg-1); text-decoration: none; border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease-out);
}
.nav-primary .sub-menu a:hover { background: var(--sdpz-brown-100); color: var(--sdpz-brown-700); }

.nav-primary .sub-menu .sub-menu {
  position: static;
  display: block;
  background: transparent;
  border: 0; border-radius: 0;
  box-shadow: none;
  padding: 0 0 4px 20px;
  margin: 0;
  min-width: 0;
}
.nav-primary .sub-menu .sub-menu a { font-size: 15px; color: var(--color-fg-2); }
.nav-primary .sub-menu .menu-item-has-children > a .caret { display: none; }

.lang-switch { display: flex; gap: 4px; font-size: 13px; color: var(--color-fg-3); flex-shrink: 0; align-items: center; display:none;}
.lang-switch a, .lang-switch button {
  background: none; border: none; color: inherit; cursor: pointer; font: inherit;
  padding: 4px 6px; text-decoration: none;
}
.lang-switch .active, .lang-switch a[aria-current] { color: var(--sdpz-brown-700); font-weight: 600; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--color-border);
  border-radius: var(--r-sm); padding: 8px 12px;
  font: inherit; color: var(--color-fg-1); cursor: pointer;
}

.submenu-toggle { display: none; }


@media (max-width: 1100px) {
  .nav-primary {
    font-size: 16px;
    gap: 20px;
  }
}

@media (max-width: 1000px) {
  .nav-primary {
    font-size: 15px;
    gap: 19px;
  }
}

@media (max-width: 950px) {
  .nav-primary {
    font-size: 14px;
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .nav-primary {
    gap: 15px;
  }
  .brand .sub{
    font-size: 10px;
  }
  .brand img, .brand .brand-mark {
    height: 60px;
  }
  .nav-primary > li.lang-item {
    margin-left: 15px;
} 
}

@media (max-width: 860px) {
  .brand img, .brand .brand-mark {
    height: 70px;
  }
  .brand .sub{
    font-size: 11px;
  }
  .nav-primary {
    font-size: 18px;
  }
  .nav-primary { display: none; } 

  .menu-toggle { display: inline-flex; gap: 6px; align-items: center; }
  .nav-primary.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: var(--sdpz-header-h, 102px); left: 0; right: 0;
    height: calc(100dvh - var(--sdpz-header-h, 102px));
    background: var(--sdpz-surface); border-bottom: 1px solid var(--color-border);
    padding: 12px 24px;
    box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain;
  }
  .nav-primary.is-open > li > a { padding: 12px 0; display: block; }
  .nav-primary.is-open .sub-menu { position: static; box-shadow: none; border: none; padding: 0 0 8px 16px; min-width: 0; }

  .nav-primary.is-open li.menu-item-has-children {
    display: flex; flex-wrap: wrap; align-items: stretch;
  }
  .nav-primary.is-open li.menu-item-has-children > a { flex: 1; min-width: 0; }
  .nav-primary.is-open li.menu-item-has-children > .submenu-toggle {
    display: flex; align-items: center; justify-content: center;
    background: none; border: 0; cursor: pointer; color: inherit;
    padding: 0 14px; min-width: 44px; font-size: 18px;
    flex: 0 0 auto;
  }
  .nav-primary.is-open li.menu-item-has-children > .submenu-toggle > span {
    display: inline-block;
    transition: transform var(--dur-fast) var(--ease-out);
  }
  .nav-primary.is-open li.menu-item-has-children.is-expanded > .submenu-toggle > span {
    transform: rotate(180deg);
  }
  .nav-primary.is-open li.menu-item-has-children > .sub-menu { flex-basis: 100%; display: none; }
  .nav-primary.is-open li.menu-item-has-children.is-expanded > .sub-menu { display: block; }

  .nav-primary > li.lang-item{
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .site-header .container {
    width: calc(100% - 24px);
  }
  .site-header .bar {
    gap: 12px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand img,
  .brand .brand-mark {
    height: 56px;
  }
  .menu-toggle > span:last-child {
    display: none;
  }
}

@media (max-width: 320px) {
  .brand .sub {
    font-size: 9px;
  }
}

@media (max-width: 280px) {
  .brand .sub {
    font-size: 8px;
  }
}
/* ============================================================
   Page templates: with sidebar / parent page
   ============================================================ */

.page-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 50px;
  align-items: start;
  margin: 0 0 64px;
}
.section-sidebar {
  position: sticky; top: 96px;
  border-left: 1px solid var(--color-border);
  padding-left: 24px;
  order: 2;
  margin-top: 100px;
}
.section-sidebar__title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--sdpz-brown-700); margin: 0 0 16px;
  font-weight: 600;
}
.section-sidebar__list,
.section-sidebar .children {
  list-style: none; margin: 0; padding: 0;
}
.section-sidebar .children {
  padding-left: 16px;
  /* border-left: 1px solid var(--color-border); */
  margin: 4px 0 8px 0;
}
.section-sidebar li { margin: 2px 0; }
.section-sidebar a {
  display: block; padding: 6px 0; font-size: 16px;
  color: var(--color-fg-2); text-decoration: none; line-height: 1.4;
  transition: color var(--dur-fast) var(--ease-out);
}
.section-sidebar a:hover { color: var(--sdpz-orange-500); }
.section-sidebar .current_page_item > a,
.section-sidebar .current_page_ancestor > a {
  color: var(--sdpz-brown-700); font-weight: 600;
}
.section-sidebar .current_page_item > a {
  box-shadow: inset 2px 0 0 var(--sdpz-orange-500);
  margin-left: -24px; padding-left: 22px;
  
}
.section-sidebar ul.children .current_page_item > a{
  margin-left: -16px; padding-left: 16px;
}
.section-sidebar .page_item-root > a {
  font-weight: 600; color: var(--sdpz-brown-700);
  padding-bottom: 10px; border-bottom: 1px solid var(--color-border);
  margin-bottom: 6px;
}

.breadcrumb {
  font-size: 13px; color: var(--color-fg-3); margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: .06em;
}
.breadcrumb a { color: var(--color-fg-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--sdpz-orange-500); }
.breadcrumb span[aria-hidden="true"] { margin: 0 6px; opacity: .5; }

.subpages { margin-top: 0; padding-top: 0; }
.subpages .card__thumb { display: block; margin: -24px -24px 16px; }
.subpages .card__thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .page-with-sidebar { grid-template-columns: 1fr; gap: 32px; }
  .section-sidebar { position: static; border-left: 0; border-top: 1px solid var(--color-border); padding: 16px 0 0; }
}

/* Pages: remove the prose width cap on title and body. Posts keep theirs. */
.page--simple .article-header h1,
.page--with-sidebar .article-header h1,
.page--parent .article-header h1,
.page--simple .article-header .lead,
.page--with-sidebar .article-header .lead,
.page--parent .article-header .lead { max-width: none; }

.page--simple .article-body > *,
.page--with-sidebar .article-body > *,
.page--parent .article-body > *,
.page--simple .article-body h2,
.page--with-sidebar .article-body h2,
.page--parent .article-body h2,
.page--simple .article-body h3,
.page--with-sidebar .article-body h3,
.page--parent .article-body h3,
.page--simple .article-body blockquote,
.page--with-sidebar .article-body blockquote,
.page--parent .article-body blockquote { max-width: 100%; margin-inline: 0; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 16px; cursor: pointer;
  border: none; padding: 12px 22px;
  border-radius: var(--r-sm);
  transition: background var(--dur-base) var(--ease-out);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sdpz-brown-600); color: #fff; }
.btn-primary:hover { background: var(--sdpz-brown-700); color: #fff; }
.btn-accent  { background: var(--sdpz-orange-500); color: #fff; }
.btn-accent:hover { background: var(--sdpz-orange-600); color: #fff; }
.btn-ghost   { background: transparent; color: var(--sdpz-brown-700); border: 1px solid var(--sdpz-brown-300); }
.btn-ghost:hover { background: var(--sdpz-brown-100); color: var(--sdpz-brown-700); }

/* ============================================================
   Hero
   ============================================================ */

.hero { padding-top: 60px; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: 3fr 1fr; gap: 56px; align-items: stretch; }
.hero-text .hero-eyebrow { display: block; margin-bottom: 18px; color: var(--sdpz-brown-700); }
.hero-title {
  font-size: clamp(40px, 4.2vw + 8px, 64px);
  line-height: 1.05; font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--sdpz-brown-900);
  margin: 0 0 32px;
  max-width: 18ch; text-wrap: balance;
}
.passage{
  margin-top: 6%;
}
.passage p {
  font-size: clamp(20px, 1.4vw + 12px, 26px);
  line-height: 1.55; font-weight: 400; font-style: italic;
  color: var(--sdpz-brown-900); letter-spacing: -0.005em;
  margin: 0 0 22px; max-width: 720px; text-wrap: balance;
}
.passage p:last-child { color: var(--color-fg-2); margin-bottom: 0; }
.hero-media { display: flex; align-items: stretch; justify-content: flex-end; }
.hero-media .hero-img {
  width: 100%; max-width: 280px;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  /*b order: 1px solid var(--color-border); */
  align-self: stretch; 
  min-height: 500px;
  border-radius: 10px;
}
@media (max-width: 900px) {
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { justify-content: center; }
  .hero-media .hero-img { max-width: 240px; min-height: 480px; }
}
@media (max-width: 500px) {
  .hero { padding-top: 30px; padding-bottom: 30px; }
}

/* horizon rule (3-band soil divider) */
.horizon-rule { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-block: var(--space-7, 48px); }
.horizon-rule div { flex: 1; }
.horizon-rule div:nth-child(1) { background: var(--sdpz-brown-700); }
.horizon-rule div:nth-child(2) { background: var(--sdpz-orange-500); }
.horizon-rule div:nth-child(3) { background: var(--sdpz-yellow-400); }

/* ============================================================
   Section header
   ============================================================ */

.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head .label { display: block; margin-bottom: 12px; }
.section-head h2 { margin: 0 0 12px; }
.section-head p { color: var(--color-fg-2); margin: 0; }

/* ============================================================
   Cards & grids
   ============================================================ */

.card {
  background: var(--sdpz-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 28px;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { border-color: var(--sdpz-brown-300); box-shadow: var(--shadow-card); }
.card a { color: inherit; text-decoration: none; }
.card .meta { font-size: 13px; color: var(--color-fg-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.card h3 { margin: 0 0 12px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.card h3 a:hover { color: var(--sdpz-orange-600); }
.card p { font-size: 15px; line-height: 1.6; color: var(--color-fg-2); margin: 0 0 16px; }
.card .read-more { font-size: 14px; font-weight: 600; color: var(--sdpz-orange-500); }
.card .read-more:hover { color: var(--sdpz-orange-600); text-decoration: underline; }

.card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; }
}

/* Quad banners */
.quad-section { padding-block: 0 var(--section-y, 96px); }
.quads { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .quads { grid-template-columns: 1fr; } }

.quad {
  display: flex; flex-direction: column; gap: 12px;
  padding: 36px 36px 32px;
  border-radius: var(--r-md); text-decoration: none;
  background: var(--sdpz-surface); border: 1px solid var(--color-border);
  min-height: 200px; position: relative; overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  color: inherit;
}
.quad:hover { box-shadow: var(--shadow-card); border-color: var(--sdpz-brown-300); text-decoration: none; }
.quad-icon { width: 56px; height: 56px; border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quad h3 { margin: 6px 0 0; font-size: 22px; font-weight: 600; line-height: 1.25; }
.quad p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--color-fg-2); }
.quad-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }

.quad::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.quad.tone-brown::before  { background: var(--sdpz-brown-600); }
.quad.tone-orange::before { background: var(--sdpz-orange-500); }
.quad.tone-yellow::before { background: var(--sdpz-yellow-400); }
.quad.tone-green::before  { background: var(--sdpz-green-600); }

.quad.tone-brown  .quad-icon { background: rgba(122,90,58,.10); color: var(--sdpz-brown-700); }
.quad.tone-orange .quad-icon { background: rgba(200,113,45,.12); color: var(--sdpz-orange-600); }
.quad.tone-yellow .quad-icon { background: rgba(217,169,74,.20); color: #8a6a1e; }
.quad.tone-green  .quad-icon { background: rgba(74,122,66,.12); color: var(--sdpz-green-700); }

.quad.tone-brown  h3, .quad.tone-brown  .quad-cta { color: var(--sdpz-brown-700); }
.quad.tone-orange h3, .quad.tone-orange .quad-cta { color: var(--sdpz-orange-600); }
.quad.tone-yellow h3, .quad.tone-yellow .quad-cta { color: #8a6a1e; }
.quad.tone-green  h3, .quad.tone-green  .quad-cta { color: var(--sdpz-green-700); }

/* ============================================================
   Tags
   ============================================================ */

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--sdpz-yellow-200); color: #6e5316;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; text-decoration: none;
}
.tag:hover { background: var(--sdpz-yellow-300); text-decoration: none; }
.tag-brown { background: var(--sdpz-brown-100); color: var(--sdpz-brown-700); }
.tag-green { background: rgba(74,122,66,.14); color: var(--sdpz-green-700); }
.tag-blue  { background: var(--sdpz-blue-200); color: #2f5a7a; }

/* ============================================================
   Article (single post / page)
   ============================================================ */

.article-header { padding-block: 32px 32px; border-bottom: var(--border-hairline); margin-bottom: 48px; }
.article-header .meta { font-size: 13px; color: var(--color-fg-3); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.article-header h1 { margin: 0 0 0px; max-width: 22ch; }
.article-header .lead { max-width: 60ch; }

.article-body { font-size: var(--fs-body, 17px); line-height: var(--lh-body, 1.6); color: var(--color-fg-1); }
.article-body > * { max-width: var(--prose-max, 680px); margin-inline: auto; }
.article-body > .alignwide,
.article-body > .alignfull,
.article-body > figure.alignwide,
.article-body > figure.alignfull { max-width: 1100px; }
.article-body > .alignfull { max-width: 100%; }
.article-body p { margin: 0 0 24px; }
.article-body h2 { margin: 56px auto 16px; max-width: var(--prose-max, 680px); border-top: var(--rule-accent); padding-top: 32px; }
.article-body h2:first-child { border-top: 0; padding-top: 0; }
.article-body h3 { margin: 40px auto 12px; max-width: var(--prose-max, 680px); }
.article-body figure img { max-width: 100%; height: auto; display: block; }
.article-body figcaption { font-size: 13px; color: var(--color-fg-3); margin-top: 8px; text-align: center; }
.article-body blockquote {
  border-left: 3px solid var(--sdpz-orange-500);
  padding: 4px 0 4px 24px;
  margin: 32px auto;
  font-style: italic;
  color: var(--color-fg-2);
  max-width: var(--prose-max, 680px);
}
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--sdpz-orange-500); }
.article-body a:hover { color: var(--sdpz-orange-600); text-decoration: underline; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.article-body th, .article-body td { padding: 12px; border-bottom: var(--border-hairline); text-align: left; }
.article-body th { font-weight: 600; color: var(--sdpz-brown-700); }
.article-body code { background: var(--sdpz-brown-100); padding: 2px 6px; border-radius: 3px; }
.article-body pre { background: var(--sdpz-brown-900); color: #f5efe3; padding: 24px; border-radius: var(--r-md); overflow-x: auto; }

.article-footer {
  max-width: var(--prose-max, 680px); margin: 48px 0 0;
  padding-top: 32px; border-top: var(--border-hairline);
}
.article-footer .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.article-footer .author { font-size: 14px; color: var(--color-fg-3); }

/* Featured image */
.featured-image { margin: 0 0 48px; }
.featured-image img { width: 100%; height: auto; display: block; }

/* Pagination (single post) */
.post-nav { max-width: var(--prose-max, 680px); margin: 64px 0 0; padding-top: 32px; border-top: var(--border-hairline); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav .label { display: block; margin-bottom: 4px; }
.post-nav a { color: var(--color-fg-1); font-weight: 600; }
.post-nav a:hover { color: var(--sdpz-orange-500); text-decoration: none; }
.post-nav .next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }

/* ============================================================
   Archive / blog index
   ============================================================ */

.archive-header { padding-block: 64px 32px; border-bottom: var(--border-hairline); }
.archive-header h1 { margin: 0; }
.archive-header .label { display: block; margin-bottom: 12px; }
.archive-header .description { color: var(--color-fg-2); max-width: 60ch; margin-top: 12px; }

.archive-list { display: flex; flex-direction: column; gap: 0; padding: 0; list-style: none; margin: 0; }
.archive-item {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 32px; padding: 32px 0; border-bottom: var(--border-hairline);
}
.archive-item:last-child { border-bottom: 0; }
.archive-item .date { font-size: 13px; color: var(--color-fg-3); text-transform: uppercase; letter-spacing: 0.08em; }
.archive-item h2 { margin: 8px 0 12px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.archive-item h2 a { color: inherit; }
.archive-item h2 a:hover { color: var(--sdpz-orange-600); text-decoration: none; }
.archive-item p { margin: 0; color: var(--color-fg-2); }
.archive-item .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .archive-item { grid-template-columns: 1fr; gap: 8px; } }

/* Blog/archive layout with sidebar */
.with-sidebar {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px; align-items: start;
}
@media (max-width: 1000px) { .with-sidebar { grid-template-columns: 1fr; gap: 48px; } }

/* WP pagination */
.pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 14px; min-width: 40px; text-align: center;
  border: 1px solid var(--color-border); border-radius: var(--r-sm);
  color: var(--color-fg-1); text-decoration: none;
  transition: background var(--dur-base) var(--ease-out);
}
.pagination .page-numbers:hover { background: var(--sdpz-brown-100); text-decoration: none; }
.pagination .page-numbers.current { background: var(--sdpz-brown-600); color: #fff; border-color: var(--sdpz-brown-600); }

/* ============================================================
   Sidebar / widgets
   ============================================================ */

.widget { margin-bottom: 40px; }
.widget-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-fg-3); font-weight: 700; margin: 0 0 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: var(--border-hairline); font-size: 14px; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--color-fg-1); }
.widget li a:hover { color: var(--sdpz-orange-500); text-decoration: underline; }
.widget select, .widget input[type="search"], .widget input[type="text"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--r-sm);
  font: inherit; background: #fff;
}
.widget input[type="search"]:focus, .widget input[type="text"]:focus { border-color: var(--sdpz-brown-300); outline: 0; box-shadow: var(--focus-ring); }

/* ============================================================
   Search form
   ============================================================ */

.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--r-sm); font: inherit; background: #fff;
}
.search-form input[type="search"]:focus { outline: 0; border-color: var(--sdpz-brown-300); box-shadow: var(--focus-ring); }
.search-form button { padding: 10px 16px; background: var(--sdpz-brown-600); color: #fff; border: 0; border-radius: var(--r-sm); font: inherit; cursor: pointer; }
.search-form button:hover { background: var(--sdpz-brown-700); }

/* ============================================================
   Comments
   ============================================================ */

.comments { max-width: var(--prose-max, 680px); margin: 64px 0 0; padding-top: 48px; border-top: var(--border-hairline); }
.comments h2 { margin: 0 0 24px; }
.comments-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment { padding: 20px 0; border-bottom: var(--border-hairline); }
.comment:last-child { border-bottom: 0; }
.comment .comment-author { font-weight: 600; color: var(--sdpz-brown-700); }
.comment .comment-meta { font-size: 13px; color: var(--color-fg-3); margin-bottom: 8px; }
.comment .children { list-style: none; margin: 16px 0 0 24px; padding: 0; border-left: 2px solid var(--color-border); padding-left: 24px; }
.comment-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .comment-form-fields { grid-template-columns: 1fr; } }
.comment-form label { display: block; font-size: 13px; color: var(--color-fg-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--r-sm); font: inherit; background: #fff;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .form-submit { margin-top: 16px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer { background: var(--sdpz-brown-800); color: #e8dfce; padding-block: 56px 24px; margin-top: 64px; }
.site-footer a { color: #e8dfce; text-decoration: none; }
.site-footer a:hover { color: var(--sdpz-yellow-300); text-decoration: underline; }

.footer-top { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 24px; }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand { /*display: flex; align-items: center; gap: 14px; */}
.footer-brand img { width: 120px; }
.footer-brand .word { font-size: 18px; font-weight: 600; color: #fff; }
.footer-brand .sub  { font-size: 11px; color: #b69878; text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr; gap: 24px; } }

.footer-cols h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #d4bfa4; margin: 0 0 12px; font-weight: 700; }
.footer-cols p, .footer-cols li { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #e8dfce; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0; padding: 6px 0; border: 0; }
.footer-cols dl { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.footer-cols dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.footer-cols dt { color: #b69878; }
.footer-cols dd { margin: 0; color: #e8dfce; }

.footer-bottom { font-size: 12px; color: #b69878; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Publications & Events (CPT)
   ============================================================ */

.publication-card { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; padding: 28px 0; border-bottom: var(--border-hairline); }
.publication-card:last-child { border-bottom: 0; }
.publication-card .cover {
  width: 120px; height: 160px;
  background: var(--sdpz-brown-100);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--sdpz-brown-700); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}
.publication-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.publication-card .meta-row { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--color-fg-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.publication-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.publication-card h3 a:hover { color: var(--sdpz-orange-600); }
.publication-card p { font-size: 15px; line-height: 1.6; color: var(--color-fg-2); margin: 0 0 16px; }
.publication-card .actions { display: flex; gap: 16px; align-items: center; font-size: 14px; }
@media (max-width: 600px) { .publication-card { grid-template-columns: 1fr; } .publication-card .cover { width: 100%; height: 200px; } }

.event-card { display: grid; grid-template-columns: 100px 1fr auto; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--color-border); border-radius: var(--r-md); background: #fff; margin-bottom: 16px; }
.event-card .date-block { text-align: center; padding: 12px; background: var(--sdpz-brown-100); border-radius: var(--r-sm); }
.event-card .date-block .month { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sdpz-brown-700); font-weight: 700; }
.event-card .date-block .day { font-size: 32px; font-weight: 300; color: var(--sdpz-brown-900); line-height: 1; }
.event-card .date-block .year { font-size: 12px; color: var(--color-fg-3); margin-top: 4px; }
.event-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.event-card .location { font-size: 14px; color: var(--color-fg-3); }
.event-card .actions { white-space: nowrap; }
@media (max-width: 760px) { .event-card { grid-template-columns: 80px 1fr; } .event-card .actions { grid-column: 1 / -1; } }

/* ============================================================
   404 / no results
   ============================================================ */

.error-404, .no-results {
  text-align: center;
  padding: 96px 24px;
  max-width: 640px;
  margin-inline: auto;
}
.error-404 .code { font-size: 72px; font-weight: 300; color: var(--sdpz-brown-700); margin: 0 0 16px; letter-spacing: -0.02em; }
.error-404 h1 { margin: 0 0 16px; }
.error-404 p, .no-results p { color: var(--color-fg-2); margin: 0 0 32px; }

/* ============================================================
   WP utility classes (alignment, captions, gallery)
   ============================================================ */

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 24px; }
.alignwide { width: 100%; max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100%; max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--color-fg-3); margin-top: 8px; text-align: center; }

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

.sticky { position: relative; }
.sticky-marker { display: inline-block; padding: 2px 8px; background: var(--sdpz-yellow-200); color: #6e5316; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-radius: var(--r-pill); margin-bottom: 12px; }

.bypostauthor { /* required for theme review */ }

/* ============================================================
   Print
   ============================================================ */

@media print {
  .site-header, .site-footer, .post-nav, .comments, .widget, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .article-body { max-width: 100%; }
}
