/* ============================================================
   ORTMAN LAW FIRM — blog / insights styles
   Loaded AFTER ortman.css. Inherits all theme variables.
   ============================================================ */

/* ---------- Nav: Insights dropdown ---------- */
.has-menu { position: relative; }
.has-menu > .menu-trigger {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; line-height: inherit;
}
.has-menu > .menu-trigger .chev { font-size: 9px; opacity: .7; transition: transform .18s ease; }
.has-menu > .menu-trigger:hover { color: var(--ink); }
.has-menu[data-open="true"] > .menu-trigger { color: var(--brand); font-weight: 600; }
.has-menu[data-open="true"] > .menu-trigger .chev { transform: rotate(180deg); }
.menu-panel {
  position: absolute; top: 38px; left: -18px; width: 268px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.45); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-menu[data-open="true"] .menu-panel,
.has-menu:hover .menu-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-panel a.mi { display: block; padding: 12px 14px; border-radius: var(--r); border-left: 2px solid transparent; }
.menu-panel a.mi:hover { background: var(--surface-2); }
.menu-panel a.mi.fam { border-left-color: var(--family); }
.menu-panel a.mi.pro { border-left-color: var(--probate); }
.menu-panel a.mi b { display: block; font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.menu-panel a.mi span { font-size: 12.5px; color: var(--ink-soft); }
.menu-panel .msep { height: 1px; background: var(--line); margin: 6px 12px; }
.menu-panel a.mall { display: block; padding: 9px 14px; font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- Blog hero (reuses .pp-hero band) ---------- */
.pp-hero .byline-row {
  display: flex; gap: 26px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16); font-size: 14px;
  color: color-mix(in oklab, var(--on-brand) 78%, transparent);
}
.pp-hero .byline-row b { color: var(--on-brand); font-weight: 600; }
.pp-hero.post-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }

/* ---------- Featured card ---------- */
.blog-featured { padding: 64px 0 0; }
.blog-featured .eyebrow { margin-bottom: 22px; }
.feat-card {
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 44px 46px; transition: transform .2s ease, box-shadow .2s ease;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(0,0,0,.35); }
.feat-card.fam { border-top: 4px solid var(--family); }
.feat-card.pro { border-top: 4px solid var(--probate); }
.post-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.post-meta .cat { font-weight: 700; }
.post-meta .cat.fam { color: var(--family); }
.post-meta .cat.pro { color: var(--probate); }
.feat-card h2 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 16px; max-width: 15em; }
.feat-card p.dek { color: var(--ink-soft); font-size: 17px; line-height: 1.7; margin-top: 18px; max-width: 44em; }
.feat-card .more { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; font-weight: 600; font-size: 15px; }
.feat-card.fam .more { color: var(--family); }
.feat-card.pro .more { color: var(--probate); }
.feat-card .more .arr { transition: transform .2s ease; }
.feat-card:hover .more .arr { transform: translateX(4px); }
.feat-toc { border-left: 1px solid var(--line); padding-left: 40px; }
.feat-toc .lbl { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.feat-toc ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Post grid + filter chips ---------- */
.blog-list { padding: 56px 0 90px; }
.list-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.list-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 9px 17px; border-radius: 40px; cursor: pointer; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden;
}
.post-card { background: var(--surface); padding: 34px 32px 30px; display: flex; flex-direction: column; min-height: 290px; transition: background .18s ease; }
.post-card:hover { background: var(--surface-2); }
.post-card[hidden] { display: none; }
.post-card .kicker { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.post-card.fam .kicker { color: var(--family); }
.post-card.pro .kicker { color: var(--probate); }
.post-card h3 { font-size: 23px; margin-top: 12px; line-height: 1.22; }
.post-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.62; margin-top: 12px; flex: 1; }
.post-card .foot { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.no-results { grid-column: 1 / -1; background: var(--surface); padding: 54px 32px; text-align: center; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Cross-practice bar ---------- */
.cross-bar {
  margin-top: 34px; background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line));
  border-radius: var(--r-lg); padding: 30px 34px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cross-bar .msg { display: flex; gap: 14px; align-items: flex-start; max-width: 44em; font-size: 15px; line-height: 1.6; }
.cross-bar .cl-ico { color: var(--accent); flex: none; font-size: 17px; }
.cross-bar a.go { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; color: var(--brand); white-space: nowrap; }
.cross-bar a.go .arr { transition: transform .2s ease; }
.cross-bar a.go:hover .arr { transform: translateX(4px); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 70px 0; }
.newsletter .inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.newsletter h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 16px; }
.newsletter p.sub { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; margin-top: 16px; max-width: 32em; }
.newsletter form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter input {
  flex: 1; min-width: 240px; padding: 15px 16px; font-family: var(--font-body); font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink);
}
.newsletter input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 16%, transparent); }
.newsletter .disc { font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; width: 100%; }

/* ---------- Article body ---------- */
.post-body { padding: 64px 0 80px; }
.post-layout { display: grid; grid-template-columns: 240px 1fr; gap: 70px; align-items: start; }
.post-toc { position: sticky; top: 100px; align-self: start; }
.post-toc .rail-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-toc ul { list-style: none; display: grid; gap: 2px; padding: 0; margin: 0; }
.post-toc a {
  display: block; padding: 9px 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.35;
  border-left: 2px solid transparent; border-radius: 0 var(--r) var(--r) 0; transition: all .18s ease;
}
.post-toc a:hover { color: var(--ink); background: var(--surface-2); }
.post-toc a.active { color: var(--brand); border-left-color: var(--accent); background: var(--surface-2); font-weight: 600; }
.post-toc .rail-card { margin-top: 26px; background: var(--brand); color: var(--on-brand); border-radius: var(--r-lg); padding: 22px; }
.post-toc .rail-card b { font-family: var(--font-display); display: block; font-size: 17px; margin-bottom: 6px; }
.post-toc .rail-card p { font-size: 13px; color: color-mix(in oklab, var(--on-brand) 74%, transparent); line-height: 1.5; margin-bottom: 14px; }
.post-toc .rail-card a { display: inline-flex; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.post-toc .rail-card a:hover { background: none; color: var(--on-brand); }

.prose { max-width: 44em; }
.prose .lede { font-family: var(--font-display); font-size: 23px; line-height: 1.5; color: var(--brand); font-weight: 600; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 14px; scroll-margin-top: 110px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p { color: var(--ink-soft); font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand); font-weight: 600; border-bottom: 1px solid color-mix(in oklab, var(--brand) 30%, transparent); }
.prose a:hover { border-bottom-color: var(--brand); }
.prose ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.prose ul li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.62; }
.prose ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.prose .callout {
  background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 38%, var(--line));
  border-radius: var(--r); padding: 20px 22px; margin: 24px 0;
  display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--ink);
}
.prose .callout .cl-ico { color: var(--accent); flex: none; }
.post-disclaimer { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); line-height: 1.65; }

.inline-cta {
  background: var(--brand); color: var(--on-brand); border-radius: var(--r-lg); padding: 36px 38px; margin: 44px 0;
  display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.inline-cta h3 { color: var(--on-brand); font-size: 24px; }
.inline-cta p { color: color-mix(in oklab, var(--on-brand) 76%, transparent); font-size: 15.5px; line-height: 1.6; margin: 10px 0 0; }
.inline-cta .txt { max-width: 30em; }

/* ---------- Related posts ---------- */
.related { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 76px 0; }
.related h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 16px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.rel-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 30px; background: var(--bg); display: flex; flex-direction: column; min-height: 220px; transition: transform .2s ease, box-shadow .2s ease; }
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -30px rgba(0,0,0,.35); }
.rel-card.fam { border-top: 3px solid var(--family); }
.rel-card.pro { border-top: 3px solid var(--probate); }
.rel-card .kicker { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.rel-card.fam .kicker { color: var(--family); }
.rel-card.pro .kicker { color: var(--probate); }
.rel-card h3 { font-size: 21px; margin-top: 12px; line-height: 1.25; }
.rel-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin-top: 12px; flex: 1; }
.rel-card .foot { font-size: 12.5px; color: var(--ink-soft); margin-top: 16px; }

/* ---------- Hub intro (probate/family lead-in) ---------- */
.hub-intro { padding: 56px 0 0; }
.hub-intro .inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.hub-intro .pull { font-family: var(--font-display); color: var(--brand); font-size: 21px; line-height: 1.45; font-weight: 600; }
.hub-intro p { color: var(--ink-soft); font-size: 17px; line-height: 1.72; }
.hub-intro p + p { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .has-menu { display: none; }
}
@media (max-width: 980px) {
  .feat-card { grid-template-columns: 1fr; gap: 30px; padding: 34px 30px; }
  .feat-toc { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
  .post-grid, .rel-grid { grid-template-columns: 1fr 1fr; }
  .post-layout, .newsletter .inner, .hub-intro .inner { grid-template-columns: 1fr; gap: 36px; }
  .post-toc { display: none; }
}
@media (max-width: 720px) {
  .post-grid, .rel-grid { grid-template-columns: 1fr; }
  .list-head { align-items: start; }
  .inline-cta { padding: 28px 26px; }
}
