/* ========================================
   GUIDES PAGE STYLES
   Extends theme.css with guide-specific styles
   ======================================== */

/* NAV */
.g-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 64px;
  background: var(--sage);
}

.g-nav-brand {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: #F5F3EE;
  text-decoration: none;
  font-weight: 400;
}

.g-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.g-nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.g-nav-links a:hover,
.g-nav-links a.active {
  color: white;
}

/* GUIDE INDEX */
.g-header {
  padding: 80px 64px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.g-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.g-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 16px;
}

.g-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--sage);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.g-description {
  font-size: 17px;
  color: var(--warm-grey);
  line-height: 1.7;
  max-width: 600px;
}

.g-grid-section {
  padding: 80px 64px;
  background: var(--bg);
}

.g-grid-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.g-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.g-card {
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
  box-shadow: 0 4px 20px rgba(45,74,62,0.08);
}

.g-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45,74,62,0.14);
}

.g-card-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g-card-thumb-icon {
  opacity: 0.6;
}

.g-card-body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.g-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  color: var(--sage);
  font-weight: 400;
  line-height: 1.3;
}

.g-card-excerpt {
  font-size: 15px;
  color: var(--warm-grey);
  line-height: 1.6;
  flex: 1;
}

.g-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-mid);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.g-card:hover .g-card-cta {
  color: var(--sage);
}

/* ARTICLE */
.g-article-header {
  padding: 60px 64px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.g-article-header-inner {
  max-width: 800px;
  margin: 0 auto;
}

.g-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--warm-grey);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.g-back-link:hover { color: var(--sage); }

.g-article-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--sage);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.g-article-meta {
  font-size: 13px;
  color: var(--warm-grey);
}

.g-article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 64px 80px;
}

.g-prose h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  color: var(--sage);
  font-weight: 400;
  line-height: 1.25;
  margin: 48px 0 20px;
}

.g-prose h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: var(--sage);
  font-weight: 400;
  margin: 32px 0 16px;
}

.g-prose p {
  font-size: 17px;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 20px;
}

.g-prose ul, .g-prose ol {
  margin: 0 0 20px 24px;
}

.g-prose li {
  font-size: 17px;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 10px;
}

.g-prose a {
  color: var(--sage-mid);
  text-decoration: underline;
}

.g-prose a:hover { color: var(--sage); }

.g-prose strong {
  font-weight: 600;
  color: var(--charcoal);
}

/* Tables */
.g-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.g-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.g-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm-grey);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: #F8F6F2;
}

.g-table td {
  padding: 14px 20px;
  font-size: 15px;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(45,74,62,0.08);
  vertical-align: top;
}

.g-table tr:last-child td { border-bottom: none; }

.g-table th:first-child,
.g-table td:first-child {
  font-weight: 600;
  color: var(--sage);
}

/* CTA Card */
.g-cta-card {
  background: var(--sage);
  border-radius: 16px;
  padding: 36px 40px;
  text-align: center;
  margin: 56px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.g-cta-card-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  color: #F5F3EE;
  font-weight: 400;
}

.g-cta-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 480px;
}

.g-cta-btn {
  display: inline-block;
  background: var(--terracotta);
  color: white;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.g-cta-btn:hover {
  background: #B85F3A;
}

/* 404 */
.g-not-found {
  padding: 120px 64px;
  text-align: center;
}

.g-not-found h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 42px;
  color: var(--sage);
  margin-bottom: 16px;
}

.g-not-found p {
  font-size: 17px;
  color: var(--warm-grey);
  margin-bottom: 32px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .g-nav { padding: 16px 32px; }
  .g-header { padding: 48px 32px 32px; }
  .g-grid-section { padding: 48px 32px; }
  .g-cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .g-article-header { padding: 40px 32px 32px; }
  .g-article-body { padding: 40px 32px 60px; }
  .g-cta-card { padding: 28px 24px; margin: 40px 0 0; }
  .g-not-found { padding: 80px 32px; }
}

@media (max-width: 480px) {
  .g-nav-links { gap: 20px; }
  .g-card-body { padding: 20px 24px 24px; }
}