/* Cornerstone Future Solutions Inc. — site styles (rebuilt 2026-09-28) */
:root {
  --paper: #fbfbfa;
  --panel: #f3f2ee;
  --ink: #1c1c1a;
  --muted: #5c5c56;
  --faint: #8a8a84;
  --rule: #e4e2dc;
  --pine: #1f4a43;
  --pine-deep: #163630;
  --pine-soft: #e6eeeb;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 72rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: 0.18em; }
a:hover { color: var(--pine-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pine); outline-offset: 3px;
}
.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; }
.wordmark { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); text-decoration: none; line-height: 1.25; }
.wordmark small { display: block; font-family: var(--sans); font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 1.35rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--pine); text-decoration: underline; }
.nav .btn { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 4px; padding: .4rem .7rem; font: inherit; font-size: .875rem; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; background: var(--pine); color: #fff; text-decoration: none;
  font-size: .9375rem; font-weight: 600; letter-spacing: .01em;
  padding: .8rem 1.35rem; border-radius: 4px; border: 1px solid var(--pine); cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--pine-deep); color: #fff; }
.btn.secondary { background: transparent; color: var(--pine); }
.btn.secondary:hover { background: var(--pine-soft); color: var(--pine-deep); }
.btn.light { background: #fff; color: var(--pine-deep); border-color: #fff; }
.btn.light:hover { background: var(--pine-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 20ch; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); max-width: 26ch; }
h3 { font-size: 1.25rem; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); margin-bottom: .85rem; }
.lead { font-size: 1.1875rem; color: var(--ink); max-width: 44rem; margin-top: 1.1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
p + p { margin-top: .9rem; }
.prose { max-width: 44rem; }
.prose p, .prose li { color: var(--ink); }
ul.clean { list-style: none; }
ul.ticks { list-style: none; margin-top: 1rem; }
ul.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: .7rem; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--pine-soft); border: 2px solid var(--pine); }
ol.steps { margin: 1rem 0 0 1.2rem; }
ol.steps li { margin-bottom: .7rem; padding-left: .3rem; }

/* Sections */
.section { padding: 4rem 0; border-top: 1px solid var(--rule); }
.section.tint { background: var(--panel); }
.section.dark { background: var(--pine-deep); color: #eef3f1; border-top: 0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .eyebrow { color: #b9d3cc; }
.section.dark .muted { color: #c9d9d4; }
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, var(--pine-soft) 0%, var(--paper) 100%); }
.hero .note { margin-top: 1.5rem; font-size: .9375rem; color: var(--muted); max-width: 44rem; }
.page-hero { padding: 3.5rem 0 2.75rem; background: var(--panel); border-bottom: 1px solid var(--rule); }
.page-hero .formal { font-size: .9375rem; color: var(--muted); margin-top: .5rem; }

/* Key details box */
.details { display: grid; gap: 0; border: 1px solid var(--rule); border-top: 4px solid var(--pine); background: #fff; margin-top: 2rem; }
.details div { padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.details div:last-child { border-bottom: 0; }
.details dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); }
.details dd { margin-top: .3rem; font-size: .9875rem; }
@media (min-width: 860px) {
  .details { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .details div { border-bottom: 0; border-right: 1px solid var(--rule); }
  .details div:last-child { border-right: 0; }
}

/* Cards */
.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .9875rem; }
.card .meta { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--pine); text-transform: uppercase; margin-bottom: .6rem; }
.card .more { margin-top: auto; padding-top: 1rem; font-weight: 600; font-size: .9375rem; }
.card.feature { border-top: 4px solid var(--pine); }
.status { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 3px; background: var(--pine-soft); color: var(--pine-deep); margin-bottom: .75rem; }

/* Course list (catalogue) */
.course-row { display: grid; gap: .5rem 2rem; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.course-row:first-child { border-top: 0; }
@media (min-width: 860px) { .course-row { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr) auto; align-items: center; } }
.course-row h3 a { color: var(--ink); text-decoration: none; }
.course-row h3 a:hover { color: var(--pine); text-decoration: underline; }
.course-row .owner { color: var(--muted); margin-top: .35rem; }
.course-row .when { font-size: .9375rem; }

/* Results */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.75rem 0; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--pine); padding: 1rem; }
.stat b { display: block; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.15; }
.stat span { display: block; font-size: .875rem; color: var(--muted); margin-top: .3rem; }
.disclaimer { margin-top: 1.25rem; padding: .85rem 1rem; background: var(--pine-soft); border-left: 3px solid var(--pine); font-size: .9375rem; }

/* Notice / callout */
.callout { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--pine); padding: 1.25rem 1.4rem; margin-top: 1.5rem; }
.callout.strong { background: var(--pine-soft); }

/* FAQ */
.faq { margin-top: 1.5rem; border-top: 1px solid var(--rule); max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: -.05rem; font-size: 1.35rem; color: var(--pine); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: .75rem; color: var(--ink); }

/* Forms */
.form { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1.5rem; }
.form h3 { margin-bottom: .35rem; }
.fields { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 720px) { .fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fields .full { grid-column: 1 / -1; } }
label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .35rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1px solid #cfccc4; border-radius: 4px; background: #fff; color: var(--ink); }
textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 0; }
fieldset legend { font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.radio { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; font-size: 1rem; margin-bottom: .5rem; }
.radio input { width: auto; margin-top: .35rem; }
.hp { position: absolute; left: -9999px; }
.form .fine { font-size: .8125rem; color: var(--muted); margin-top: .85rem; }

/* Video slot (hidden until a video exists) */
.video-slot[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: #d8d7d2; padding: 3.25rem 0 2.5rem; font-size: .9375rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #a9a8a2; margin-bottom: .75rem; font-weight: 700; }
.site-footer .legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid #3a3a37; font-size: .8125rem; color: #a9a8a2; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .4rem; }

/* Mobile nav */
@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem 1.25rem; gap: .9rem; }
  .nav.open { display: flex; }
  .site-header .wrap { position: relative; }
}

/* Print (course sheet) */
@media print {
  .site-header, .site-footer, .btn-row, .nav-toggle, form, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding: 1rem 0; }
}

/* Timeline: learn / apply / prove (added 2026-09-29) */
.timeline { list-style: none; position: relative; margin-top: .5rem; }
.timeline li { position: relative; padding: 0 0 1.6rem 2.2rem; border-left: 2px solid var(--pine); margin-left: .55rem; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -.6rem; top: .15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #fff; border: 3px solid var(--pine); }
.timeline .tl-when { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); }
.timeline strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-top: .15rem; }
.timeline p { margin-top: .35rem; color: var(--muted); }

/* Roles: expert / trainee / teammate */
.roles { display: grid; gap: .75rem; margin-top: 1rem; }
.roles div { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--pine); padding: .9rem 1.1rem; }
.roles dt { font-weight: 700; color: var(--pine-deep); }
.roles dd { margin-top: .2rem; color: var(--ink); }

/* Home story */
.story .photo { margin-top: 1.75rem; }
.story .photo img { width: 100%; max-width: 380px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-top: 4px solid var(--pine); }
.story .aha { background: var(--pine-soft); border-left: 3px solid var(--pine); padding: .9rem 1.1rem; }
@media (max-width: 859px) { .story .photo img { max-width: 100%; aspect-ratio: 4 / 3; object-position: center 25%; } }
.story .photo-mobile { display: none; }
@media (max-width: 859px) { .story .photo-desk { display: none; } .story .photo-mobile { display: block; } }

/* 2027 schedule blocks, industries, About photo */
.block-head { max-width: none; font-size: 1.15rem; color: var(--pine); margin: 2.25rem 0 0; padding-bottom: .5rem; border-bottom: 2px solid var(--pine); }
.block-head:first-child { margin-top: 0; }
.block-head + .course-row { border-top: 0; }
ul.ticks.industries { margin-top: .5rem; }
ul.ticks.industries li { margin-bottom: .35rem; }
.photo-about { margin-top: 1.75rem; }
.photo-about img { width: 100%; max-width: 380px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-top: 4px solid var(--pine); }
@media (max-width: 859px) { .photo-about img { max-width: 100%; aspect-ratio: 4 / 3; object-position: center 25%; } }
table.dates { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .975rem; }
table.dates th, table.dates td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.dates th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pine); }

/* Course colour themes: Applied AI Competency is blue; everything else stays Cornerstone green. */
.theme-ai { --pine: #1d4e89; --pine-deep: #143a68; --pine-soft: #e4edf8; }
.section.themed { border-top: 4px solid var(--pine); }
.section.theme-ai.themed { background: linear-gradient(180deg, #f1f5fb 0%, var(--paper) 100%); }
.section.theme-sb.themed { background: var(--panel); }
.section.theme-sb.themed.sb-story { background: var(--paper); border-top: 0; }
main.theme-ai .page-hero { background: #eaf1f9; border-bottom: 4px solid var(--pine); }
main.theme-ai .section.dark, main.theme-sb .section.dark { background: var(--pine-deep); }
.course-row.theme-ai { border-left: 4px solid var(--pine); padding-left: 1rem; }
.course-row.theme-ai { background: #f3f7fc; }
