/* Shared styles for Kernow Labs subpages (insights, legal). */
:root {
  /* Palette from the Kernow Labs redesign: ink, paper, copper, bezant gold */
  --navy: #0E2229; --navy-deep: #0A191E; --blue: #B8612F; --blue-dark: #9E4F22;
  --ink: #0E2229; --body: #46545A; --muted: #6E7B80; --rule: #DCDFDC; --surface: #EFEDE7; --white: #F6F5F1;
  --gold: #C9A24A; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'IBM Plex Sans', system-ui, sans-serif; background: var(--white); color: var(--ink); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }

/* Nav */
header.nav { position: sticky; top: 0; z-index: 10; background: rgba(246,245,241,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav-row { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--navy); }
.mark-badge { width: 32px; height: 32px; background: var(--navy); color: var(--white); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 500; border-bottom: 3px solid var(--blue); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--body); }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.btn { display: inline-flex; align-items: center; padding: 11px 20px; font-size: 14px; font-weight: 500; background: var(--navy); color: var(--white) !important; }
.btn:hover { background: var(--blue-dark); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Page head */
.page-head { background: var(--navy); color: var(--white); padding: 72px 0 64px; }
.page-head .eyebrow { color: #E39A6B; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 600; max-width: 22ch; }
.page-head .lede { margin-top: 18px; color: #BFC9C9; font-size: 18px; max-width: 60ch; }
.breadcrumb { font-family: var(--mono); font-size: 12px; color: #8E9CA0; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--white); }

/* Article body */
main { padding: 72px 0 96px; }
.article { max-width: 72ch; }
.article h2 { font-size: 26px; font-weight: 600; margin: 44px 0 14px; }
.article h3 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.article p, .article li { color: var(--body); }
.article p { margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 18px 24px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--ink); }
.article a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.note { border-left: 4px solid var(--blue); background: var(--surface); padding: 18px 22px; margin: 28px 0; font-size: 15px; }
.note p:last-child { margin-bottom: 0; }

/* Post list (insights hub) */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { border: 1px solid var(--rule); border-top: 3px solid var(--navy); background: #FFFFFF; padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s, box-shadow 0.2s; }
.post:hover { border-top-color: var(--blue); }
.post-meta { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post h2 { font-size: 19px; font-weight: 600; }
.post p { color: var(--body); font-size: 15px; flex: 1; }
.post-more { font-size: 14px; font-weight: 600; color: var(--blue); }

/* Article CTA */
.article-cta { margin-top: 56px; background: var(--navy); color: var(--white); padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.article-cta h2 { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.article-cta p { color: #BFC9C9; margin: 0; font-size: 15px; }

/* Footer */
footer { background: var(--navy); color: #9AA7AA; padding: 40px 0 32px; font-size: 13px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-legal { display: flex; gap: 20px; flex-wrap: wrap; }
footer a:hover { color: var(--white); }

@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-row { flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px 0 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 20px; border-top: 1px solid var(--rule); font-size: 16px; }
  .nav-links a.btn { margin: 12px 20px 0; border-top: 0; justify-content: center; }
  .page-head { padding: 48px 0 40px; }
  main { padding: 48px 0 64px; }
  .posts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
