/*
Theme Name: Zandinia GP Child
Theme URI: https://zandinia.com/
Description: A minimal Oracle DBA notebook child theme for GeneratePress.
Author: Sajjad Zandinia
Template: generatepress
Version: 1.0.0
Text Domain: zandinia-gp-child
*/

:root {
  --zd-bg: #ffffff;
  --zd-text: #1f2933;
  --zd-muted: #5f6b7a;
  --zd-border: #e4e7eb;
  --zd-panel: #f8fafc;
  --zd-strong: #111827;
  --zd-link: #1d4ed8;
  --zd-radius: 14px;
}

body {
  background: var(--zd-bg);
  color: var(--zd-text);
}

.site-content,
.container.grid-container {
  max-width: 1180px;
}

.zd-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px 56px;
}

.zd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
}

.zd-main {
  min-width: 0;
}

.zd-hero {
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--zd-border);
  margin-bottom: 28px;
}

.zd-kicker {
  margin: 0 0 10px;
  color: var(--zd-muted);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.zd-hero h1,
.zd-page-title,
.zd-entry-title {
  margin: 0 0 14px;
  color: var(--zd-strong);
  font-weight: 750;
  line-height: 1.12;
}

.zd-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.zd-page-title,
.zd-entry-title {
  font-size: clamp(30px, 4vw, 46px);
}

.zd-lead {
  max-width: 760px;
  margin: 0;
  color: var(--zd-muted);
  font-size: 20px;
  line-height: 1.65;
}

.zd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.zd-card,
.zd-panel,
.zd-article-list article,
.zd-sidebar-box {
  border: 1px solid var(--zd-border);
  border-radius: var(--zd-radius);
  background: #fff;
}

.zd-card,
.zd-panel {
  padding: 20px;
}

.zd-card h2,
.zd-panel h2,
.zd-sidebar-box h2 {
  margin: 0 0 10px;
  color: var(--zd-strong);
  font-size: 20px;
}

.zd-card p,
.zd-panel p {
  margin: 0 0 12px;
  color: var(--zd-muted);
  line-height: 1.65;
}

.zd-card a,
.zd-panel a,
.zd-article-list a,
.zd-sidebar a,
.zd-entry-content a {
  color: var(--zd-link);
  text-decoration: none;
  text-underline-offset: 3px;
}

.zd-card a:hover,
.zd-panel a:hover,
.zd-article-list a:hover,
.zd-sidebar a:hover,
.zd-entry-content a:hover {
  text-decoration: underline;
}

.zd-article-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.zd-article-list article {
  padding: 18px;
}

.zd-article-list h2,
.zd-article-list h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.zd-meta {
  margin: 0 0 10px;
  color: var(--zd-muted);
  font-size: 14px;
}

.zd-excerpt {
  margin: 0;
  color: var(--zd-text);
  line-height: 1.7;
}

.zd-sidebar {
  position: sticky;
  top: 28px;
}

.zd-sidebar-box {
  padding: 18px;
  margin-bottom: 16px;
  background: var(--zd-panel);
}

.zd-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zd-sidebar li {
  margin: 9px 0;
}

.zd-note {
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 4px solid var(--zd-border);
  background: var(--zd-panel);
  color: var(--zd-muted);
  line-height: 1.65;
}

.zd-entry-content {
  font-size: 18px;
  line-height: 1.8;
}

.zd-entry-content h2,
.zd-entry-content h3 {
  color: var(--zd-strong);
  margin-top: 1.6em;
}

.zd-entry-content pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 10px;
  background: #111827;
  color: #f9fafb;
}

.zd-entry-content code {
  font-size: .95em;
}

.zd-post-nav {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--zd-border);
}

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

@media (max-width: 900px) {
  .zd-layout {
    grid-template-columns: 1fr;
  }

  .zd-sidebar {
    position: static;
  }

  .zd-card-grid {
    grid-template-columns: 1fr;
  }
}
