/* Guides (blog) section: /guides and /guides/<slug> */

/* Guide list */
.gd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1180px; margin: 0 auto; }
.gd-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border: 1px solid var(--gray-200); border-radius: 16px; background: var(--white); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.gd-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.gd-card-tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #1767D4; }
.gd-card-title { font-size: 1.2rem; line-height: 1.35; color: var(--text); margin: 0; }
.gd-card-desc { color: var(--gray-600); line-height: 1.65; margin: 0; font-size: 0.95rem; }
.gd-card-meta { margin-top: auto; padding-top: 6px; font-size: 0.82rem; color: #5b6576; }

.gd-empty { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; text-align: center; padding: 44px 32px; border: 1px dashed var(--gray-200); border-radius: 16px; background: var(--white); }
.gd-empty h2 { font-size: 1.5rem; margin-bottom: 10px; }
.gd-empty p { color: var(--gray-600); line-height: 1.7; margin: 0 0 22px; }
.gd-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gd-empty-links a { display: inline-block; padding: 9px 16px; border: 1px solid var(--gray-200); border-radius: 30px; color: var(--primary); text-decoration: none; font-weight: 500; transition: border-color .2s, color .2s; }
.gd-empty-links a:hover { border-color: var(--accent); color: #1a56b0; }

.gd-cta { max-width: 720px; margin: 0 auto; text-align: center; }
.gd-cta h2 { margin-bottom: 12px; }
.gd-cta p { color: var(--gray-600); line-height: 1.7; margin: 0 0 24px; }

/* Post title band */
.gd-hero .page-hero-content { max-width: 820px; }
.gd-crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.gd-crumbs a { color: rgba(255,255,255,0.8); text-decoration: none; margin: 0; font-weight: 500; }
.gd-crumbs a:hover { color: #fff; text-decoration: underline; }
.gd-crumbs [aria-current] { color: rgba(255,255,255,0.6); }
.page-hero-content p.gd-meta { font-size: 0.92rem; color: rgba(255,255,255,0.65); margin: 0; }

/* Article body */
.gd-article { max-width: 760px; margin: 0 auto; color: var(--text); font-size: 1.05rem; line-height: 1.8; }
.gd-article > * + * { margin-top: 1.1em; }
.gd-article h2 { font-size: 1.6rem; line-height: 1.3; margin-top: 2em; margin-bottom: 0; }
.gd-article h3 { font-size: 1.2rem; line-height: 1.35; margin-top: 1.6em; margin-bottom: 0; }
.gd-article p { margin-bottom: 0; color: #334155; }
.gd-article ul, .gd-article ol { padding-left: 1.4em; color: #334155; }
.gd-article ul { list-style: disc; }
.gd-article ol { list-style: decimal; }
.gd-article li + li { margin-top: 0.4em; }
.gd-article a:not(.btn) { color: #1a56b0; text-decoration: underline; text-underline-offset: 2px; }
.gd-article strong { color: var(--text); }
.gd-article img { max-width: 100%; height: auto; border-radius: 14px; }
.gd-article figure { margin: 1.6em 0 0; }
.gd-article figcaption { font-size: 0.88rem; color: var(--gray-600); margin-top: 8px; }

.gd-answer { background: #eef5ff; border-left: 4px solid var(--accent); border-radius: 12px; padding: 20px 24px; }
.gd-article .gd-answer p { color: var(--text); }
.gd-article .gd-answer .gd-answer-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #1767D4; margin: 0 0 6px; }

.gd-tip { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 18px 22px; }
.gd-tip strong { display: block; margin-bottom: 4px; }
.gd-article .gd-tip p { margin: 0; }

.gd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--gray-200); border-radius: 12px; }
.gd-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; line-height: 1.55; }
.gd-table th, .gd-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gray-100); }
.gd-table thead th { background: var(--primary); color: #fff; }
.gd-table tbody th { color: var(--gray-600); font-weight: 600; }
.gd-table tr:last-child th, .gd-table tr:last-child td { border-bottom: none; }

.gd-service { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 2.2em !important; padding: 24px 26px; border: 2px solid var(--accent); border-radius: 16px; background: var(--white); }
.gd-article .gd-service p { margin: 0; }
.gd-article .gd-service .gd-service-label { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.gd-service .btn { flex-shrink: 0; }

.gd-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.8em !important; }
.gd-photos figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-200); background: var(--gray-100); }
.gd-photos img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }
.gd-photos figcaption { margin: 0; padding: 10px 14px; font-size: 0.85rem; color: var(--gray-600); line-height: 1.5; background: var(--white); }

@media (max-width: 1000px) { .gd-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
@media (max-width: 640px) {
  .gd-grid { grid-template-columns: 1fr; max-width: 480px; }
  .gd-article { font-size: 1rem; }
  .gd-article h2 { font-size: 1.35rem; }
  .gd-table { min-width: 0; font-size: 0.85rem; }
  .gd-table th, .gd-table td { padding: 10px 9px; }
  .gd-service { flex-direction: column; align-items: stretch; text-align: left; }
  .gd-service .btn { justify-content: center; }
  .gd-empty { padding: 32px 20px; }
}
