/* Group G: objection pages (T10 practice article) and the objection library hub (T3, row list 2.8).
   Built on styles/factory/kit.css tokens and .fk-* components. Layout and style only. */

/* ---------- Shared page frame ---------- */
body.fk.objection-page,
body.fk.objections-hub{background:var(--bg)}

/* The shared highlight is a grey chip; on these pages it is orange type with no box */
body.fk .p-highlight{background:none;padding:0;border-radius:0;color:var(--accent)}

/* Back link sits above the rule, as in the article shell (2.14) */
.g-back-row{margin:0 0 24px;padding-top:32px}
.g-back-row .fk-back::before{content:'\2190';font:400 14px/1 var(--mono);color:currentColor}
.g-back-row a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--n-500)}

/* ---------- T10 practice article: left column (title, lead, actions, TOC) ---------- */
.objection-page .fk-article{padding-top:0;border-top:0}
.objection-page .fk-article__side{gap:32px;top:96px}
.g-title{margin:0;text-wrap:balance}
.g-title .p-highlight{color:var(--accent)}
.objection-page .fk-article__side .fk-lead{color:var(--n-500);font-size:16px;line-height:1.35}
.g-actions{display:flex;flex-wrap:wrap;gap:12px;margin:0}
.g-actions .fk-btn{min-height:31px}

/* ---------- T10 right column: dashed practice panel first, then the prose ---------- */
/* background !important: site-kit.css sets --paper on objection-layout .mm-cta with higher specificity */
body.fk .g-practice{padding:24px;display:flex;flex-direction:column;gap:16px;margin:0 0 56px;background:var(--bg) !important;color:var(--fg)}
body.fk .g-practice h2{margin:0;font:400 28px/1.15 var(--font);letter-spacing:-.03em;color:var(--fg-hi);text-wrap:balance}
body.fk .g-practice p{margin:0;font:400 16px/1.5 var(--mono);letter-spacing:-.02em;color:var(--n-500)}
body.fk .g-practice .mm-actions{margin-top:8px}

/* Mobile: the title stacks above the panel; the TOC list stays readable */
@media(max-width:760px){
  .g-back-row{padding-top:24px}
  .objection-page .fk-article__side{gap:24px;margin-bottom:40px}
  .objection-page .fk-toc ol{display:grid}
  .g-practice{padding:20px;margin-bottom:48px}
  .g-practice h2{font-size:24px}
}

/* ---------- Hub: header block, row list, split sections, CTA card, links ---------- */
.g-hub-head{padding-top:32px;border-top:1px solid var(--n-800)}
.g-hub-head .fk-eyebrow{margin:0}
.g-hub-head .fk-eyebrow a{color:inherit}
.g-hub-head .g-title{margin:32px 0 0;max-width:1000px}
.g-hub-head .fk-lead{margin-top:24px;max-width:640px;font-size:18px;color:var(--n-500)}
.g-hub-head .g-actions{margin-top:32px}
.g-hub-head .p-highlight{color:var(--accent)}

.g-list{margin-top:120px}
.g-list>h2{margin:0 0 24px}
.g-list .fk-rows{margin:0}
.g-list .fk-row:last-child{border-bottom:1px solid var(--n-800)}
.g-list .fk-row__chips .fk-tag{font:400 12px/1 var(--mono);color:var(--n-400)}
.g-list .fk-row__end .fk-btn{height:25px}
.g-list .fk-row:hover .fk-btn--secondary{background:var(--fg-hi);color:var(--bg);border-color:var(--fg-hi)}

.g-split{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gutter);margin-top:120px;align-items:start}
.g-split__head{grid-column:1/5;padding-top:16px;border-top:1px solid var(--n-800)}
.g-split__head h2{margin:0}
.g-split__body{grid-column:5/12;min-width:0;max-width:665px}
.g-split__body p{margin:0 0 24px;font:400 16px/1.5 var(--font);color:var(--n-300)}
.g-split__body p:last-child{margin-bottom:0}
.g-split__body a{color:var(--fg);text-decoration:underline;text-decoration-color:var(--n-600);text-underline-offset:3px}
.g-split__body a:hover{color:var(--accent)}
.g-rules{list-style:none;margin:32px 0 0;padding:0;border-top:1px solid var(--n-800)}
.g-rules li{margin:0;padding:16px 0;border-bottom:1px solid var(--n-800);font:400 16px/1.5 var(--mono);letter-spacing:-.02em;color:var(--fg)}

.g-cta-row{margin-top:120px}
.g-cta{grid-column:1/6;min-height:460px;justify-self:start}
.g-cta .fk-cta__bottom{gap:20px}
.g-cta h2{margin:0;font:400 40px/1.05 var(--font);letter-spacing:-.035em;color:var(--bg-2);text-wrap:balance}
.g-cta p{margin:0;font:400 16px/1.5 var(--mono);letter-spacing:-.02em;color:var(--n-600)}
.g-cta .mm-actions{display:flex;flex-wrap:wrap;gap:12px;margin:0}

.g-more{margin-top:120px}
.g-more>h2{margin:0 0 24px}
.g-more ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--n-800)}
.g-more li{border-bottom:1px solid var(--n-800)}
.g-more li a{display:flex;min-height:64px;align-items:center;font:400 16px/1.2 var(--font);color:var(--fg);text-decoration:none}
.g-more li a:hover{color:var(--accent)}
.g-more .mm-note{margin:24px 0 0;font:400 14px/1.5 var(--mono);color:var(--n-500)}

@media(max-width:760px){
  .g-hub-head{padding-top:24px}
  .g-hub-head .g-title{margin-top:24px}
  .g-list,.g-split,.g-cta-row,.g-more{margin-top:80px}
  .g-split{display:block}
  .g-split__head,.g-split__body{max-width:none}
  .g-split__body{margin-top:24px}
  .g-cta{width:100%;min-height:420px;border-radius:var(--r-fig)}
  .g-cta h2{font-size:32px}
}

/* ---------- Balance on wide screens: one centred frame ----------
   The kit's frame runs to 1920px and anchors the grid to the left edge, so the
   reading column (max 665px) and the CTA card leave the right side empty. The
   frame is capped at 1280px and centred, the reading column sits flush with the
   frame's right edge, and the CTA spans the frame. Desktop only: phones are narrower than the cap. */
@media(min-width:761px){
  body.fk.objection-page .fk-wrap,
  body.fk.objections-hub .fk-wrap{max-width:1280px}
  body.fk.objection-page .fk-article__body,
  body.fk.objections-hub .g-split__body{width:665px;max-width:100%;justify-self:end}
  body.fk.objections-hub .g-cta{grid-column:1/-1;width:100%;justify-self:stretch}
}
