/* nov.css — Ticking Minds site design, Nov 2026
   Shared shell (nav, footer, cookie banner) + base for the redesigned pages.
   Palette: ink #211900 · gold #DFA900 / #FFC933 · cream #FBF8F0 · sand #F5EDD6
   Loaded on every page; legacy pages keep their own CSS and inherit the new shell. */

/* Fira Sans (SIL OFL 1.1, see /fonts/FiraSans-OFL.txt), self-hosted: no third-party request, no consent gate */
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fira-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/fira-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fira-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/fira-sans-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: italic; font-weight: 600; font-display: swap; src: url('/fonts/fira-sans-latin-600-italic.woff2') format('woff2'); }

:root {
  --tm-ink: #211900;
  --tm-ink-2: #2E2408;
  --tm-line-dark: #3A2F10;
  --tm-line-dark-2: #4A3C12;
  --tm-gold: #DFA900;
  --tm-gold-lt: #FFC933;
  --tm-gold-dk: #7C5E00;
  --tm-cream: #FBF8F0;
  --tm-sand: #F5EDD6;
  --tm-line: #E6DCC2;
  --tm-text: #4A4030;
  --tm-on-dark: #F3EEDF;
  --tm-on-dark-2: #D6CDB4;
}

/* ── Legacy pages (blogs, definitions, comparisons, FAQ, checklists, resources, legal) ──
   They still load shared.css + modern.css. Remap their design tokens to the new palette so
   they read as one site with the redesigned pages. Redesigned pages do not use these tokens. */
:root {
  --bg:        #211900;
  --bg-mid:    #261D04;
  --bg-card:   #2E2408;
  --bg-card2:  #382C0B;
  --gold:      #DFA900;
  --gold-lt:   #FFC933;
  --gold-dim:  #C9A13A;
  --white:     #FFFFFF;
  --cream:     #F3EEDF;
  --muted:     #D6CDB4;
  --border:    rgba(243,238,223,0.14);
  --border-md: rgba(243,238,223,0.26);
  --font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --c-attest: #DFA900;  --c-attest-rgb: 223,169,0;
  --c-data:   #FFC933;  --c-data-rgb:   255,201,51;
  --c-kb:     #E6C46A;  --c-kb-rgb:     230,196,106;
  --c-ts:     #F0B24A;  --c-ts-rgb:     240,178,74;
}
body:not([data-tm-design])::before {
  background: radial-gradient(900px 520px at 88% -8%, rgba(223,169,0,.10), transparent 62%) !important;
}
body:not([data-tm-design]) .grad, body:not([data-tm-design]) em {
  background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--gold-lt) !important;
}

/* ── Base for redesigned pages (they do not load shared.css) ── */
body[data-tm-design] {
  margin: 0;
  background: var(--tm-cream);
  color: var(--tm-ink);
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}
body[data-tm-design] *, body[data-tm-design] *::before, body[data-tm-design] *::after { box-sizing: border-box; }
.tm-page a { color: var(--tm-ink); }
.tm-page a:hover { color: var(--tm-gold-dk); }
.tm-page summary { cursor: pointer; }
.tm-page summary:focus-visible, .tm-page a:focus-visible, .tm-page button:focus-visible,
.tm-page input:focus-visible, .tm-page select:focus-visible, .tm-page textarea:focus-visible {
  outline: 3px solid var(--tm-gold); outline-offset: 2px; border-radius: 4px;
}
.tm-page img, .tm-page svg { max-width: 100%; }
.tm-page table { max-width: none; }

/* ── Shell: nav ── */
nav.tm-nav {
  position: sticky; top: 0; left: auto; right: auto; z-index: 200;
  background: var(--tm-ink) !important; color: var(--tm-on-dark);
  border: 0 !important; border-bottom: 1px solid var(--tm-line-dark) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  pointer-events: auto !important;
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.tm-nav-in {
  max-width: 1240px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.tm-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.tm-word { font-weight: 600; font-size: 24px; letter-spacing: -0.01em; color: #fff; }
.tm-word span { color: var(--tm-gold); }
.tm-links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.tm-links a { color: var(--tm-on-dark); text-decoration: none; }
.tm-links a:hover { color: var(--tm-gold-lt); }
.tm-links a[aria-current="page"] { color: var(--tm-gold-lt); }
.tm-links a.tm-cta {
  background: var(--tm-gold); color: var(--tm-ink); padding: 12px 18px; border-radius: 6px; font-weight: 600;
}
.tm-links a.tm-cta:hover { background: var(--tm-gold-lt); color: var(--tm-ink); }
.tm-burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--tm-line-dark-2); border-radius: 8px; cursor: pointer; padding: 0;
}
.tm-burger .tm-x { display: none; }
.tm-burger[aria-expanded="true"] .tm-x { display: block; }
.tm-burger[aria-expanded="true"] .tm-bars { display: none; }
.tm-burger:focus-visible, .tm-links a:focus-visible, .tm-logo:focus-visible { outline: 3px solid var(--tm-gold-lt); outline-offset: 2px; }

@media (max-width: 960px) {
  .tm-burger { display: flex; }
  .tm-nav-in { padding: 12px 16px; }
  .tm-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--tm-ink); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 24px; border-top: 1px solid var(--tm-line-dark);
    box-shadow: 0 16px 24px rgba(33, 25, 0, 0.35);
  }
  .tm-links.open { display: flex; }
  .tm-links a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--tm-line-dark); }
  .tm-links a.tm-cta { margin-top: 18px; text-align: center; border-bottom: 0; padding: 15px 18px; font-size: 16px; }
}
@media (max-width: 420px) { .tm-word { font-size: 20px; } }

/* Legacy pages: heroes were padded to clear a fixed nav; the new nav sits in flow */
.page-hero { padding-top: 72px; }

/* ── Shell: footer ── */
footer.tm-foot {
  background: var(--tm-ink); color: var(--tm-on-dark-2);
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  margin: 0; padding: 0; border-top: 0;
}
.tm-foot-in { max-width: 1240px; margin: 0 auto; padding: 64px 24px 40px; display: flex; flex-direction: column; gap: 48px; }
.tm-foot-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.tm-foot-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.tm-foot-brand .tm-word { font-size: 26px; }
.tm-foot-tag { margin: 0; font-style: italic; font-weight: 500; font-size: 15px; color: var(--tm-on-dark); }
.tm-foot-tag span { color: var(--tm-gold-lt); }
.tm-foot-addr { margin: 0; font-size: 14px; line-height: 1.6; }
.tm-foot-addr strong { color: var(--tm-on-dark); }
.tm-foot-addr a { color: var(--tm-on-dark-2); }
.tm-foot-cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.tm-foot-col { display: flex; flex-direction: column; gap: 10px; }
.tm-foot-col h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tm-gold); line-height: 1.4; }
.tm-foot-col a { color: var(--tm-on-dark); text-decoration: none; }
.tm-foot-col a:hover, .tm-foot-addr a:hover, .tm-foot-legal a:hover { color: var(--tm-gold-lt); }
.tm-foot-bottom {
  border-top: 1px solid var(--tm-line-dark); padding-top: 24px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 13px; color: #B3A57E;
}
.tm-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.tm-foot-legal a { color: var(--tm-on-dark); text-decoration: none; }
.tm-foot-legal button {
  font: inherit; background: none; border: 0; padding: 0; color: var(--tm-on-dark); cursor: pointer; text-decoration: none;
}
.tm-foot-legal button:hover { color: var(--tm-gold-lt); }
footer.tm-foot a:focus-visible, footer.tm-foot button:focus-visible { outline: 3px solid var(--tm-gold-lt); outline-offset: 2px; }

/* ── Cookie consent banner ── */
#tm-cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  max-width: 1240px; margin: 0 auto;
  background: var(--tm-ink) !important; color: var(--tm-on-dark);
  border: 1px solid var(--tm-line-dark-2) !important; border-radius: 12px;
  padding: 22px 26px; backdrop-filter: none !important;
  transform: translateY(calc(100% + 24px)); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; box-shadow: 0 12px 32px rgba(33, 25, 0, 0.35);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
#tm-cookie-banner.ck-visible { transform: translateY(0); }
.ck-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.ck-text { flex: 1 1 520px; min-width: 0; }
.ck-text strong { display: block; color: #fff; font-size: 17px; font-weight: 600; }
.ck-text p { margin: 6px 0 0; color: var(--tm-on-dark-2); font-size: 15px; line-height: 1.55; }
.ck-text a { color: var(--tm-gold-lt); text-decoration: underline; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ck-btn {
  font: inherit; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 6px;
  cursor: pointer; white-space: nowrap; border: 1.5px solid transparent; min-height: 44px;
}
.ck-btn:hover { opacity: 0.88; }
.ck-btn:focus-visible { outline: 3px solid var(--tm-gold-lt); outline-offset: 2px; }
.ck-manage { background: transparent; color: var(--tm-on-dark); border-color: var(--tm-line-dark-2); }
.ck-reject { background: transparent; color: var(--tm-gold-lt); border-color: var(--tm-gold); }
.ck-accept { background: var(--tm-gold); color: var(--tm-ink); }
.ck-prefs { margin-top: 18px; border-top: 1px solid var(--tm-line-dark-2); padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.ck-prefs[hidden] { display: none; }
.ck-pref-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ck-pref-info { flex: 1 1 280px; }
.ck-pref-info strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.ck-pref-info span { color: var(--tm-on-dark-2); font-size: 14px; line-height: 1.5; }
.ck-toggle { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.ck-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-toggle-track { width: 44px; height: 24px; border-radius: 12px; background: var(--tm-line-dark-2); position: relative; transition: background 0.2s; }
.ck-toggle-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--tm-on-dark-2); transition: transform 0.2s, background 0.2s;
}
.ck-toggle input:checked + .ck-toggle-track { background: var(--tm-gold); }
.ck-toggle input:checked + .ck-toggle-track::after { transform: translateX(20px); background: var(--tm-ink); }
.ck-toggle input:focus-visible + .ck-toggle-track { outline: 3px solid var(--tm-gold-lt); outline-offset: 2px; }
.ck-toggle-locked { font-size: 13px; color: var(--tm-on-dark-2); }
.ck-pref-actions { display: flex; }
@media (max-width: 640px) {
  #tm-cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 18px; }
  .ck-actions .ck-btn { flex: 1 1 100%; }
}

/* ── Contact form feedback (shared handler in components.js) ── */
.email-error { display: block; font-size: 13px; color: #B3261E; margin-top: 4px; min-height: 1em; }
input.input-error, select.input-error, textarea.input-error { border-color: #B3261E !important; }

@media (prefers-reduced-motion: reduce) {
  #tm-cookie-banner { transition: none; }
}

/* ── Nav dropdowns (T-Sigma, Industries, Resources) ── */
.tm-dd { position: relative; display: flex; align-items: center; gap: 2px; }
.tm-links .tm-dd-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 28px; padding: 0;
  background: transparent; border: 0; border-radius: 4px; color: var(--tm-on-dark-2); cursor: pointer;
}
.tm-links .tm-dd-btn:hover { color: var(--tm-gold-lt); }
.tm-links .tm-dd-btn:focus-visible { outline: 3px solid var(--tm-gold-lt); outline-offset: 2px; }
.tm-dd-btn svg { transition: transform .15s ease; }
.tm-dd.open .tm-dd-btn svg { transform: rotate(180deg); }
.tm-dd-menu { display: none; }
.tm-dd-menu a { display: block; white-space: nowrap; }
@media (min-width: 961px) {
  .tm-dd-menu {
    position: absolute; top: 100%; left: -14px; min-width: 250px; padding: 8px; margin-top: 10px;
    background: var(--tm-ink); border: 1px solid var(--tm-line-dark-2); border-radius: 10px;
    box-shadow: 0 16px 28px rgba(33, 25, 0, 0.4); flex-direction: column; gap: 2px; z-index: 210;
  }
  .tm-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .tm-dd.open .tm-dd-menu { display: flex; }
  .tm-dd-menu a { padding: 10px 12px; border-radius: 6px; font-size: 15px; }
  .tm-dd-menu a:hover, .tm-dd-menu a:focus-visible { background: var(--tm-ink-2); color: var(--tm-gold-lt); }
}
@media (min-width: 961px) and (hover: hover) {
  .tm-dd:hover .tm-dd-menu, .tm-dd:focus-within .tm-dd-menu { display: flex; }
  .tm-dd:hover .tm-dd-btn svg, .tm-dd:focus-within .tm-dd-btn svg { transform: rotate(180deg); }
}
@media (max-width: 960px) {
  .tm-dd { flex-wrap: wrap; border-bottom: 1px solid var(--tm-line-dark); gap: 0; }
  .tm-links .tm-dd .tm-dd-link { flex: 1 1 auto; border-bottom: 0; }
  .tm-links .tm-dd-btn { width: 48px; height: 48px; }
  .tm-dd.open .tm-dd-menu { display: flex; flex-direction: column; flex-basis: 100%; padding: 0 0 10px 14px; }
  .tm-links .tm-dd-menu a { font-size: 16px; padding: 11px 0; border-bottom: 0; color: var(--tm-on-dark-2); }
}

/* Blog header topic watermark */
header[data-topic]{position:relative;overflow:hidden}
header[data-topic="aigenerativeai"]{--ic:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23DFA900%22%20stroke-width=%220.7%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M12%203l1.8%205.2L19%2010l-5.2%201.8L12%2017l-1.8-5.2L5%2010l5.2-1.8zM19%2017l.7%202%202%20.7-2%20.7-.7%202-.7-2-2-.7%202-.7z%22/%3E%3C/svg%3E")}
header[data-topic="qualityengineering"]{--ic:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23DFA900%22%20stroke-width=%220.7%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M12%203l8%203v6c0%205-3.5%208-8%209-4.5-1-8-4-8-9V6zM8.5%2012l2.5%202.5%204.5-5%22/%3E%3C/svg%3E")}
header[data-topic="performanceengineering"]{--ic:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23DFA900%22%20stroke-width=%220.7%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M4%2016a8%208%200%201%201%2016%200M12%2016l4-5M4%2016h2M18%2016h2M12%208v2%22/%3E%3C/svg%3E")}
header[data-topic="bankingfinancialservices"]{--ic:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%2024%2024%22%20fill=%22none%22%20stroke=%22%23DFA900%22%20stroke-width=%220.7%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22%3E%3Cpath%20d=%22M3%2010l9-6%209%206M5%2010v8M9.5%2010v8M14.5%2010v8M19%2010v8M3%2021h18%22/%3E%3C/svg%3E")}
header[data-topic]::after{content:"";position:absolute;right:max(24px,calc((100% - 1200px)/2 + 24px));top:50%;transform:translateY(-50%);width:230px;height:230px;background:var(--ic) center/contain no-repeat;opacity:.5;pointer-events:none}
@media(max-width:1000px){header[data-topic]::after{display:none}}

/* Poster figures (product infographics) + click-to-enlarge */
.tm-poster{margin:0}
.tm-poster .tm-zoom{display:block;position:relative;border-radius:14px;overflow:hidden;border:1px solid #4A3C12;box-shadow:0 24px 60px -24px rgba(0,0,0,.55);cursor:zoom-in;line-height:0}
.tm-poster--light .tm-zoom{border-color:#E6DCC2;box-shadow:0 18px 44px -22px rgba(33,25,0,.45)}
.tm-poster img{display:block;width:100%;height:auto;transition:transform .4s ease}
.tm-poster .tm-zoom:hover img{transform:scale(1.012)}
.tm-poster .tm-zoom:focus-visible{outline:3px solid #FFC933;outline-offset:3px}
.tm-poster .tm-zoom::after{content:"Enlarge";position:absolute;right:14px;bottom:14px;line-height:1;font-family:inherit;font-weight:600;font-size:12px;letter-spacing:.08em;text-transform:uppercase;background:#DFA900;color:#211900;padding:8px 12px;border-radius:999px;opacity:0;transform:translateY(4px);transition:.2s}
.tm-poster .tm-zoom:hover::after,.tm-poster .tm-zoom:focus-visible::after{opacity:1;transform:none}
@media(hover:none){.tm-poster .tm-zoom::after{opacity:1;transform:none}}
.tm-poster figcaption{margin-top:14px;font-size:14px;line-height:1.5;color:#B3A57E}
.tm-poster--light figcaption{color:#6B5F45}
.tm-lightbox{position:fixed;inset:0;z-index:10000;background:rgba(18,13,0,.92);display:block;overflow:auto;padding:56px 16px 24px;cursor:zoom-out}
.tm-lightbox img{width:min(max(100%,900px),1600px);max-width:none;height:auto;border-radius:10px;display:block;margin:0 auto}
.tm-lightbox button{position:fixed;top:12px;right:14px;background:#DFA900;color:#211900;border:0;border-radius:999px;padding:10px 16px;font-family:inherit;font-weight:600;font-size:14px;cursor:pointer}
