/* «معلومة كهربية» (/tips/ and /tips/<slug>/), plus the preview in the dashboard. */
.tips-hero { background: var(--navy); color: #fff; }
.tips-hero .wrap { display: grid; gap: 12px; justify-items: start; padding-block: 48px 40px; }
.tips-hero h1 { font-size: clamp(28px, 4.4vw, 42px); max-width: 20em; }
.tips-hero .lead { color: #b9c7dc; font-size: 17px; max-width: 36em; }
.tips-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tips-cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 500; }
.tips-cats a:hover { background: rgba(255, 255, 255, .1); }
.tips-cats .mono { color: var(--amber); font-size: 13px; }

.tips-main { gap: 44px; }
.tips-group { display: grid; gap: 16px; scroll-margin-top: 110px; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.tip-card { display: grid; align-content: start; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tip-card:hover { border-color: var(--blue); box-shadow: 0 10px 28px rgba(15, 27, 45, .08); transform: translateY(-2px); }
.tip-card b { font: 700 18px/1.45 var(--f-display); }
.tip-card > span:not(.tip-more) { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tip-more { color: var(--blue); font-weight: 600; font-size: 14px; }
.tips-empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; }

.tip-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; padding-block: 20px 56px; }
.tip-article { display: grid; gap: 16px; max-width: 46em; }
.tip-article h1 { font-size: clamp(26px, 4vw, 38px); }
.tip-answer { display: grid; gap: 4px; padding: 16px 18px; border-inline-start: 4px solid var(--amber); border-radius: 10px; background: #fff8e8; }
.tip-answer b { font: 700 14px var(--f-display); color: #8a5a00; }
.tip-answer p { font-size: 17px; }
.tip-body { display: grid; gap: 14px; font-size: 17px; line-height: 1.9; }
.tip-body h2 { font-size: 22px; margin-top: 12px; }
.tip-body ul, .tip-body ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.tip-body strong { color: var(--navy); }
.tip-cta { margin-top: 4px; }
.tip-date { margin-top: 8px; }

.tip-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.tip-ask, .tip-more-list { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tip-ask b, .tip-more-list b { font: 700 17px var(--f-display); }
.tip-ask p { color: var(--muted); font-size: 15px; }
.tip-more-list a { color: var(--ink); text-decoration: none; padding-block: 8px; border-top: 1px solid var(--line); font-weight: 500; }
.tip-more-list a:hover { color: var(--blue); }
.tip-more-list .tip-all { color: var(--blue); font-weight: 600; }

.tip-preview .tip-article { max-width: none; }

@media (max-width: 900px) {
  .tip-main { grid-template-columns: 1fr; }
  .tip-side { position: static; }
}
@media (max-width: 600px) {
  .tips-hero .wrap { padding-block: 32px 28px; }
  .tip-body, .tip-answer p { font-size: 16px; }
}
