/* ============================================================
   costandprofitability.com - costing-methods-world HUB chrome
   Cluster hub. Praxis. Scoped .cc-hub. Loads with matrix.css.
   Page body only (<main>); WP injects nav/footer. Never blue.
   ============================================================ */
.cc-hub{
  --o:#C75B22; --o-br:#E2761A; --grn:#1C7A57;
  --ink:#1A1714; --ink2:#4A4138; --muted:#756859; --muted2:#9A8E7E;
  --paper:#F3EEE4; --paper2:#EDE6D8; --surface:#FBF9F3; --surface2:#FAF7F0;
  --line:#DCD3C2; --line2:#C9BEAA; --dark:#14110D; --red:#B23A2E; --wheat:#E8DBC2;
  --mono:'IBM Plex Mono',ui-monospace,monospace;
  --serif:'Newsreader',Georgia,serif;
  --sans:'Hanken Grotesk',system-ui,sans-serif;
  font-family:var(--sans);color:var(--ink);line-height:1.65;-webkit-font-smoothing:antialiased;
}
.cc-hub *{box-sizing:border-box;}
.cc-hub .hb-wrap{max-width:1120px;margin:0 auto;padding:0 28px;}
.cc-hub .hb-narrow{max-width:820px;margin:0 auto;}

/* hero */
.cc-hub .hb-hero{background:var(--dark);color:#fff;border-radius:0 0 16px 16px;padding:60px 0 52px;position:relative;overflow:hidden;}
.cc-hub .hb-hero::after{content:"";position:absolute;right:-130px;top:-130px;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,rgba(199,91,34,.20),transparent 70%);}
.cc-hub .hb-eyebrow{font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--o-br);display:flex;align-items:center;gap:11px;margin-bottom:18px;}
.cc-hub .hb-eyebrow::before{content:"";width:22px;height:1px;background:var(--o-br);}
.cc-hub .hb-hero h1{font-family:var(--serif);font-weight:500;font-size:clamp(32px,4.8vw,52px);line-height:1.04;letter-spacing:-.015em;margin:0;position:relative;z-index:2;max-width:20ch;}
.cc-hub .hb-hero .hb-lede{color:#CFC4B2;margin:20px 0 0;max-width:74ch;font-size:17px;line-height:1.66;position:relative;z-index:2;}

/* answer box */
.cc-hub .hb-answer{background:var(--dark);color:#EDE6D8;border-radius:14px;padding:30px 34px;margin:-30px auto 0;position:relative;z-index:5;max-width:900px;box-shadow:0 18px 40px -20px rgba(20,17,13,.5);}
.cc-hub .hb-answer .al{font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--o-br);margin-bottom:13px;display:flex;align-items:center;gap:10px;}
.cc-hub .hb-answer .al::before{content:"";width:18px;height:1px;background:var(--o-br);}
.cc-hub .hb-answer p{font-family:var(--serif);font-size:18px;line-height:1.55;color:#F8F4EC;margin:0;}
.cc-hub .hb-answer p b{color:#fff;font-weight:600;}

/* section rhythm */
.cc-hub .hb-sec{padding:52px 0;}
.cc-hub .hb-sec.alt{background:var(--paper2);}
.cc-hub .hb-kicker{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--o);margin-bottom:12px;display:flex;align-items:center;gap:10px;}
.cc-hub .hb-kicker::before{content:"";width:18px;height:1px;background:var(--o);}
.cc-hub .hb-sec h2{font-family:var(--serif);font-weight:500;font-size:clamp(25px,3.2vw,33px);letter-spacing:-.01em;line-height:1.12;margin:0 0 14px;color:var(--ink);}
.cc-hub .hb-intro{font-size:16.5px;line-height:1.68;color:var(--ink2);max-width:72ch;margin:0;}

/* world map motif */
.cc-hub .hb-map{margin-top:26px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;}
.cc-hub .hb-map svg{width:100%;height:auto;display:block;}
.cc-hub .hb-map .mp-cap{font-family:var(--mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted2);text-align:center;margin-top:12px;}

/* 7 method cards */
.cc-hub .hb-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px;}
.cc-hub .hb-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px 22px 18px;display:flex;flex-direction:column;transition:border-color .14s,box-shadow .14s,transform .14s;}
.cc-hub .hb-card:hover{border-color:var(--o);box-shadow:0 10px 26px -16px rgba(199,91,34,.5);transform:translateY(-2px);}
.cc-hub .hb-card .hc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px;}
.cc-hub .hb-card h3{font-family:var(--serif);font-weight:500;font-size:20px;letter-spacing:-.005em;margin:0;color:var(--ink);}
.cc-hub .hb-card .hc-flag{font-family:var(--mono);font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border:1px solid var(--line2);border-radius:100px;padding:4px 9px;white-space:nowrap;}
.cc-hub .hb-card .hc-origin{font-family:var(--mono);font-size:11px;color:var(--o);margin-bottom:8px;}
.cc-hub .hb-card p{font-size:14px;line-height:1.6;color:var(--ink2);margin:0 0 14px;}
.cc-hub .hb-card .hc-link{margin-top:auto;font-family:var(--sans);font-weight:600;font-size:13px;color:var(--o);text-decoration:none;display:inline-flex;align-items:center;gap:7px;transition:gap .15s;}
.cc-hub .hb-card .hc-link:hover{gap:10px;color:var(--o-br);}
.cc-hub .hb-card .hc-link svg{width:14px;height:14px;stroke:currentColor;}
@media(max-width:860px){ .cc-hub .hb-cards{grid-template-columns:1fr 1fr;} }
@media(max-width:560px){ .cc-hub .hb-cards{grid-template-columns:1fr;} }

/* decision guide */
.cc-hub .hb-decide{display:grid;grid-template-columns:1.1fr 1fr;gap:30px;margin-top:26px;align-items:start;}
.cc-hub .hb-dlist{list-style:none;margin:0;padding:0;}
.cc-hub .hb-dlist li{padding:15px 0;border-top:1px solid var(--line);display:flex;gap:14px;align-items:baseline;}
.cc-hub .hb-dlist li:first-child{border-top:none;}
.cc-hub .hb-dlist .di-if{flex:none;width:130px;font-family:var(--mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);line-height:1.5;padding-top:2px;}
.cc-hub .hb-dlist .di-then{font-size:15px;line-height:1.55;color:var(--ink2);}
.cc-hub .hb-dlist .di-then b{color:var(--ink);font-weight:600;}
.cc-hub .hb-tree{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:22px;}
.cc-hub .hb-tree svg{width:100%;height:auto;display:block;}
@media(max-width:860px){ .cc-hub .hb-decide{grid-template-columns:1fr;} }

/* FAQ */
.cc-hub .hb-faq{max-width:820px;margin:22px auto 0;}
.cc-hub .faq-item{border-bottom:1px solid var(--line);}
.cc-hub .faq-item summary{list-style:none;cursor:pointer;padding:19px 40px 19px 2px;position:relative;font-family:var(--serif);font-size:18px;color:var(--ink);font-weight:500;}
.cc-hub .faq-item summary::-webkit-details-marker{display:none;}
.cc-hub .faq-item summary::after{content:"+";position:absolute;right:6px;top:50%;transform:translateY(-50%);font-family:var(--mono);font-size:23px;color:var(--o);}
.cc-hub .faq-item[open] summary::after{content:"\2212";}
.cc-hub .faq-item .faq-a{padding:0 40px 20px 2px;}
.cc-hub .faq-item .faq-a p{margin:0;font-size:15.5px;line-height:1.7;color:var(--ink2);}

/* CTA + related */
.cc-hub .hb-related{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:24px;}
.cc-hub .hb-related a{border:1px solid var(--line);border-radius:9px;padding:14px 16px;background:var(--surface);text-decoration:none;transition:all .14s;}
.cc-hub .hb-related a:hover{border-color:var(--o);background:var(--surface2);}
.cc-hub .hb-related .rt{font-weight:600;color:var(--ink);font-size:14.5px;}
.cc-hub .hb-related .rd{color:var(--muted);font-size:12.5px;margin-top:3px;}
.cc-hub .hb-cta{background:var(--dark);color:#fff;border-radius:16px;padding:44px 40px;text-align:center;position:relative;overflow:hidden;}
.cc-hub .hb-cta::after{content:"";position:absolute;left:50%;top:-140px;width:420px;height:420px;border-radius:50%;transform:translateX(-50%);background:radial-gradient(circle,rgba(199,91,34,.2),transparent 70%);}
.cc-hub .hb-cta h2{font-family:var(--serif);font-weight:500;font-size:clamp(23px,3vw,30px);margin:0 auto 12px;max-width:26ch;position:relative;z-index:2;color:#fff;}
.cc-hub .hb-cta h2 em{font-style:italic;color:var(--o-br);}
.cc-hub .hb-cta p{color:#CFC4B2;max-width:54ch;margin:0 auto 24px;font-size:15.5px;position:relative;z-index:2;}
.cc-hub .hb-cta a{font-family:var(--sans);font-weight:600;font-size:14.5px;padding:14px 26px;border-radius:8px;text-decoration:none;background:var(--o);color:#fff;position:relative;z-index:2;display:inline-block;transition:background .15s;}
.cc-hub .hb-cta a:hover{background:var(--o-br);}

@media(max-width:560px){
  .cc-hub .hb-hero{padding:44px 0 38px;}
  .cc-hub .hb-answer{padding:24px 22px;}
  .cc-hub .hb-related{grid-template-columns:1fr;}
  .cc-hub .hb-cta{padding:34px 22px;}
}
