@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/*
  Optional local brand fonts:
  - Put Architype Ingenieur and Gellatio webfont files in app/static/fonts/.
  - Update the file names below to match your licensed font files.
  Do not commit/share proprietary font files unless your license allows it.
*/
@font-face {
  font-family: 'Architype Ingenieur';
  src: url('/static/fonts/architype-ingenieur.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Gellatio';
  src: url('/static/fonts/gellatio.woff2') format('woff2');
  font-display: swap;
}

:root {
  --gv-primary: #2a4d3a;
  --gv-accent: #0DE970;
  --gv-hover: #30975E;
  --gv-ink: #173326;
  --gv-heading: #13271d;
  --gv-muted: #5e7468;
  --gv-bg: #f7fbf8;
  --gv-soft: #edf7f0;
  --gv-card: #ffffff;
  --gv-border: #dbe8df;
  --gv-shadow: 0 18px 45px rgba(42, 77, 58, .10);
  --gv-font-body: 'Montserrat', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gv-font-heading: 'Architype Ingenieur', 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --gv-font-accent: 'Gellatio', 'Montserrat', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--gv-font-body);
  color: var(--gv-ink);
  background: var(--gv-bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gv-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--gv-primary); }
.logo img { height: 46px; width: auto; object-fit: contain; }
.nav { display: flex; gap: 30px; align-items: center; font-weight: 700; color: var(--gv-primary); font-size: 14px; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 2px; height: 2px; width: 0; background: var(--gv-accent); transition: width .2s ease; }
.nav a:hover { color: var(--gv-hover); }
.nav a:hover::after { width: 100%; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--gv-accent);
  color: var(--gv-primary);
  font-weight: 900;
  border: 2px solid var(--gv-accent);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 22px rgba(13, 233, 112, .22);
}
.button:hover { transform: translateY(-1px); background: var(--gv-hover); border-color: var(--gv-hover); color: white; box-shadow: 0 14px 26px rgba(48, 151, 94, .22); }
.button.secondary { background: white; color: var(--gv-primary); border-color: rgba(42, 77, 58, .22); box-shadow: none; }
.button.secondary:hover { background: var(--gv-primary); border-color: var(--gv-primary); color: white; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 16%, rgba(13, 233, 112, .17), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(48, 151, 94, .20), transparent 34%),
    linear-gradient(135deg, #1f3d2e 0%, #2a4d3a 58%, #346346 100%);
  color: white;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(120deg, rgba(255,255,255,.15) 0 1px, transparent 1px 18px);
  pointer-events: none;
}
.hero .container { position: relative; padding: 96px 0 86px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 {
  font-family: var(--gv-font-heading);
  font-size: clamp(44px, 7vw, 88px);
  line-height: .98;
  margin: 0 0 22px;
  letter-spacing: -0.045em;
  font-weight: 900;
}
.hero p { font-size: 20px; max-width: 680px; color: rgba(255,255,255,.88); font-weight: 500; }
.hero-card { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.25); border-radius: 30px; padding: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.hero-card video, .hero-card img { width: 100%; border-radius: 22px; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

.section { padding: 82px 0; }
.section:nth-of-type(even) { background: #ffffff; }
.section-title {
  font-family: var(--gv-font-heading);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.035em;
  color: var(--gv-heading);
  font-weight: 900;
}
.section-lead { color: var(--gv-muted); font-size: 18px; max-width: 790px; font-weight: 500; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--gv-card);
  border: 1px solid var(--gv-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--gv-shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(13, 233, 112, .50); box-shadow: 0 22px 55px rgba(42, 77, 58, .14); }
.card h3 { margin: 0 0 10px; font-family: var(--gv-font-heading); font-size: 22px; line-height: 1.18; color: var(--gv-heading); font-weight: 900; }
.card p { margin: 0; color: var(--gv-muted); font-weight: 500; }
.card-icon { height: 48px; width: 48px; object-fit: contain; margin-bottom: 18px; }
.media-card img, .media-card video { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; margin-bottom: 18px; background: var(--gv-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { background: rgba(13, 233, 112, .14); color: var(--gv-primary); border: 1px solid rgba(13, 233, 112, .22); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 800; }

.page-hero { background: linear-gradient(135deg, #ffffff, var(--gv-soft)); border-bottom: 1px solid var(--gv-border); }
.page-hero .container { padding: 68px 0 46px; }
.page-hero h1 { font-family: var(--gv-font-heading); font-size: clamp(38px, 5vw, 66px); margin: 0; letter-spacing: -0.04em; color: var(--gv-heading); }
.prose { background: white; border: 1px solid var(--gv-border); border-radius: 24px; padding: 34px; box-shadow: var(--gv-shadow); }
.prose h1, .prose h2, .prose h3 { font-family: var(--gv-font-heading); line-height: 1.2; color: var(--gv-heading); }
.form { display: grid; gap: 14px; }
.input, .textarea { width: 100%; border: 1px solid #c9dbcf; border-radius: 14px; padding: 13px 14px; font: inherit; background: white; }
.input:focus, .textarea:focus { outline: 3px solid rgba(13, 233, 112, .22); border-color: var(--gv-hover); }
.textarea { min-height: 150px; }
.notice { background: #e6fbef; color: var(--gv-primary); border: 1px solid rgba(13, 233, 112, .35); padding: 16px; border-radius: 16px; font-weight: 700; }
.footer { background: var(--gv-primary); color: #e9fff2; padding: 54px 0; margin-top: 60px; }
.footer a { color: white; }
.footer a:hover { color: var(--gv-accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #1f3d2e, var(--gv-primary)); }
.login-card { width: min(430px, calc(100% - 32px)); background: white; border-radius: 24px; padding: 34px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.error { color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca; padding: 12px; border-radius: 12px; }

@media (max-width: 860px) {
  .hero .container, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero .container { padding: 68px 0; }
  .hero-card { padding: 14px; }
}


/* Original-like projects page: wide stacked rows from https://gridvue.ca/projects/ */
.projects-original {
  background: #f7fbf8;
  padding-top: 52px;
}
.project-feature {
  display: grid;
  grid-template-columns: minmax(280px, 510px) 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--gv-border);
  border-radius: 5px;
  padding: clamp(26px, 4.4vw, 64px);
  margin: 0 0 clamp(34px, 4vw, 58px);
  box-shadow: 0 16px 44px rgba(42, 77, 58, .08);
}
.project-feature-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.project-feature-media img,
.project-feature-media video {
  width: min(510px, 100%);
  aspect-ratio: 1.3 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.project-feature-copy h4 {
  margin: 0 0 18px;
  font-family: var(--gv-font-heading);
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gv-heading);
  font-weight: 900;
}
.project-feature-copy p {
  margin: 0;
  color: var(--gv-muted);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 500;
}

@media (max-width: 860px) {
  .project-feature {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* PDF-faithful projects page from uploaded Projects – Grid vue.pdf */

.projects-live-header {
  background: #f6f8fb;
  min-height: 210px;
  padding: 34px 0 28px;
  color: #2a4d3a;
}
.projects-live-nav {
  width: min(1180px, calc(100% - 80px));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.projects-live-wordmark img {
  width: 126px;
  height: auto;
  display: block;
}
.projects-live-menu {
  display: flex;
  gap: 36px;
  align-items: center;
  padding-top: 10px;
  font-family: var(--gv-font-body);
  font-size: 13px;
  font-weight: 800;
  color: #252e3b;
}
.projects-live-menu a:hover,
.projects-live-menu a[aria-current="page"] {
  color: #30975E;
}
.projects-live-hero {
  width: min(1180px, calc(100% - 80px));
  margin-top: 12px;
}
.projects-live-section {
  display: block;
  width: 100%;
  max-width: 1180px;
  height: auto;
}
.projects-live-main {
  background: #ffffff;
  padding: 154px 0 72px;
}
.projects-live-list {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}
.projects-live-item {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  column-gap: 56px;
  align-items: center;
  margin-bottom: 118px;
}
.projects-live-media img,
.projects-live-media video {
  width: 100%;
  height: 274px;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.projects-live-media img[src$=".svg"] {
  object-fit: contain;
}
.projects-live-copy h2 {
  margin: 0 0 9px;
  color: #283142;
  font-family: var(--gv-font-heading);
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.projects-live-copy p {
  margin: 0;
  color: #2f4d41;
  font-family: var(--gv-font-body);
  font-size: 13.5px;
  line-height: 1.66;
  font-weight: 500;
}
.projects-live-footer {
  background: #ffffff;
  color: #2a4d3a;
  padding: 126px 0 60px;
  font-family: var(--gv-font-body);
}
.projects-live-footer-inner {
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.1fr 1fr 1.1fr 1fr 1fr;
  gap: 54px;
  align-items: start;
}
.projects-live-footer-brand img {
  width: 112px;
  height: auto;
  display: block;
  margin-bottom: 6px;
}
.projects-live-footer p,
.projects-live-footer a {
  display: block;
  color: #2a4d3a;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 500;
}
.projects-live-footer h3 {
  margin: 0 0 4px;
  color: #2a4d3a;
  font-size: 12px;
  letter-spacing: .04em;
  font-weight: 900;
}
.projects-live-footer a:hover { color: #30975E; }
.projects-live-socials {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  font-size: 12px;
}
.projects-live-github {
  display: block;
  margin-top: 5px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0c0f12;
  color: #0c0f12;
}
.projects-live-copyright {
  width: min(980px, calc(100% - 64px));
  margin: 54px auto 0;
  text-align: center;
  color: #2a4d3a;
  font-size: 11px;
}

@media (max-width: 980px) {
  .projects-live-item { grid-template-columns: 1fr; gap: 26px; margin-bottom: 72px; }
  .projects-live-media img, .projects-live-media video { height: auto; max-height: 360px; object-fit: contain; }
  .projects-live-copy h2 { font-size: 22px; }
  .projects-live-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .projects-live-header { padding-top: 24px; }
  .projects-live-nav { width: min(100% - 36px, 1180px); align-items: center; }
  .projects-live-menu { gap: 12px; font-size: 11px; flex-wrap: wrap; justify-content: flex-end; }
  .projects-live-wordmark img { width: 104px; }
  .projects-live-hero { width: min(100% - 36px, 1180px); }
  .projects-live-main { padding-top: 70px; }
  .projects-live-list { width: min(100% - 36px, 920px); }
  .projects-live-footer-inner { width: min(100% - 36px, 980px); grid-template-columns: 1fr; }
}

/* PDF-faithful Teams page from uploaded Teams – Grid vue.pdf */
.teams-live-header {
  background: #f4f6fa;
}
.teams-live-main {
  background: #f4f6fa;
  padding: 156px 0 92px;
}
.teams-live-list {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}
.teams-live-member {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  column-gap: 82px;
  align-items: center;
  margin-bottom: 150px;
}
.teams-live-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.teams-live-photo {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #ffffff;
}
.teams-live-copy h2,
.teams-live-group h2 {
  margin: 0 0 26px;
  color: #283142;
  font-family: var(--gv-font-heading);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.teams-live-copy p,
.teams-live-group p {
  margin: 0;
  color: #2f4d41;
  font-family: var(--gv-font-body);
  font-size: 14px;
  line-height: 1.72;
  font-weight: 500;
}
.teams-live-copy .teams-live-title {
  margin-bottom: 0;
}
.teams-live-socials {
  display: flex;
  gap: 28px;
  margin-top: 14px;
  align-items: center;
}
.teams-live-socials a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #2a4d3a;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}
.teams-live-socials a:hover { background: #30975E; color: #ffffff; }
.teams-live-group {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  column-gap: 82px;
  align-items: start;
  margin-bottom: 118px;
}
.teams-live-group h2 {
  margin-bottom: 8px;
}
.teams-live-group-list p {
  line-height: 1.65;
}
.teams-live-footer {
  margin-top: 0;
  padding-top: 116px;
}

@media (max-width: 980px) {
  .teams-live-member,
  .teams-live-group {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 86px;
  }
  .teams-live-photo-wrap { justify-content: flex-start; }
  .teams-live-photo { width: 190px; height: 190px; }
  .teams-live-main { padding-top: 80px; }
}
@media (max-width: 680px) {
  .teams-live-list { width: min(100% - 36px, 920px); }
  .teams-live-photo-wrap { justify-content: center; }
  .teams-live-copy h2,
  .teams-live-group h2 { font-size: 22px; }
}

/* PDF/WordPress-faithful Resources page from https://gridvue.ca/resources/
   v8: constrain media and force WordPress-like centered alignment.
   Source WordPress content uses a cover video, centered headings, a 163px Grid VuE logo,
   and EDI rows with fixed image widths: 168, 208, 174, and 154px. */
.resources-live-header,
.resources-live-main,
.resources-live-footer {
  width: 100%;
  clear: both;
}
.resources-live-header {
  background: #f4f6fa;
}
.resources-live-main {
  background: #ffffff;
  color: #2a4d3a;
  padding: 0 0 92px;
  overflow: hidden;
}
.resources-live-video-wrap {
  width: min(1150px, calc(100% - 80px));
  margin: 0 auto 38px;
  min-height: 0;
  height: clamp(320px, 36vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}
.resources-live-video {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  opacity: .72;
}
.resources-live-intro {
  width: min(920px, calc(100% - 48px));
  margin: 26px auto 100px;
  text-align: center;
}
.resources-live-intro h1 {
  margin: 0 0 15px;
  color: #283142;
  font-family: var(--gv-font-heading);
  font-size: clamp(25px, 2.55vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.resources-live-intro h2 {
  margin: 0 0 42px;
  color: #2a4d3a;
  font-family: var(--gv-font-heading);
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.resources-live-intro img {
  width: 163px !important;
  max-width: 163px !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}
.resources-live-list {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}
.resources-live-item {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  column-gap: 110px;
  align-items: center;
  margin-bottom: 86px;
}
.resources-live-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 210px;
}
.resources-live-image-wrap img {
  width: 168px !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 0;
  display: block;
  object-fit: contain;
}
.resources-live-item:nth-child(2) .resources-live-image-wrap img { width: 208px !important; }
.resources-live-item:nth-child(3) .resources-live-image-wrap img { width: 174px !important; }
.resources-live-item:nth-child(4) .resources-live-image-wrap img { width: 154px !important; }
.resources-live-copy h3 {
  margin: 0 0 18px;
  color: #283142;
  font-family: var(--gv-font-heading);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.resources-live-copy p {
  margin: 0;
  color: #2f4d41;
  font-family: var(--gv-font-body);
  font-size: 15px;
  line-height: 1.74;
  font-weight: 500;
}
.resources-live-footer {
  margin-top: 0;
  padding-top: 116px;
}

@media (min-width: 1400px) {
  .resources-live-video-wrap { height: 500px; }
}
@media (max-width: 980px) {
  .resources-live-video-wrap {
    width: min(100% - 36px, 920px);
    height: 280px;
  }
  .resources-live-item {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 76px;
    text-align: left;
  }
  .resources-live-image-wrap {
    justify-content: flex-start;
    min-height: 0;
  }
  .resources-live-intro { margin: 44px auto 72px; }
}
@media (max-width: 680px) {
  .resources-live-list,
  .resources-live-intro { width: min(100% - 36px, 920px); }
  .resources-live-image-wrap { justify-content: center; }
  .resources-live-copy h3 { font-size: 22px; }
}


/* PDF-faithful home page from uploaded Grid vue.pdf.
   The original home page uses a full-width video/image hero with the Grid Vue with-slogan asset centered over it,
   then a 3x2 white card grid and the research/prototype sections. */
.home-live-hero {
  position: relative;
  min-height: 455px;
  background: #dfe9e2;
  overflow: hidden;
  color: #2a4d3a;
}
.home-live-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(.95) contrast(1.02);
}
.home-live-tint {
  position: absolute;
  inset: 0;
  background: rgba(234, 242, 237, .50);
}
.home-live-nav {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 80px));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 30px;
}
.home-live-wordmark img {
  width: 124px;
  height: auto;
  display: block;
}
.home-live-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 8px;
  color: #17283c;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}
.home-live-menu a:hover,
.home-live-menu a[aria-current="page"] { color: #30975E; }
.home-live-brand {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 100px));
  margin: 58px auto 0;
  display: flex;
  justify-content: center;
}
.home-live-brand img {
  width: 100%;
  height: auto;
  display: block;
}
.home-live-focus {
  background: #ffffff;
  padding: 88px 0 118px;
}
.home-live-focus-grid {
  width: min(980px, calc(100% - 54px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 26px;
}
.home-live-focus-card {
  min-height: 282px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 46px 36px 34px;
  box-shadow: 0 17px 45px rgba(42, 77, 58, .08);
}
.home-live-focus-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 22px;
}
.home-live-focus-card h2 {
  margin: 0 0 6px;
  font-family: var(--gv-font-heading);
  font-size: 15.5px;
  line-height: 1.12;
  font-weight: 900;
  color: #223040;
}
.home-live-focus-card p {
  margin: 0;
  color: #2f4d41;
  font-size: 14px;
  line-height: 1.62;
  font-weight: 500;
}
.home-live-showcase {
  background: #f4f6fa;
  padding: 74px 0 80px;
}
.home-live-section-mark {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto 28px;
}
.home-live-section-mark img {
  width: 100%;
  height: auto;
  display: block;
}
.home-live-product-grid {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 44px;
}
.home-live-product {
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(42, 77, 58, .08);
  color: #2a4d3a;
  padding: 0 0 20px;
}
.home-live-product h2 {
  margin: 0;
  padding: 0 0 8px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}
.home-live-product video,
.home-live-product img {
  width: 100%;
  height: 255px;
  display: block;
  object-fit: cover;
  background: #111;
}
.home-live-product ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  color: #2f4d41;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}
.home-live-product li::before { content: '☑ '; color: #2a4d3a; }
.home-live-covue {
  background: #f4f6fa;
  padding: 58px 0 44px;
}
.home-live-covue-card {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 78px 80px;
}
.home-live-covue-art img {
  width: 310px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.home-live-covue-copy h2 {
  margin: 0 0 14px;
  color: #283142;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.02em;
}
.home-live-covue-copy p {
  margin: 0 0 28px;
  color: #2f4d41;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 500;
}
.home-live-covue-copy a {
  display: inline-flex;
  padding: 10px 28px;
  border: 1px solid #6f37ff;
  color: #2f204c;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}
.home-live-cta {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  padding: 54px 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  align-items: center;
  background: #ffffff;
  color: #2a4d3a;
}
.home-live-cta p {
  margin: 0;
  color: #2f4d41;
  font-size: 15px;
  line-height: 1.7;
}
.home-live-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a4d3a;
  color: #ffffff;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
}
.home-live-cta-button:hover { background: #30975E; }
.home-live-footer { margin-top: 0; background: #ffffff; }

@media (max-width: 900px) {
  .home-live-hero { min-height: 380px; }
  .home-live-nav { width: min(100% - 36px, 1180px); align-items: center; }
  .home-live-menu { gap: 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 11px; }
  .home-live-wordmark img { width: 108px; }
  .home-live-brand { width: min(600px, calc(100% - 48px)); margin-top: 55px; }
  .home-live-focus-grid,
  .home-live-product-grid,
  .home-live-covue-card,
  .home-live-cta { grid-template-columns: 1fr; }
  .home-live-covue-card { padding: 46px 34px; }
  .home-live-cta { padding: 34px 28px; }
}
@media (max-width: 560px) {
  .home-live-hero { min-height: 320px; }
  .home-live-brand { margin-top: 48px; }
  .home-live-focus-card { min-height: auto; }
  .home-live-product video { height: 220px; }
}

/* Admin CMS fallback UI: FastAPI/Jinja implementation, avoids NiceGUI route conflicts. */
.cms-body { background: #f6faf7; color: var(--gv-ink); min-height: 100vh; }
.cms-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
  padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--gv-border);
  box-shadow: 0 8px 24px rgba(42,77,58,.06);
}
.cms-brand { font-size: 22px; font-weight: 900; color: var(--gv-primary); }
.cms-nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 800; font-size: 14px; }
.cms-nav a:hover { color: var(--gv-hover); }
.cms-link-button { border: 0; background: transparent; color: var(--gv-primary); font-weight: 900; cursor: pointer; font: inherit; }
.cms-main { width: min(1180px, calc(100% - 40px)); margin: 36px auto 80px; }
.cms-panel { background: #fff; border: 1px solid var(--gv-border); border-radius: 24px; padding: clamp(24px, 4vw, 42px); box-shadow: var(--gv-shadow); }
.cms-panel h1 { margin: 0 0 8px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.cms-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.cms-card { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--gv-border); border-radius: 18px; background: var(--gv-soft); }
.cms-card strong { font-size: 22px; }
.cms-card span { color: var(--gv-muted); }
.cms-list { display: grid; gap: 22px; margin-top: 28px; }
.cms-edit-card { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--gv-border); border-radius: 18px; background: #fbfefc; }
.cms-edit-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--gv-border); padding-bottom: 12px; }
.cms-edit-head h2 { margin: 0; font-size: 22px; line-height: 1.15; }
.cms-edit-card label { display: grid; gap: 6px; font-weight: 800; color: var(--gv-primary); }
.cms-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cms-large-text { min-height: 180px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
@media (max-width: 900px) { .cms-header, .cms-edit-head { align-items: flex-start; flex-direction: column; } .cms-card-grid, .cms-two { grid-template-columns: 1fr; } }

/* Flexible CMS v11 */
.cms-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.cms-page-head p { margin: 8px 0 0; color: var(--gv-muted); max-width: 760px; }
.cms-table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--gv-border); border-radius: 18px; background: #fff; }
.cms-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cms-table th, .cms-table td { padding: 14px 16px; border-bottom: 1px solid var(--gv-border); vertical-align: top; text-align: left; }
.cms-table th { background: var(--gv-soft); color: var(--gv-primary); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.cms-table td code { white-space: nowrap; font-size: 12px; color: var(--gv-primary); }
.cms-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 280px; }
.button-small { padding: 9px 12px; font-size: 12px; border-radius: 12px; }
.button-muted { background: #fff; color: var(--gv-primary); border: 1px solid var(--gv-border); box-shadow: none; }
.button-danger { background: #fff0f0; color: #8a1f1f; border: 1px solid #f2b8b8; box-shadow: none; }
.cms-upload { margin: 22px 0; padding: 18px; border: 1px dashed var(--gv-border); border-radius: 18px; background: #fbfefc; display: grid; gap: 12px; }
.cms-upload h2 { margin: 0; font-size: 22px; }
.cms-three { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.cms-three label, .cms-field { display: grid; gap: 7px; font-weight: 800; color: var(--gv-primary); }
.cms-field small { color: var(--gv-muted); font-weight: 500; }
.cms-edit-form { display: grid; gap: 22px; }
.cms-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cms-field-wide { grid-column: 1 / -1; }
.cms-json-text { min-height: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.cms-advanced { border: 1px solid var(--gv-border); border-radius: 18px; padding: 16px; background: #fbfefc; }
.cms-advanced summary { cursor: pointer; font-weight: 900; color: var(--gv-primary); }
.cms-raw-json { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; margin-top: 12px; }
.cms-submit-row { display: flex; gap: 12px; align-items: center; }
.notice-error { border-color: #f2b8b8; background: #fff0f0; color: #8a1f1f; }
.cms-help-box { margin-top: 28px; padding: 20px; border-radius: 18px; background: var(--gv-soft); border: 1px solid var(--gv-border); }
.cms-help-box h2 { margin: 0 0 8px; }
@media (max-width: 900px) { .cms-page-head, .cms-actions, .cms-submit-row { align-items: flex-start; flex-direction: column; } .cms-form-grid, .cms-three { grid-template-columns: 1fr; } }


/* Admin-generated editable page body helpers */
.editable-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:28px 0 56px;}
.editable-card{background:#fff;border-radius:2px;box-shadow:0 10px 28px rgba(0,0,0,.06);padding:28px;text-align:center;}
.editable-card img{max-width:100%;height:auto;border-radius:0;}
.editable-icon{width:56px!important;height:56px!important;object-fit:contain;margin-bottom:16px;}
.editable-media-row{display:grid;grid-template-columns:minmax(220px,42%) minmax(280px,1fr);gap:48px;align-items:center;margin:64px 0;}
.editable-media-row img{width:100%;height:auto;object-fit:cover;}
.editable-team-row img{width:210px;height:210px;border-radius:50%;object-fit:cover;justify-self:center;}
@media(max-width:800px){.editable-grid{grid-template-columns:1fr}.editable-media-row{grid-template-columns:1fr;gap:22px}}

/* Admin RBAC session details */
.cms-session-chip{display:grid;gap:2px;margin-left:auto;margin-right:10px;color:var(--gv-primary);font-size:12px;line-height:1.2;text-align:right;}
.cms-session-chip span{font-weight:800;}
.cms-session-chip small{color:var(--gv-muted);font-weight:600;}
@media(max-width:900px){.cms-session-chip{text-align:left;margin-left:0;}}
