/* ============================================================
   THE BUSINESS CHEFS — article pages and the /insights/ hub.
   Tokens, nav, footer and cards are copied from index.html so
   these pages read as the same site; keep them in step when the
   homepage design changes. Pages themselves are generated by
   private/pages.php on every export.
   ============================================================ */
:root {
  --ink:#0E1626; --ink-2:#16203A; --ink-3:#1F2B47;
  --paper:#F6F3EC; --paper-2:#FBF9F4; --white:#FFFFFF;
  --saffron:#E0922F; --saffron-lt:#F2A93B; --saffron-dp:#B9741A; --saffron-wash:#FBEFDD; --ember:#C0431D;
  --text:#16203A; --text-soft:#51596B; --muted:#8A92A0; --line:#E4DFD4; --line-soft:#EEEAE0;
  --on-ink:#F6F3EC; --on-ink-soft:rgba(246,243,236,.66); --on-ink-faint:rgba(246,243,236,.40); --on-ink-line:rgba(246,243,236,.12);
  --bg:#F6F3EC; --surface:#FFFFFF; --surface-2:#FBF9F4;
  --shadow-sm:0 1px 2px rgba(14,22,38,.04),0 2px 8px rgba(14,22,38,.04);
  --shadow-md:0 6px 24px rgba(14,22,38,.08);
  --shadow-lg:0 24px 60px rgba(14,22,38,.14);
  --shadow-saffron:0 14px 40px rgba(224,146,47,.28);
  --r-sm:8px; --r-md:14px; --r-lg:22px; --r-pill:999px;
  --maxw:1200px;
  --ease:cubic-bezier(.22,.61,.36,1); --ease-out:cubic-bezier(.16,1,.3,1);
  --font-display:'Fraunces',Georgia,'Times New Roman',serif;
  --font-body:'Inter',system-ui,-apple-system,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,monospace;
}
[data-theme="dark"] {
  --paper:#0B111E; --paper-2:#111A2B;
  --text:#ECE7DC; --text-soft:#AEB6C4; --muted:#7E8696; --line:#25304A; --line-soft:#1C2741;
  --bg:#0B111E; --surface:#111A2B; --surface-2:#16213A; --saffron-wash:#21283A;
  --shadow-md:0 6px 24px rgba(0,0,0,.4); --shadow-lg:0 24px 60px rgba(0,0,0,.5);
}
/* feature surfaces flip with the theme, as on the homepage */
.footer, .art-cta {
  --ink:#EAE0CC; --ink-2:#FFFFFF; --ink-3:#F3ECDC;
  --on-ink:#1F2A3D; --on-ink-soft:#4B5468; --on-ink-faint:#6C7486; --on-ink-line:#DCCFB6;
  --saffron:#A85D14; --saffron-lt:#A85D14;
}
[data-theme="dark"] :is(.footer, .art-cta) {
  --ink:#0E1626; --ink-2:#16203A; --ink-3:#1F2B47;
  --on-ink:#F6F3EC; --on-ink-soft:rgba(246,243,236,.70); --on-ink-faint:rgba(246,243,236,.45); --on-ink-line:rgba(246,243,236,.12);
  --saffron:#E0922F; --saffron-lt:#F2A93B;
}

*,*::before,*::after { box-sizing:border-box; }
* { margin:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:hidden; }
body { font-family:var(--font-body); background:var(--bg); color:var(--text); line-height:1.6; font-size:17px;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; overflow-x:hidden; }
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
::selection { background:var(--saffron); color:var(--ink); }
h1,h2,h3,h4 { font-family:var(--font-display); font-weight:500; line-height:1.08; letter-spacing:-0.015em; color:var(--text); }
.mono { font-family:var(--font-mono); font-weight:500; letter-spacing:.16em; text-transform:uppercase; font-size:12px; }
.wrap { width:100%; max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.eyebrow { display:inline-flex; align-items:center; gap:9px; color:var(--saffron-dp); }
.eyebrow::before { content:""; width:22px; height:1.5px; background:var(--saffron); display:inline-block; }
.ic { width:18px; height:18px; flex:0 0 auto; }
.skip { position:absolute; left:-9999px; top:8px; z-index:200; background:var(--saffron); color:#2A1A05; padding:10px 16px; border-radius:var(--r-pill); font-weight:600; }
.skip:focus { left:12px; }

/* buttons */
.btn { display:inline-flex; align-items:center; gap:9px; font-weight:600; font-size:15px; padding:15px 26px; border-radius:var(--r-pill);
  cursor:pointer; border:1.5px solid transparent; transition:transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s; }
.btn:focus-visible { outline:3px solid var(--saffron); outline-offset:3px; }
.btn-primary { background:var(--saffron); color:#2A1A05; box-shadow:var(--shadow-saffron); }
.btn-primary:hover { transform:translateY(-2px); background:var(--saffron-lt); box-shadow:0 18px 48px rgba(224,146,47,.4); }
.btn-ghost { border-color:var(--line); color:var(--text); background:transparent; }
.btn-ghost:hover { border-color:var(--ink); transform:translateY(-2px); }

/* nav */
.nav { position:fixed; top:0; left:0; right:0; z-index:100; transition:background .3s, box-shadow .3s, border-color .3s; border-bottom:1px solid transparent; }
.nav.scrolled { background:color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom-color:var(--line); }
.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:84px; padding:10px 0; }
.brand { display:flex; align-items:center; gap:13px; text-decoration:none; }
.brand-logo { width:52px; height:52px; object-fit:contain; flex:0 0 auto; }
.brand-text { display:flex; flex-direction:column; line-height:1.08; }
.brand-name { font-family:var(--font-display); font-weight:600; font-size:22px; letter-spacing:-.01em; color:var(--saffron-dp); }
.brand-name .tag { color:var(--saffron); }
.brand-slogan { font-family:var(--font-body); font-weight:500; font-size:10.5px; letter-spacing:.005em; line-height:1.3; color:var(--text-soft); max-width:260px; margin-top:4px; }
.theme-select { position:relative; }
.theme-menu { position:absolute; top:calc(100% + 10px); right:0; min-width:160px; background:var(--surface); border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--shadow-md); padding:6px; display:none; flex-direction:column; z-index:120; }
.theme-menu.open { display:flex; }
.theme-menu button { display:flex; align-items:center; gap:10px; width:100%; padding:9px 11px; border:0; background:transparent; color:var(--text);
  font:500 14px var(--font-body); border-radius:8px; cursor:pointer; text-align:left; }
.theme-menu button:hover { background:var(--surface-2); }
.theme-menu button.active { color:var(--saffron-dp); }
.theme-menu button svg { width:17px; height:17px; }
.theme-menu .check { margin-left:auto; opacity:0; color:var(--saffron-dp); }
.theme-menu button.active .check { opacity:1; }
.nav-links { display:flex; align-items:center; gap:clamp(14px,1.55vw,20px); }
.nav-links a { font-size:15px; color:var(--text-soft); font-weight:500; position:relative; transition:color .2s; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:var(--saffron); transition:width .28s var(--ease); }
.nav-links a:hover, .nav-links a.active { color:var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.nav-actions { display:flex; align-items:center; gap:14px; }
.icon-btn { width:40px; height:40px; border-radius:50%; border:1px solid var(--line); background:transparent; color:var(--text-soft);
  display:grid; place-items:center; cursor:pointer; transition:color .2s, border-color .2s; }
.icon-btn:hover { color:var(--saffron-dp); border-color:var(--saffron); }
.hamburger { display:none; width:44px; height:44px; border:0; background:transparent; cursor:pointer; flex-direction:column; gap:5px; justify-content:center; align-items:center; }
.hamburger span { width:24px; height:2px; background:var(--text); transition:.3s; border-radius:2px; }
.hamburger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.mobile-menu { position:fixed; inset:84px 0 auto 0; background:var(--bg); border-bottom:1px solid var(--line); padding:18px 28px 28px; display:none; flex-direction:column; z-index:99;
  max-height:calc(100vh - 84px); max-height:calc(100dvh - 84px); overflow-y:auto; overscroll-behavior:contain; }
.mobile-menu.active { display:flex; }
.mobile-menu a { padding:13px 4px; font-size:17px; font-weight:500; border-bottom:1px solid var(--line-soft); color:var(--text); }
.mobile-menu .btn { margin-top:14px; justify-content:center; border-bottom:0; color:#2A1A05; }

/* ---- article ---- */
main { padding-top:84px; }
.art-col { max-width:784px; }               /* 728px of text + the 28px gutters */
.art-head { padding:56px 0 34px; }
.art-crumbs { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-family:var(--font-mono); font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted); margin-bottom:22px; }
.art-crumbs a { color:var(--saffron-dp); }
.art-crumbs a:hover { text-decoration:underline; text-underline-offset:3px; }
.art-head h1 { font-size:clamp(34px, 5vw, 54px); line-height:1.08; letter-spacing:-.02em; font-weight:500; text-wrap:balance; }
.art-dek { margin-top:20px; font-size:clamp(18px, 2vw, 20.5px); line-height:1.6; color:var(--text-soft); max-width:62ch; }
.art-meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:24px; font-family:var(--font-mono); font-size:12.5px;
  letter-spacing:.04em; color:var(--muted); }
.art-meta span:first-child { color:var(--saffron-dp); font-weight:600; }
.art-cover { max-width:1040px; margin:0 auto 46px; }
.art-cover img { width:100%; height:auto; border-radius:var(--r-lg); box-shadow:var(--shadow-md); border:1px solid var(--line); background:var(--surface-2); }

.art-body { font-size:18px; line-height:1.8; color:var(--text); }
.art-body > * + * { margin-top:1.05em; }
.art-body > :is(h1,h2,h3,h4) + * { margin-top:.6em; }
.art-body h2 { font-size:clamp(25px, 3vw, 31px); line-height:1.2; margin-top:1.9em; letter-spacing:-.015em; }
.art-body h3 { font-size:clamp(21px, 2.4vw, 23.5px); line-height:1.3; margin-top:1.6em; }
.art-body h4 { font-family:var(--font-body); font-size:18px; font-weight:700; line-height:1.4; margin-top:1.4em; letter-spacing:0; }
.art-body > :first-child { margin-top:0; }
.art-body a { color:var(--saffron-dp); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
[data-theme="dark"] .art-body a { color:var(--saffron-lt); }
.art-body strong { font-weight:700; }
.art-body ul, .art-body ol { padding-left:1.4em; }
.art-body li + li { margin-top:.4em; }
.art-body li::marker { color:var(--saffron-dp); }
.art-body blockquote { padding:6px 0 6px 22px; border-left:3px solid var(--saffron); color:var(--text-soft); font-style:italic; font-family:var(--font-display); font-size:1.12em; }
.art-body hr { border:0; border-top:1px solid var(--line); margin:2.2em 0; }
.art-body code { font-family:var(--font-mono); font-size:.86em; background:var(--surface-2); border:1px solid var(--line-soft); padding:1px 6px; border-radius:5px; }
.art-body pre { font-family:var(--font-mono); font-size:14px; line-height:1.6; background:var(--surface-2); border:1px solid var(--line-soft); border-radius:10px; padding:16px 18px; overflow:auto; }
.art-body pre code { background:none; border:0; padding:0; }
/* pictures in the text: uploaded in the admin, always /images/articles/… with width/height set */
.art-body img { max-width:100%; height:auto; margin-inline:auto; border-radius:var(--r-md); border:1px solid var(--line); background:var(--surface-2); }
/* transparent pictures are drawn for a light page (dark outlines vanish on navy): keep a paper backing in dark mode */
[data-theme="dark"] .art-body img { background:#F6F3EC; }
.art-body > :where(figure, p:has(> img:only-child)), .art-body > :where(figure, p:has(> img:only-child)) + * { margin-top:1.7em; }
.art-body figcaption { margin-top:12px; font-size:14.5px; line-height:1.55; color:var(--text-soft); text-align:center; text-wrap:balance; }
.art-body li img, .art-body td img, .art-body th img { margin-block:.4em; }
/* tables: scroll sideways on narrow screens */
.art-tablewrap { overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); }
.art-body table { width:100%; border-collapse:collapse; font-size:15.5px; line-height:1.6; }
.art-body th, .art-body td { padding:12px 16px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line-soft); border-right:1px solid var(--line-soft); min-width:130px; }
.art-body tr > :last-child { border-right:0; }
.art-body tr:last-child > * { border-bottom:0; }
.art-body th, .art-body thead td { background:var(--surface-2); font-weight:700; }
.art-body tbody tr:nth-child(even) td { background:color-mix(in srgb, var(--surface-2) 60%, transparent); }
.art-body td p, .art-body th p { margin:0; }
.art-body td p + p, .art-body th p + p { margin-top:.5em; }
/* a one-cell table is a pasted call-out box ("Key takeaways") — style it as one */
.art-body .art-tablewrap:has(tr:only-child > :only-child) { border:0; border-left:3px solid var(--saffron); border-radius:0 var(--r-md) var(--r-md) 0; background:var(--saffron-wash); }
.art-body .art-tablewrap:has(tr:only-child > :only-child) td { background:transparent; padding:22px 26px; font-size:16.5px; min-width:0; }

.art-cta { margin:64px 0 0; padding:38px 40px; border-radius:var(--r-lg); background:var(--ink); color:var(--on-ink-soft); }
.art-cta .eyebrow { color:var(--saffron); }
.art-cta .eyebrow::before { background:var(--saffron); }
.art-cta h2 { color:var(--on-ink); font-size:clamp(26px, 3.4vw, 34px); line-height:1.15; margin-top:14px; }
.art-cta p { margin-top:14px; font-size:16.5px; line-height:1.65; color:var(--on-ink-soft); max-width:56ch; }
.art-cta-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.art-cta .btn-primary { background:#E0922F; color:#2A1A05; }          /* the kraft surface darkens --saffron; the button keeps the brand colour */
.art-cta .btn-primary:hover { background:#F2A93B; }
.art-cta .btn-ghost { border-color:var(--on-ink-line); color:var(--on-ink); }
.art-cta .btn-ghost:hover { border-color:var(--saffron); }

.art-more { padding:84px 0 96px; }
.art-more-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:26px; }
.art-more-head h2 { font-size:clamp(26px, 3.4vw, 36px); }
.art-all { display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:15px; color:var(--saffron-dp); }
.art-all:hover { gap:12px; }
[data-theme="dark"] .art-all { color:var(--saffron-lt); }
.art-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:20px; }

/* ---- hub ---- */
.hub-head { padding:56px 0 40px; }
.hub-head h1 { font-size:clamp(38px, 6vw, 64px); letter-spacing:-.02em; }
.hub-list { padding:0 0 100px; }

/* cards — same look as the homepage carousel */
.ins-card { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); overflow:hidden;
  text-decoration:none; transition:border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.ins-card[href] { cursor:pointer; }
.ins-card[href]:hover { border-color:var(--saffron); box-shadow:var(--shadow-md); transform:translateY(-4px); }
.ins-card:focus-visible { outline:3px solid var(--saffron); outline-offset:3px; }
.ins-cover { position:relative; aspect-ratio:16/9; background:linear-gradient(135deg, #2A1A05 0%, #6b4410 55%, var(--saffron) 100%);
  display:grid; place-items:center; overflow:hidden; flex-shrink:0; }
.ins-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.ins-cover .ins-cover-mark { font-family:var(--font-display); font-size:15px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:rgba(255,255,255,.92); text-align:center; padding:0 14px; }
.ins-body { display:flex; flex-direction:column; flex:1; padding:22px 24px 24px; }
.ins-card h3 { font-size:18px; line-height:1.35; color:var(--text); }
.ins-card p { color:var(--text-soft); font-size:14.5px; line-height:1.6; margin:10px 0 0; flex:1;
  display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.ins-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:18px; padding-top:14px; border-top:1px solid var(--line-soft); }
.ins-date { font-family:var(--font-mono); font-size:11.5px; color:var(--muted); }
.ins-read { display:inline-flex; align-items:center; gap:6px; font-weight:600; font-size:13.5px; color:var(--saffron-dp); text-align:right; }
.ins-read svg { width:15px; height:15px; }
[data-theme="dark"] .ins-read { color:var(--saffron-lt); }
.ins-badge { position:absolute; top:10px; right:10px; z-index:2; display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono);
  font-size:10.5px; font-weight:600; letter-spacing:.06em; text-transform:lowercase; padding:5px 9px; border-radius:999px;
  background:rgba(255,255,255,.94); color:var(--text); box-shadow:0 2px 10px rgba(0,0,0,.25); }
.ins-badge-li { width:30px; height:30px; padding:0; justify-content:center; background:#0A66C2; color:#fff; }
.ins-badge-li svg { width:16px; height:16px; display:block; }
[data-theme="dark"] .ins-badge-web { background:rgba(17,26,43,.92); color:var(--text); }

/* ---- footer ---- */
.footer { background:var(--ink); color:var(--on-ink-soft); padding:64px 0 30px; }
.foot-top { display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:40px; }
.foot-brand .brand-logo { width:42px; height:42px; }
.foot-brand .brand-name { color:var(--saffron-lt); font-size:20px; }
.foot-brand p { margin-top:16px; max-width:34ch; font-size:15px; color:var(--on-ink-soft); }
.foot-soc { display:flex; gap:10px; margin-top:20px; }
.foot-soc a { width:40px; height:40px; border-radius:50%; border:1px solid var(--on-ink-line); display:grid; place-items:center; color:var(--on-ink-soft); transition:all .2s; }
.foot-soc a:hover { border-color:var(--saffron); color:var(--saffron-lt); }
.foot-col h4 { font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--on-ink-faint); font-weight:500; margin-bottom:16px; }
.foot-col a { display:block; color:var(--on-ink-soft); font-size:15px; padding:6px 0; transition:color .2s; }
.foot-col a:hover { color:var(--saffron-lt); }
.foot-bottom { border-top:1px solid var(--on-ink-line); margin-top:48px; padding-top:24px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:13px; color:var(--on-ink-faint); }

/* ---- responsive ---- */
@media (max-width:980px){
  .foot-top { grid-template-columns:1fr 1fr; }
  .art-grid { grid-template-columns:repeat(2, 1fr); }
}
/* nav, as on the homepage: above 980px keep the 28px side gutter ("padding:10px 0" cancels the .wrap one; from
   1256px up this is the same box as before) and open the menu as a panel 8px under the bar. "not all and
   (max-width:980px)" is the exact complement of the 980 block, so zoomed widths like 980.9px are covered */
@media not all and (max-width:980px){
  .nav-inner { max-width:calc(var(--maxw) + 56px); padding:10px 28px; }
  .mobile-menu { top:92px; left:auto; right:max(28px, calc((100% - var(--maxw)) / 2)); width:min(360px, calc(100% - 56px)); padding:8px 22px 22px; gap:2px;
    background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); box-shadow:var(--shadow-lg); max-height:calc(100vh - 108px); max-height:calc(100dvh - 108px); }
}
/* same breakpoint as the homepage: the full desktop nav needs a 1208px window there (measured, Windows scrollbar
   included); 1231 adds ~24px for font rendering differences. At or below it the hamburger takes over. */
@media (max-width:1231px){ .nav-links { display:none; } .hamburger { display:flex; } }
/* wider than that the hamburger is hidden, so a menu left open while the window grows must not stay on screen */
@media not all and (max-width:1231px){ .mobile-menu.active { display:none; } }
@media (max-width:820px){ .nav-cta { display:none; } }
@media (max-width:720px){ .brand-slogan { display:none; } }
@media (max-width:600px){
  body { font-size:16px; }
  .wrap { padding:0 20px; }
  .brand-logo { width:44px; height:44px; } .brand-name { font-size:20px; }
  .foot-top { grid-template-columns:1fr; }
  .art-head { padding:34px 0 26px; }
  .art-cover { margin-bottom:32px; padding:0; }
  .art-cover img { border-radius:0; border-left:0; border-right:0; }
  .art-body { font-size:17px; line-height:1.75; }
  .art-cta { padding:28px 22px; margin-top:48px; }
  .art-cta-row .btn { width:100%; justify-content:center; }
  .art-grid { grid-template-columns:1fr; }
  .art-more { padding:60px 0 72px; }
}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
  html { scroll-behavior:auto; }
}
@media print {
  .nav, .mobile-menu, .art-cta, .art-more, .footer, .skip { display:none !important; }
  main { padding-top:0; }
  body { background:#fff; color:#000; }
  .art-body figure, .art-body img { break-inside:avoid; }
}
