/*
Theme Name: GlueOS Academy
Theme URI: http://4.fendicro.com/
Author: Codex
Description: Learning and knowledge-base theme for AI-enabled molecular glue drug discovery education, templates, and enterprise training.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fendi-gluefoundry
*/

:root {
  --ink: #111417;
  --ink-2: #22282d;
  --paper: #f5f6f1;
  --white: #ffffff;
  --mist: #e8ede7;
  --line: rgba(17, 20, 23, .16);
  --line-dark: rgba(245, 246, 241, .18);
  --muted: #58635e;
  --muted-dark: #c2cbc4;
  --green: #24745f;
  --blue: #285d7b;
  --amber: #d99536;
  --amber-soft: #ffe0ad;
  --radius: 8px;
  --shadow: 0 22px 66px rgba(17, 20, 23, .13);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 18px; top: 18px; width: auto; height: auto; z-index: 9999; padding: 9px 12px; background: var(--ink); color: #fff; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 246, 241, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 292px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; border-radius: 8px; background: var(--ink); position: relative; box-shadow: 0 12px 30px rgba(17, 20, 23, .18); }
.brand-mark:before { content: ""; position: absolute; inset: 9px auto auto 9px; width: 10px; height: 24px; background: var(--amber); border-radius: 999px; }
.brand-mark:after { content: ""; position: absolute; right: 8px; top: 12px; width: 16px; height: 16px; border: 3px solid var(--paper); border-radius: 50%; }
.site-title { margin: 0; font-size: 17px; line-height: 1.15; font-weight: 820; letter-spacing: 0; }
.site-tagline { margin: 2px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 9px 12px; border-radius: 999px; white-space: nowrap; }
.primary-navigation { margin-left: auto; min-width: 0; }
.primary-navigation ul { list-style: none; padding: 0; margin: 0; }
.primary-navigation .menu { display: flex; align-items: center; gap: 3px; }
.primary-navigation .menu > li { position: relative; }
.primary-navigation a { display: block; padding: 9px 10px; border-radius: 999px; color: #2b3035; font-size: 13px; font-weight: 760; line-height: 1.2; white-space: nowrap; }
.primary-navigation .menu-item-has-children > a { padding-right: 26px; position: relative; }
.primary-navigation .menu-item-has-children > a:after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-65%) rotate(45deg); opacity: .74; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a, .primary-navigation .current-menu-ancestor > a { background: var(--ink); color: var(--white); }
.primary-navigation .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  padding: 9px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(17, 20, 23, .16);
  z-index: 1200;
}
.primary-navigation .sub-menu:before { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 11px; }
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.primary-navigation .sub-menu a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  line-height: 1.28;
  white-space: normal;
}
.primary-navigation .sub-menu a:hover, .primary-navigation .sub-menu .current-menu-item > a { background: var(--mist); color: var(--green); }
.header-cta { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 42px; padding: 10px 15px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 840; box-shadow: 0 14px 30px rgba(217, 149, 54, .22); }
.header-cta:hover { background: var(--green); color: var(--white); }

.site-main { overflow: hidden; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--ink-2); background: rgba(255, 255, 255, .68); font-size: 12px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.section { padding: 76px 0; }
.section.dark { background: var(--ink); color: var(--white); }
.section.alt { background: var(--white); }
.section-head { max-width: 820px; margin-bottom: 34px; }
.section-head h2 { margin: 14px 0 10px; font-size: clamp(31px, 4.8vw, 56px); line-height: 1.04; letter-spacing: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
.dark .section-head p { color: var(--muted-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border-radius: 999px; font-weight: 840; border: 1px solid transparent; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--green); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: var(--white); }
.dark .btn-primary { background: var(--amber); color: var(--ink); }
.dark .btn-secondary { color: var(--white); border-color: var(--line-dark); }

.hero { padding: 78px 0 66px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .84fr); gap: 34px; align-items: stretch; }
.hero-copy { padding: 22px 0; }
.hero h1 { margin: 16px 0 18px; font-size: clamp(44px, 6.2vw, 76px); line-height: .99; letter-spacing: 0; max-width: 860px; }
.hero-lead { max-width: 760px; margin: 0 0 26px; color: #3f4743; font-size: 20px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; max-width: 800px; }
.proof-tile { border: 1px solid var(--line); background: rgba(255, 255, 255, .78); border-radius: 8px; padding: 13px; }
.proof-tile strong { display: block; font-size: 16px; }
.proof-tile span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.os-board { background: var(--ink); color: var(--white); border-radius: 8px; padding: 22px; box-shadow: var(--shadow); min-height: 550px; display: flex; flex-direction: column; gap: 13px; }
.board-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.board-title { font-weight: 840; }
.board-meta { color: var(--muted-dark); font-size: 13px; }
.os-stage { display: grid; grid-template-columns: 52px 1fr; gap: 8px 14px; align-items: start; padding: 15px; border: 1px solid var(--line-dark); border-radius: 8px; background: rgba(255, 255, 255, .045); }
.os-stage b { grid-row: span 2; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber); color: var(--ink); }
.os-stage span { font-weight: 840; line-height: 1.24; }
.os-stage p { margin: 0; color: var(--muted-dark); font-size: 13px; line-height: 1.45; }

.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; background: var(--ink); color: var(--white); }
.manifesto-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: 28px; align-items: center; }
.manifesto h2 { margin: 12px 0 0; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; }
.manifesto p { margin: 0 0 14px; color: var(--muted-dark); font-size: 18px; }
.text-link { color: var(--amber-soft); font-weight: 840; border-bottom: 1px solid rgba(255, 224, 173, .48); }

.domain-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.domain-map a { min-height: 112px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.domain-map a:nth-child(3n+1) { background: #eef4ef; }
.domain-map a:nth-child(3n+2) { background: #eef3f5; }
.domain-map a:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(17, 20, 23, .11); }
.domain-map b { color: var(--green); font-size: 12px; letter-spacing: .08em; }
.domain-map span { font-size: 18px; font-weight: 820; line-height: 1.22; }

.learning-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.learning-rail article { padding: 24px; border-right: 1px solid var(--line); min-height: 300px; }
.learning-rail article:last-child { border-right: 0; }
.learning-rail b { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--white); margin-bottom: 16px; }
.learning-rail h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.12; }
.learning-rail p { margin: 0; color: var(--muted); }

.model-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line-dark); border-radius: 8px; overflow: hidden; }
.model-step { padding: 22px; border-right: 1px solid var(--line-dark); background: rgba(255,255,255,.03); }
.model-step:last-child { border-right: 0; }
.model-step b { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber); color: var(--ink); margin-bottom: 12px; }
.model-step h3 { margin: 0 0 8px; font-size: 19px; }
.model-step p { margin: 0; color: var(--muted-dark); font-size: 14px; }
.method-link { margin-top: 24px; }

.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.offer-card, .memo-card, .page-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.offer-card { min-height: 300px; display: flex; flex-direction: column; }
.offer-kicker { color: var(--blue); font-size: 12px; font-weight: 880; letter-spacing: .12em; text-transform: uppercase; }
.offer-card h3, .memo-card h3 { margin: 10px 0 10px; font-size: 24px; line-height: 1.16; }
.offer-card p, .memo-card p { margin: 0; color: var(--muted); }
.offer-card .card-link, .memo-card a { margin-top: auto; color: var(--green); font-weight: 840; }

.memo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.memo-card { display: flex; flex-direction: column; min-height: 236px; }
.memo-card .cat { width: fit-content; background: rgba(217,149,54,.15); color: #8a4f12; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 780; }

.page-hero { padding: 74px 0 42px; }
.page-hero h1 { margin: 12px 0 12px; font-size: clamp(38px, 5.6vw, 68px); line-height: 1; }
.page-hero p { max-width: 820px; margin: 0; color: var(--muted); font-size: 19px; }
.content-wrap { padding: 0 0 76px; }
.page-panel > *:first-child { margin-top: 0; }
.page-panel h2 { font-size: 30px; line-height: 1.12; margin: 30px 0 10px; }
.page-panel p, .page-panel li { color: var(--muted); }
.page-panel a { color: var(--green); font-weight: 780; border-bottom: 1px solid rgba(36, 116, 95, .25); }
.post-list { display: grid; gap: 16px; }
.post-list article { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.post-list h2 { margin: 0 0 8px; }

.site-footer { background: var(--ink); color: var(--white); }
.footer-cta { padding: 52px 0; border-bottom: 1px solid var(--line-dark); }
.footer-cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.footer-cta h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 48px); line-height: 1; }
.footer-cta p { margin: 0; color: var(--muted-dark); }
.footer-main { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 28px; padding: 42px 0; }
.footer-main h3 { margin: 0 0 12px; }
.footer-main p, .footer-main li { color: var(--muted-dark); }
.footer-main ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 18px 0; color: rgba(245,246,241,.58); font-size: 13px; }

.intake-form { display: grid; gap: 18px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 820; color: var(--ink); }
.form-field .hint { color: var(--muted); font-size: 13px; line-height: 1.4; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 12px 13px; min-height: 46px; }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-notice { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #f0f6f3; color: var(--green); font-weight: 760; }
.form-notice.error { background: #fff6ef; color: #8a3d16; }

.course-module { display: grid; gap: 34px; }
.course-module .module-code {
  display: inline-flex;
  width: fit-content;
  color: var(--green);
  font-size: 12px;
  font-weight: 880;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.course-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: stretch; }
.course-summary {
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 28px;
}
.course-summary h2 { margin: 12px 0 14px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.05; }
.course-summary p { color: var(--muted-dark); font-size: 18px; }
.course-ledger { display: grid; gap: 10px; }
.course-ledger div {
  background: #eef4ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}
.course-ledger b { display: block; margin-bottom: 4px; color: var(--ink); }
.course-ledger span { color: var(--muted); font-size: 14px; line-height: 1.48; }
.mechanism-flow, .lesson-index, .concept-table, .case-lens, .compare-band, .assignment-panel {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}
.mechanism-flow h2, .section-minihead h2, .compare-band h2, .assignment-panel h2 { margin: 8px 0 10px; }
.mechanism-flow > p { max-width: 780px; }
.flow-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.flow-steps div {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.flow-steps b {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
}
.flow-steps span { font-weight: 840; line-height: 1.25; }
.flow-steps em { color: var(--muted); font-style: normal; font-size: 14px; line-height: 1.45; }
.lesson-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.lesson-grid article {
  min-height: 220px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.lesson-grid b { color: var(--blue); font-size: 12px; letter-spacing: .1em; }
.lesson-grid h3 { margin: 12px 0 8px; font-size: 21px; line-height: 1.16; }
.lesson-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.concept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.concept-grid div, .case-list div {
  background: #f7f8f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.concept-grid b, .case-list b { display: block; color: var(--ink); }
.concept-grid span, .case-list span { display: block; color: var(--muted); margin-top: 6px; font-size: 14px; line-height: 1.48; }
.compare-band {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 20px;
  align-items: start;
  background: #eef3f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.compare-band h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.06; }
.compare-grid { display: grid; gap: 10px; }
.compare-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.compare-grid b { display: block; margin-bottom: 5px; }
.compare-grid p { margin: 0; color: var(--muted); }
.case-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.assignment-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 26px;
}
.assignment-panel p, .assignment-panel li { color: var(--muted-dark); }
.assignment-panel ul { margin: 0; padding-left: 20px; }

@media (max-width: 1080px) {
  .hero-grid, .manifesto-grid { grid-template-columns: 1fr; }
  .offer-grid, .domain-map, .learning-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-rail article:nth-child(2) { border-right: 0; }
  .learning-rail article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .os-board { min-height: auto; }
  .model-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .model-step:nth-child(2) { border-right: 0; }
  .model-step:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .header-cta { display: none; }
  .course-intro-grid, .compare-band, .assignment-panel { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-branding { min-width: 0; flex: 1 1 auto; }
  .primary-navigation { display: none; position: static; flex: 0 0 100%; width: 100%; margin-left: 0; padding: 0 0 14px; background: transparent; border-top: 1px solid var(--line); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation .menu { display: grid; gap: 4px; padding-top: 10px; }
  .primary-navigation a { padding: 12px; border-radius: 8px; white-space: normal; }
  .primary-navigation .menu-item-has-children > a { padding-right: 12px; }
  .primary-navigation .menu-item-has-children > a:after { display: none; }
  .primary-navigation .sub-menu {
    display: grid;
    position: static;
    width: auto;
    max-width: none;
    margin: 4px 0 6px 14px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: none;
    background: rgba(255, 255, 255, .72);
    grid-template-columns: 1fr;
  }
  .primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { grid-template-columns: 1fr; }
  .primary-navigation .sub-menu:before { display: none; }
  .primary-navigation .sub-menu a { min-height: 38px; padding: 9px 10px; font-size: 13px; }
  .header-inner { min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
}
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .site-title { font-size: 14px; }
  .site-tagline { display: none; }
  .brand-mark { width: 36px; height: 36px; border-radius: 8px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .hero-proof, .offer-grid, .memo-grid, .domain-map, .learning-rail, .form-grid, .footer-cta-inner, .footer-main { grid-template-columns: 1fr; }
  .flow-steps, .lesson-grid, .concept-grid, .case-list { grid-template-columns: 1fr; }
  .flow-steps div, .lesson-grid article { min-height: auto; }
  .course-summary, .compare-band, .assignment-panel { padding: 20px; }
  .learning-rail article { border-right: 0; border-bottom: 1px solid var(--line); }
  .learning-rail article:last-child { border-bottom: 0; }
  .os-stage { grid-template-columns: 1fr; }
  .model-strip { grid-template-columns: 1fr; }
  .model-step { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .model-step:last-child { border-bottom: 0; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 34px; }
}
