/* askJBoss Guides: /guides hub + "More guides" box under a guide */
.gd { max-width: 1160px; margin: 0 auto; padding: 18px 16px 40px; }
.gd-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 28px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(242,181,43,.35), transparent 40%), linear-gradient(135deg, #0B6E4F, #10201A); }
.gd-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #F2B52B; }
.gd-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.05; margin: 8px 0 10px; max-width: 620px; }
.gd-hero p { margin: 0; max-width: 560px; color: #D6E6DE; font-size: 15px; line-height: 1.55; }
.gd-hero-ic { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); display: grid; grid-template-columns: repeat(2, 64px); gap: 12px; }
.gd-hero-ic span { width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.95); display: grid; place-items: center; font-size: 32px; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.gd-hero-ic span:nth-child(2n) { transform: translateY(14px) rotate(6deg); } .gd-hero-ic span:nth-child(odd) { transform: rotate(-5deg); }
@media (max-width: 820px) { .gd-hero-ic { display: none; } .gd-hero { padding: 24px 20px; } }

.gd-topics { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 16px; padding-bottom: 2px; }
.gd-topics::-webkit-scrollbar { display: none; }
.gd-topics a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.gd-topics a small { color: var(--muted); font-weight: 600; }
.gd-topics a.on { background: #10201A; color: #fff; box-shadow: none; } .gd-topics a.on small { color: #A9BDB3; }

.gd-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #0B6E4F; background: #E7F6EF; border-radius: 999px; padding: 3px 10px; }
.gd-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); text-decoration: none; margin-bottom: 16px; }
.gd-feature img { width: 100%; height: 100%; aspect-ratio: 1200/630; object-fit: cover; display: block; }
.gd-feature > div { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.gd-feature h2 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; }
.gd-feature p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.gd-feature b { color: #0B6E4F; }
.gd-feature:hover h2, .gd-card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 760px) { .gd-feature { grid-template-columns: 1fr; } .gd-feature > div { padding: 16px 18px 20px; } }

.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gd-card { display: flex; flex-direction: column; background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.gd-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(16,32,26,.1); }
.gd-img { aspect-ratio: 1200/630; background: var(--soft); display: grid; place-items: center; font-size: 42px; }
.gd-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gd-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gd-body h3 { font-size: 17px; line-height: 1.25; }
.gd-body small { color: var(--muted); margin-top: auto; }
.gd-empty { color: var(--muted); padding: 30px 0; text-align: center; }

.gd-ask { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #FFF8E6; border: 1px solid #F6E1A6; border-radius: 18px; padding: 18px 20px; }
.gd-ask b { font-size: 16px; } .gd-ask p { margin: 2px 0 0; color: var(--ink-2); }
@media (max-width: 560px) { .gd-ask { flex-direction: column; align-items: flex-start; } }

.gd-more { margin-top: 14px; }
.gd-more-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.gd-more-head h2 { font-size: 20px; } .gd-more-head a { font-weight: 700; color: #0B6E4F; }
.gd-more-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gd-more-list a { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.gd-more-list img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; border-radius: 12px; }
.gd-more-list .gd-chip { align-self: flex-start; }
.gd-more-list b { font-size: 14px; line-height: 1.3; }
@media (max-width: 640px) { .gd-more-list { grid-template-columns: 1fr; } .gd-more-list a { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 4px; }
  .gd-more-list img { grid-row: span 2; } }

html[data-theme="dark"] .gd-chip { background: #153528; color: #86E2BA; }
html[data-theme="dark"] .gd-topics a.on { background: #E7EEEA; color: #0D1310; }
html[data-theme="dark"] .gd-ask { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.gd-body .gd-chip, .gd-feature .gd-chip { align-self: flex-start; }
@media (max-width: 640px) {
  .gd-grid { grid-template-columns: 1fr; gap: 10px; }
  .gd-card { flex-direction: row; align-items: stretch; border-radius: 16px; }
  .gd-img { flex: 0 0 132px; aspect-ratio: auto; min-height: 104px; }
  .gd-img img { object-position: left center; }
  .gd-body { padding: 10px 12px; gap: 6px; }
  .gd-body h3 { font-size: 15px; }
  .gd-body .gd-chip { font-size: 11px; padding: 2px 8px; }
}
@media (max-width: 640px) { .gd-more-list img { object-position: left center; } .gd-more-list .gd-chip { justify-self: start; align-self: end; } .gd-more-list b { align-self: start; } .gd-more-list img { height: 100%; min-height: 66px; } }
