/* ZMT Cangjingge navigation 1.9.10 — desktop navigation and mobile floating menus. */
body.zmt-cgn-enabled .header .navbar-header,
body.zmt-cgn-enabled .header .container-header .navbar-collapse > .navbar-form.navbar-right,
body.zmt-cgn-enabled .header .show-nav-but,
body.zmt-cgn-enabled > .mobile-header,
body.zmt-cgn-enabled #zmt-mobile-menu-open,
body.zmt-cgn-enabled #zmt-mobile-menu { display: none !important; }
body.zmt-cgn-enabled .header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10042 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
body.zmt-cgn-enabled.nav-fixed { padding-top: 0 !important; }
body.admin-bar.zmt-cgn-enabled .header { top: 32px !important; }
body.zmt-cgn-enabled:not(.modal-open) .header:has(.cgn-group[open]),
body.zmt-cgn-enabled.cgn-drawer-open:not(.modal-open) .header { z-index: 100000 !important; }
body.zmt-cgn-enabled.modal-open .header { z-index: 1030 !important; }
body.zmt-cgn-enabled .header .container-header { width: 100% !important; max-width: none !important; padding: 0 !important; overflow: visible !important; }
body.zmt-cgn-enabled .header .navbar-collapse { display: block !important; float: none !important; width: 100% !important; max-width: none !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: visible !important; }
body.zmt-cgn-enabled .header .navbar-top { overflow: visible !important; }
body.zmt-cgn-enabled.zmt-member-center-page .article.page-article { padding-top: 0 !important; }
body.zmt-cgn-enabled.zmt-member-center-page .zmtmc-shell { margin-top: 12px !important; }

.cgn {
  --cgn-surface: #fffefa;
  --cgn-paper: #f8f6f1;
  --cgn-text: #272722;
  --cgn-muted: #74716a;
  --cgn-line: #e8e3d9;
  --cgn-accent: #a83528;
  --cgn-soft: #f6ebe5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  width: 100%;
  min-height: 84px;
  margin: 0;
  padding: 0 clamp(26px, 3vw, 60px) 0 22px;
  color: var(--cgn-text);
  background: var(--cgn-surface);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.cgn::before { display: none; }
.cgn *, .cgn *::before, .cgn *::after { box-sizing: border-box; }
.cgn a { text-decoration: none; }
.header .cgn .cgn-brand, .header .cgn .cgn-trigger, .header .cgn .cgn-link, .header .cgn .cgn-account-entry { color: inherit; }
.cgn button, .cgn input { font: inherit; }
.cgn a:focus-visible, .cgn button:focus-visible, .cgn summary:focus-visible, .cgn input:focus-visible { outline: 2px solid var(--cgn-accent); outline-offset: 3px; }
.cgn a:active, .cgn button:active, .cgn summary:active { transform: scale(.96); }

.cgn .cgn-brand { display: inline-flex; flex: 0 0 210px; align-items: center; width: 210px; min-height: 44px; position: relative; z-index: 3; }
.cgn .cgn-brand-image { display: block; width: 100%; height: auto; max-width: none; object-fit: contain; }
.cgn-content { display: flex; flex: 1 1 auto; align-items: center; gap: 16px; min-width: 0; }
.cgn-primary, .cgn-utilities, .cgn-actions { display: flex; align-items: center; }
.cgn-primary { flex: 0 1 auto; gap: 3px; min-width: 0; }
.cgn-utilities { flex: 0 0 auto; gap: 1px; margin-left: auto; padding-left: 14px; border-left: 1px solid var(--cgn-line); }
.cgn-actions { flex: 0 0 auto; gap: 7px; }
.cgn-group { position: static; }
.cgn summary::-webkit-details-marker { display: none; }

.cgn .cgn-trigger {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  list-style: none;
  transition: color 160ms ease, background-color 160ms ease, transform 120ms ease;
}
.cgn-task { display: block; font-size: 14px; font-weight: 600; }
.cgn-subtitle { display: block; margin-top: 3px; color: var(--cgn-muted); font-size: 10px; font-weight: 400; letter-spacing: .06em; transition: color 160ms ease; }
.cgn-chevron { display: block; flex: 0 0 9px; width: 9px; height: 9px; margin: 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 0 0 1px 0; opacity: 1; transform: translateY(-2px) rotate(45deg); transition: transform 220ms cubic-bezier(.2,0,0,1); }
.header .cgn-group[open] > .cgn-trigger,
.header .cgn .cgn-trigger:hover,
.header .cgn .is-current > .cgn-trigger,
.header .cgn .cgn-trigger[aria-current] { color: var(--cgn-accent); background: var(--cgn-soft); }
@media (hover: hover) and (pointer: fine) {
  .cgn-group:not([open]) > .cgn-trigger:hover .cgn-chevron { transform: translateY(0) rotate(45deg); }
}
.cgn-group:not([open]) > .cgn-trigger:focus-visible .cgn-chevron { transform: translateY(0) rotate(45deg); }
.cgn-group[open] > .cgn-trigger .cgn-chevron { transform: translateY(2px) rotate(225deg); }

/* Background engravings leave the centered live text as the focal point. */
.cgn-primary { flex: 0 0 auto; gap: 8px; }
.cgn-primary > .cgn-solutions { --entry-ink: #876a36; --entry-paper: #f4efdf; --entry-icon: #eee4c8; }
.cgn-primary > .cgn-research { --entry-ink: #4f746d; --entry-paper: #edf2ed; --entry-icon: #dce9df; }
.cgn-primary > .cgn-skills { --entry-ink: #976345; --entry-paper: #f6eee5; --entry-icon: #efe0cd; }
.cgn-primary > .cgn-formats { --entry-ink: #766789; --entry-paper: #f2eef5; --entry-icon: #e7deee; }
.cgn-primary > .cgn-create { --entry-ink: #a0574b; --entry-paper: #f7ede8; --entry-icon: #f0ddd2; }
.cgn-primary > .cgn-learn { --entry-ink: #526e82; --entry-paper: #edf1f4; --entry-icon: #dce5ed; }
.cgn-primary > .cgn-books { --entry-ink: #727b4d; --entry-paper: #f1f2e8; --entry-icon: #e5e8d3; }
.cgn-primary > .cgn-projects { --entry-ink: #8b694d; --entry-paper: #f6eee5; --entry-icon: #efe0cd; }
.cgn-primary > .cgn-group > .cgn-trigger,
.cgn-primary > .cgn-direct {
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  width: clamp(104px, 5.8vw, 116px);
  min-height: 54px;
  margin: 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg,rgba(255,255,255,.58),transparent),var(--entry-paper);
  box-shadow: 0 0 0 1px rgba(0,0,0,.045),0 2px 4px rgba(0,0,0,.025);
  transition: color 160ms ease,background-color 160ms ease,box-shadow 160ms ease,transform 160ms ease;
}
.cgn-emblem { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; overflow: hidden; color: var(--entry-ink); opacity: .22; pointer-events: none; mask-image: linear-gradient(90deg,#000,rgba(0,0,0,.4) 40%,rgba(0,0,0,.25) 60%,#000); }
.header .cgn .cgn-emblem svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; color: inherit; }
.header .cgn .cgn-actions svg { fill: none; stroke: currentColor; color: inherit; stroke-linecap: round; stroke-linejoin: round; }
.cgn-primary .cgn-label { display: block; width: 100%; font-family: inherit; text-align: center; }
.cgn-primary .cgn-task { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.cgn-primary .cgn-subtitle { display: block; margin: 2px 0 0; color: #80786b; font-size: 12px; font-weight: 400; line-height: 1.2; letter-spacing: .1em; }
.cgn-primary > .cgn-group > .cgn-trigger .cgn-chevron { position: absolute; right: 8px; bottom: 11px; margin: 0; color: var(--cgn-accent); }
.header .cgn .cgn-primary > .cgn-group[open] > .cgn-trigger,
.header .cgn .cgn-primary > .cgn-trigger:hover,
.header .cgn .cgn-primary > .cgn-group > .cgn-trigger:hover,
.header .cgn .cgn-primary > .is-current > .cgn-trigger,
.header .cgn .cgn-primary > .cgn-trigger[aria-current] {
  color: var(--entry-ink);
  background: var(--entry-paper);
  box-shadow: 0 0 0 1px rgba(0,0,0,.13),0 4px 12px rgba(0,0,0,.055);
}
.header .cgn .cgn-primary > .cgn-group[open] > .cgn-trigger::after,
.header .cgn .cgn-primary > .is-current > .cgn-trigger::after,
.header .cgn .cgn-primary > .cgn-trigger[aria-current]::after { display: none; }
.cgn-primary > .cgn-group > .cgn-trigger:hover, .cgn-primary > .cgn-direct:hover { transform: translateY(-1px); }
.cgn-primary > .cgn-group > .cgn-trigger:active, .cgn-primary > .cgn-direct:active { transform: scale(.96); }

/* Secondary destinations become a compact dark action group. */
.cgn-utilities { gap: 5px; border-left-color: #d6cbb9; }
.cgn .cgn-utilities .cgn-trigger {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #50493d;
  border-radius: 8px;
  color: #f4ead8;
  background: linear-gradient(145deg,#40382d,#302b23);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 2px 5px rgba(38,31,24,.12);
}
.header .cgn .cgn-utilities .cgn-trigger:hover,
.header .cgn .cgn-utilities .cgn-group[open] > .cgn-trigger,
.header .cgn .cgn-utilities .is-current > .cgn-trigger,
.header .cgn .cgn-utilities .cgn-trigger[aria-current] {
  color: #fff8eb;
  border-color: #7f6750;
  background: linear-gradient(145deg,#5b4c3a,#403529);
  box-shadow: inset 0 0 0 1px rgba(255,235,196,.12), 0 4px 10px rgba(38,31,24,.16);
}
.cgn .cgn-utilities .cgn-chevron { color: #efd09a; }

.cgn-menu, .cgn-close { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: var(--cgn-paper); color: var(--cgn-muted); cursor: pointer; transition: color 160ms ease, background-color 160ms ease, transform 120ms ease, box-shadow 160ms ease; }
.cgn-menu:hover, .cgn-close:hover { color: #fff8eb; background: linear-gradient(145deg,#5b4c3a,#403529); }
.cgn .cgn-account-entry { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 14px; border-radius: 10px; background: linear-gradient(135deg,#b23d2d,#913125); color: #fff1d8 !important; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,230,183,.3), 0 2px 5px rgba(0,0,0,.12); transition: transform 120ms ease, box-shadow 160ms ease; }
.cgn .cgn-account-entry:hover { background: linear-gradient(135deg,#bf4935,#9f3829); box-shadow: inset 0 0 0 1px rgba(255,230,183,.5), 0 3px 8px rgba(0,0,0,.16); }
.header .cgn .cgn-account-entry svg { color: #f2d29c; }
.cgn-menu, .cgn-close, .cgn-drawer-heading { display: none; }

.cgn-panel {
  position: absolute;
  z-index: 5;
  top: calc(100% - 2px);
  left: max(16px, calc((100% - 920px) / 2));
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  width: min(920px, calc(100% - 32px));
  max-height: min(650px, calc(100dvh - var(--cgn-top, 86px) - 14px));
  overflow: hidden;
  border-radius: 12px;
  background: var(--cgn-surface);
  box-shadow: 0 0 0 1px rgba(38,38,34,.07), 0 2px 5px rgba(38,38,34,.04), 0 18px 46px rgba(38,38,34,.14);
  transform-origin: top center;
  animation: cgn-panel-enter 170ms cubic-bezier(.2,0,0,1) both;
}
.cgn-panel-heading { grid-column: 1; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; min-height: 202px; padding: 23px 21px; background: var(--cgn-paper); border-right: 1px solid var(--cgn-line); }
.cgn-panel-heading > div { display: contents; }
.cgn-panel-kicker { color: var(--cgn-accent); font-size: 10px; font-weight: 500; letter-spacing: .15em; }
.cgn-panel-heading strong { color: var(--cgn-text); font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 25px; font-weight: 600; letter-spacing: .1em; line-height: 1.25; text-wrap: balance; }
.cgn-panel-heading p { margin: 0; color: var(--cgn-muted); font-size: 12px; line-height: 1.75; text-wrap: pretty; }
.cgn-panel-mark { display: grid; place-items: center; width: 30px; height: 30px; margin-top: auto; border: 1px solid var(--cgn-accent); border-radius: 5px; color: var(--cgn-accent); font-family: "Songti SC", "STSong", serif; font-size: 15px; transform: rotate(-4deg); }
.cgn-sections { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; padding: 18px; overflow: auto; overscroll-behavior: contain; }
.cgn .cgn-section h3 { margin: 0 0 7px; color: var(--cgn-muted); font-size: 11px; font-weight: 500; letter-spacing: .05em; }
.cgn-links { display: grid; gap: 3px; }
.cgn .cgn-link { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 42px; padding: 9px 32px 9px 11px; border-radius: 8px; color: var(--cgn-text); line-height: 1.45; white-space: normal; transition: color 160ms ease, background-color 160ms ease, transform 120ms ease; }
.cgn .cgn-link::after { content: "↗"; position: absolute; top: 11px; right: 12px; color: var(--cgn-muted); font-size: 11px; opacity: 0; transform: translate(-3px,3px); transition: opacity 160ms ease, transform 160ms cubic-bezier(.2,0,0,1); }
.header .cgn .cgn-link:hover, .header .cgn .cgn-link[aria-current] { color: var(--cgn-accent); background: var(--cgn-soft); }
.header .cgn .cgn-link:hover::after, .header .cgn .cgn-link[aria-current]::after { opacity: 1; transform: translate(0,0); }
.cgn-link-name { font-size: 13px; font-weight: 600; }
.cgn-description { color: var(--cgn-muted); font-size: 11px; text-wrap: pretty; }
.cgn-volume { color: var(--cgn-accent); font-size: 10px; font-weight: 500; letter-spacing: .07em; }

.cgn-solutions .cgn-panel { width: min(820px, calc(100% - 32px)); left: max(16px, calc((100% - 820px) / 2)); }
.cgn-solutions .cgn-sections { display: block; padding: 13px; }
.cgn-solutions .cgn-section h3 { display: none; }
.cgn-solutions .cgn-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.cgn-solutions .cgn-link { min-height: 82px; padding: 13px 36px 13px 15px; background: var(--cgn-paper); box-shadow: 0 0 0 1px rgba(38,38,34,.04); }
.cgn-solutions .cgn-link-name { font-size: 14px; }
.cgn-learn .cgn-panel, .cgn-tools .cgn-panel { width: min(1080px, calc(100% - 32px)); left: max(16px, calc((100% - 1080px) / 2)); }
.cgn-learn .cgn-sections, .cgn-tools .cgn-sections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cgn-advice .cgn-panel { width: min(760px, calc(100% - 32px)); left: max(16px, calc((100% - 760px) / 2)); }
.cgn-advice .cgn-sections { grid-template-columns: 1.1fr .9fr; }
.cgn-tool-search { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 10px; margin: 18px 18px 0; color: var(--cgn-text); font-size: 12px; font-weight: 500; }
.cgn-tool-search input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 11px; border: 1px solid var(--cgn-line); border-radius: 8px; color: var(--cgn-text); background: var(--cgn-paper); transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.cgn-tool-search input:focus { border-color: var(--cgn-accent); background: var(--cgn-surface); box-shadow: 0 0 0 3px rgba(168,53,40,.1); }
.cgn-tools .cgn-sections { grid-row: 3; padding-top: 14px; }
.cgn-search-status { grid-column: 2; grid-row: 2; margin: 7px 18px 0; color: var(--cgn-muted); font-size: 11px; }

.cgn .cgn-backdrop:active { transform: none; }
.cgn-backdrop { position: fixed; inset: 0; z-index: 1; border: 0; background: rgba(31,29,25,.24); }
.cgn [hidden] { display: none !important; }
.cgn-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes cgn-panel-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1280px) {
  .cgn .cgn-utilities .cgn-panel { left: auto; right: 16px; }
}
@media (min-width: 1280px) and (max-width: 1799px) {
  .cgn { gap: 12px; padding: 0 16px; }
  .cgn .cgn-brand { flex-basis: 174px; width: 174px; }
  .cgn-content { gap: 12px; }
  .cgn-primary { gap: 6px; }
  .cgn-utilities { gap: 4px; padding-left: 10px; }
  .cgn-primary > .cgn-group > .cgn-trigger, .cgn-primary > .cgn-direct { width: 94px; min-height: 50px; padding: 5px 8px; }
  .cgn-primary .cgn-task { font-size: 14px; }
  .cgn-primary .cgn-subtitle { font-size: 11.5px; }
  .cgn .cgn-utilities .cgn-trigger { padding-right: 8px; padding-left: 8px; }
}
@media (min-width: 1280px) and (max-width: 1499px) {
  .cgn { gap: 10px; padding: 0 12px; }
  .cgn .cgn-brand { flex-basis: 164px; width: 164px; }
  .cgn-content { gap: 10px; }
  .cgn-primary { gap: 6px; }
  .cgn .cgn-trigger { gap: 4px; font-size: 13px; }
  .cgn-primary > .cgn-group > .cgn-trigger, .cgn-primary > .cgn-direct { width: 88px; min-height: 48px; padding: 5px 6px; }
  .cgn-primary .cgn-task { font-size: 13px; }
  .cgn-primary .cgn-subtitle { font-size: 11px; }
  .cgn .cgn-utilities .cgn-trigger { padding-right: 7px; padding-left: 7px; }
  .cgn-utilities { padding-left: 8px; }
  .cgn-actions { gap: 5px; }
  .cgn .cgn-account-entry { padding: 9px 10px; font-size: 13px; }
}

@media (min-width: 1280px) and (max-width: 1399px) {
  .cgn { gap: 9px; }
  .cgn-content { gap: 8px; }
  .cgn-primary { gap: 4px; }
  .cgn-primary > .cgn-group > .cgn-trigger, .cgn-primary > .cgn-direct { width: 82px; padding-right: 5px; padding-left: 5px; }
  .cgn-utilities { gap: 3px; }
  .cgn .cgn-utilities .cgn-trigger { padding-right: 6px; padding-left: 6px; font-size: 12px; }
  .cgn-utilities .cgn-task { font-size: 12px; }
}

@media (max-width: 1279px) {
  .cgn { width: 100%; min-height: 72px; justify-content: flex-start; gap: 8px; padding: 8px 16px; }
  .cgn::before { right: 16px; left: 16px; height: 2px; }
  .cgn .cgn-brand { flex: 0 0 172px; width: 172px; }
  .cgn-actions { flex: 1; justify-content: flex-end; gap: 5px; margin-left: auto; }
  .cgn .cgn-account-entry { min-width: 60px; padding: 9px 11px; }
  .cgn .cgn-account-entry svg { display: none; }
  .cgn.is-ready .cgn-menu { display: flex; }
  .cgn .cgn-content { display: none; }
  .cgn.is-open .cgn-content { display: block; }
  .cgn-content { position: fixed; z-index: 4; top: var(--cgn-top,72px); right: 0; bottom: 0; display: block; width: min(420px,100vw); padding: 16px 18px max(28px,env(safe-area-inset-bottom)); overflow: auto; overscroll-behavior: contain; background: var(--cgn-surface); box-shadow: -1px 0 0 var(--cgn-line), -18px 24px 55px rgba(38,38,34,.14); }
  .cgn-drawer-heading { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-bottom: 8px; padding: 0 4px 9px 10px; border-bottom: 1px solid var(--cgn-line); }
  .cgn-drawer-heading strong { font-family: "Songti SC","STSong",serif; font-size: 18px; font-weight: 600; letter-spacing: .08em; }
  .cgn-close { display: flex; font-size: 26px; }
  .cgn-primary, .cgn-utilities { display: block; padding: 0; border: 0; }
  .cgn-utilities { margin-top: 10px; margin-left: 0; padding-top: 10px; border-top: 1px solid var(--cgn-line); }
  .cgn .cgn-trigger { justify-content: space-between; width: 100%; min-height: 52px; padding: 11px 12px; font-size: 15px; }
  .cgn .cgn-utilities .cgn-trigger { margin: 6px 0; }
  .cgn-primary > .cgn-group > .cgn-trigger, .cgn-primary > .cgn-direct { justify-content: center; width: 100%; min-height: 60px; margin: 8px 0; padding: 10px 22px; }
  .cgn-primary .cgn-task { font-size: 15px; }
  .cgn-primary .cgn-subtitle { font-size: 12px; margin-top: 3px; }
  .cgn-primary > .cgn-group > .cgn-trigger .cgn-chevron { right: 17px; bottom: 17px; }
  .cgn-task, .cgn-subtitle { display: inline; }
  .cgn-subtitle { margin: 0 0 0 12px; font-size: 12px; }
  .header .cgn-group[open] > .cgn-trigger::after,
  .header .cgn .is-current > .cgn-trigger::after,
  .header .cgn .cgn-trigger[aria-current]::after { top: 11px; bottom: 11px; left: 0; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .cgn .cgn-panel { position: static; display: block; width: auto; max-width: none; max-height: none; margin: 2px 0 8px; overflow: visible; border-radius: 10px; background: var(--cgn-paper); box-shadow: inset 0 0 0 1px rgba(38,38,34,.045); animation-duration: 150ms; }
  .cgn-panel-heading { display: block; min-height: 0; padding: 16px 16px 12px; background: transparent; border: 0; }
  .cgn-panel-kicker { display: block; margin-bottom: 5px; }
  .cgn-panel-heading strong { font-size: 21px; }
  .cgn-panel-heading p { margin-top: 6px; }
  .cgn-panel-mark { display: none; }
  .cgn .cgn-sections, .cgn-learn .cgn-sections, .cgn-tools .cgn-sections, .cgn-advice .cgn-sections { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 4px 8px 12px; overflow: visible; }
  .cgn .cgn-section h3 { margin-left: 12px; }
  .cgn .cgn-link { min-height: 46px; padding: 11px 34px 11px 12px; }
  .cgn-solutions .cgn-sections { display: block; padding: 4px 8px 12px; }
  .cgn-solutions .cgn-links { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .cgn-solutions .cgn-link { min-height: 80px; padding: 13px 36px 13px 14px; background: var(--cgn-surface); }
  .cgn-tool-search { display: block; margin: 2px 12px 10px; }
  .cgn-tool-search input { display: block; width: 100%; margin-top: 7px; }
  .cgn-search-status { margin: 0 12px 8px; }
  body.cgn-drawer-open { overflow: hidden; }
  body.zmt-cgn-enabled.cgn-drawer-open .header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: none !important; }
}

@media (max-width: 782px) {
  body.admin-bar.zmt-cgn-enabled .header { top: 46px !important; }
}

@media (max-width: 419px) {
  .cgn { padding: 8px 10px; }
  .cgn::before { right: 10px; left: 10px; }
  .cgn .cgn-brand { flex-basis: 154px; width: 154px; }
  .cgn-actions { gap: 2px; }
  .cgn-menu { flex-basis: 40px; width: 40px; }
  .cgn .cgn-account-entry { min-width: 54px; padding: 8px 9px; }
  .cgn-content { width: 100vw; padding-right: 14px; padding-left: 14px; }
}

/* Each utility has its own card. Keep the scroll owner explicitly bounded. */
.cgn .cgn-feature-card {
  min-width: 0;
  min-height: 140px;
  gap: 9px;
  padding: 15px 15px 11px;
  background: linear-gradient(140deg,#fffefa,#f7f4ed);
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.075), 0 2px 4px rgba(0,0,0,.025);
}
.cgn .cgn-feature-card::after { display: none; }
.cgn .cgn-feature-card:hover { background: #fff8ed; box-shadow: 0 0 0 1px rgba(168,53,40,.28), 0 4px 12px rgba(0,0,0,.06); transform: translateY(-1px); }
.cgn .cgn-feature-card:active { transform: scale(.96); }
.cgn-card-title { display: flex; align-items: center; gap: 10px; }
.cgn-card-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; color: #806440; background: #efe6d6; }
.header .cgn .cgn-card-icon svg { color: inherit; fill: none; stroke: currentColor; }
.cgn .cgn-feature-card .cgn-link-name { font-size: 14px; line-height: 1.45; }
.cgn .cgn-feature-card .cgn-description { color: #726d62; font-size: 12px; line-height: 1.65; }
.cgn-card-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(0,0,0,.055); color: var(--cgn-accent); font-size: 11px; }
.cgn-card-action > span { font-size: 15px; }
.cgn-create .cgn-panel, .cgn-research .cgn-panel, .cgn-advice .cgn-panel { grid-template-rows: minmax(0,1fr); }
.cgn-create .cgn-panel-heading, .cgn-research .cgn-panel-heading, .cgn-advice .cgn-panel-heading { grid-row: 1; }
.cgn-create .cgn-sections, .cgn-research .cgn-sections, .cgn-advice .cgn-sections { display: block; min-height: 0; }
.cgn-research .cgn-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cgn-create .cgn-links, .cgn-advice .cgn-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.cgn-learn .cgn-panel { height: min(660px,calc(100dvh - var(--cgn-top,86px) - 18px)); grid-template-rows: minmax(0,1fr); }
.cgn-learn .cgn-panel-heading { grid-row: 1; min-height: 0; overflow: auto; }
.cgn-learn .cgn-sections { display: block; grid-row: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.cgn-learn .cgn-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 1px; }
.cgn .cgn-toolbox {
  display: grid;
  grid-template-columns: 186px minmax(0,1fr);
  grid-template-rows: minmax(0,1fr);
  height: min(660px,calc(100dvh - var(--cgn-top,86px) - 18px));
  max-height: calc(100dvh - var(--cgn-top,86px) - 18px);
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
}
.cgn-tool-sidebar { min-height: 0; overflow-y: auto; padding: 22px 12px 16px; background: linear-gradient(155deg,#f2ebdf,#faf8f2); border-right: 1px solid var(--cgn-line); overscroll-behavior-y: contain; }
.cgn-tool-intro { padding: 0 8px 17px; }
.cgn-tool-intro strong { display: block; margin-top: 8px; font-family: "Songti SC","STSong",serif; font-size: 25px; font-weight: 600; letter-spacing: .06em; }
.cgn-tool-intro p { margin: 9px 0 0; color: #7d7362; font-size: 11px; line-height: 1.75; }
.cgn-tool-categories { display: grid; gap: 4px; }
.cgn .cgn-category { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 42px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #655c4d; font-size: 12px; text-align: left; cursor: pointer; transition: background-color 160ms ease,color 160ms ease; }
.cgn-category > span { display: flex; align-items: center; gap: 8px; }
.header .cgn-category svg { width: 16px; height: 16px; color: inherit; fill: none; stroke: currentColor; }
.cgn-category small { font-size: 10px; opacity: .65; font-variant-numeric: tabular-nums; }
.cgn .cgn-category:hover { background: #eae1d2; }
.cgn .cgn-category[aria-pressed="true"] { color: #fff5e3; background: #40372b; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.cgn-tool-seal { display: grid; place-items: center; width: 29px; height: 30px; margin: 20px 8px 0; border: 1px solid var(--cgn-accent); border-radius: 5px; color: var(--cgn-accent); font: 18px "Songti SC","STSong",serif; transform: rotate(-4deg); }
.cgn-tool-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cgn-tool-toolbar { flex: 0 0 auto; padding: 18px 20px 14px; background: var(--cgn-surface); border-bottom: 1px solid var(--cgn-line); }
.cgn-tool-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cgn-tool-heading > strong { font-size: 17px; font-weight: 600; }
.cgn-tool-count { color: var(--cgn-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.cgn .cgn-tools-close { display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -7px -8px auto; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #81786b; font-size: 25px; cursor: pointer; }
.cgn .cgn-tools-close:hover { color: var(--cgn-accent); background: var(--cgn-soft); }
.cgn-tool-search-row { display: flex; align-items: center; gap: 8px; }
.cgn-toolbox .cgn-tool-search { display: flex; align-items: center; flex: 1; min-width: 0; gap: 9px; margin: 0; padding: 0 12px; border: 1px solid var(--cgn-line); border-radius: 9px; background: var(--cgn-paper); }
.cgn-toolbox .cgn-tool-search:focus-within { border-color: #bd9b71; box-shadow: 0 0 0 3px rgba(189,155,113,.12); }
.cgn-toolbox .cgn-tool-search svg { flex: 0 0 18px; color: #8e826f; fill: none; stroke: currentColor; }
.cgn-toolbox .cgn-tool-search input { width: 100%; min-height: 42px; margin: 0; padding: 9px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 13px; outline: none; }
.cgn .cgn-tool-clear { flex: 0 0 auto; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 7px; background: var(--cgn-paper); color: var(--cgn-accent); font-size: 12px; cursor: pointer; }
.cgn .cgn-tool-results { display: block; flex: 1 1 0; min-height: 0; padding: 18px 18px 22px; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #bba98d #f2eee5; }
.cgn-tool-results:focus-visible { outline: 2px solid var(--cgn-accent); outline-offset: -3px; }
.cgn-tool-results::-webkit-scrollbar { width: 8px; }
.cgn-tool-results::-webkit-scrollbar-track { background: #f2eee5; }
.cgn-tool-results::-webkit-scrollbar-thumb { background: #bba98d; border: 2px solid #f2eee5; border-radius: 8px; }
.cgn-tool-results .cgn-section + .cgn-section { margin-top: 22px; }
.cgn .cgn-tool-results .cgn-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #7c6d55; font-size: 12px; font-weight: 600; }
.cgn-tool-results h3 small { font-size: 10px; font-weight: 400; color: #9c917e; }
.cgn-tool-results .cgn-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 1px; }
.cgn-tool-footer { display: flex; flex: 0 0 auto; justify-content: space-between; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--cgn-line); background: var(--cgn-paper); color: #8a806f; font-size: 10px; }
.cgn-tool-empty { padding: 52px 16px; text-align: center; }
.cgn-tool-empty strong { font-size: 16px; }
.cgn-tool-empty p { margin: 10px 0 18px; color: var(--cgn-muted); font-size: 12px; }
.cgn .cgn-tool-reset { min-height: 42px; padding: 9px 16px; border: 0; border-radius: 8px; background: #40372b; color: #fff5e3; font-size: 12px; cursor: pointer; }
@media (max-width: 1279px) {
  .cgn .cgn-toolbox { display: block; height: auto; max-height: none; overflow: visible; }
  .cgn-tool-sidebar { padding: 16px 12px 12px; overflow: visible; border: 0; border-bottom: 1px solid var(--cgn-line); border-radius: 10px 10px 0 0; }
  .cgn-tool-intro { padding: 0 2px 12px; }
  .cgn-tool-intro strong { font-size: 22px; }
  .cgn-tool-intro p { margin-top: 5px; }
  .cgn-tool-categories { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .cgn .cgn-category { min-height: 40px; padding: 8px; font-size: 11px; }
  .cgn-tool-seal { display: none; }
  .cgn-tool-toolbar { padding: 15px 12px 12px; }
  .cgn-tool-heading { flex-wrap: wrap; }
  .cgn-tool-heading > strong { font-size: 15px; }
  .cgn-tool-count { font-size: 10px; }
  .cgn-toolbox .cgn-tool-search input { font-size: 12px; }
  .cgn .cgn-tool-results { display: block; overflow: visible; padding: 16px 12px; scrollbar-gutter: auto; }
  .cgn .cgn-tool-results .cgn-links, .cgn-learn .cgn-links, .cgn-create .cgn-links, .cgn-research .cgn-links, .cgn-advice .cgn-links { grid-template-columns: 1fr; gap: 10px; }
  .cgn .cgn-feature-card { padding: 14px; min-height: 134px; }
  .cgn-tool-footer { padding: 10px 12px; line-height: 1.5; }
  .cgn-learn .cgn-panel { height: auto; }
  .cgn-learn .cgn-sections { display: block; overflow: visible; scrollbar-gutter: auto; }
  .cgn-create .cgn-sections, .cgn-research .cgn-sections, .cgn-advice .cgn-sections { display: block; }
}

/* Phone navigation: a compact dropdown under the header, on the right half. */
@media (max-width: 767px) {
  .cgn .cgn-content {
    right: 0;
    bottom: auto;
    left: auto;
    width: 50vw;
    max-height: var(--cgn-mobile-height, calc(100vh - var(--cgn-top, 72px) - 8px));
    padding: 0 8px max(12px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 0 12px;
    transform-origin: top right;
    animation: cgn-panel-enter 170ms cubic-bezier(.2,0,0,1) both;
  }
  .cgn-drawer-heading {
    position: sticky;
    top: 0;
    z-index: 6;
    height: 48px;
    min-height: 48px;
    margin: 0 0 4px;
    padding: 0;
    gap: 4px;
    background: var(--cgn-surface);
  }
  .cgn-drawer-heading strong { overflow: hidden; color: var(--cgn-muted); font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
  .cgn-close { flex: 0 0 40px; width: 40px; height: 40px; background: transparent; font-size: 22px; }
  .cgn-close:hover, .cgn-close:focus-visible { background: var(--cgn-paper); }
  .cgn-primary > .cgn-group > .cgn-trigger,
  .cgn-primary > .cgn-direct {
    min-height: 50px;
    margin: 4px 0;
    padding: 6px 20px 6px 8px;
    border-radius: 8px;
  }
  .cgn-primary .cgn-task { font-size: 14px; line-height: 1.35; }
  .cgn-primary .cgn-subtitle { margin-top: 2px; font-size: 10px; line-height: 1.3; }
  .cgn-primary > .cgn-group > .cgn-trigger .cgn-chevron { right: 9px; bottom: 18px; }
  .cgn-utilities { margin-top: 6px; padding-top: 6px; }
  .cgn .cgn-utilities .cgn-trigger { margin: 4px 0; min-height: 44px; padding: 8px; font-size: 13px; }
  .cgn .cgn-panel { margin: 2px 0 6px; }
  .cgn-panel-heading { padding: 10px 8px 6px; }
  .cgn-panel-heading strong { font-size: 15px; letter-spacing: 0; }
  .cgn-panel-heading p, .cgn-panel-kicker { display: none; }
  .cgn .cgn-sections, .cgn-solutions .cgn-sections { padding: 4px 6px 8px; gap: 8px; }
  .cgn .cgn-section h3 { margin: 4px 2px 8px; font-size: 11px; }
  .cgn .cgn-link { min-height: 44px; padding: 8px; }
  .cgn .cgn-feature-card { min-height: 0; gap: 5px; padding: 8px; border-radius: 8px; }
  .cgn-card-title { gap: 6px; }
  .cgn-card-icon { flex-basis: 20px; width: 20px; height: 20px; border-radius: 5px; }
  .cgn-card-icon svg { width: 15px; height: 15px; }
  .cgn .cgn-feature-card .cgn-link-name { font-size: 13px; overflow-wrap: anywhere; }
  .cgn .cgn-feature-card .cgn-description { font-size: 11px; line-height: 1.5; }
  .cgn-card-action { display: none; }
  .cgn-tool-sidebar, .cgn-tool-toolbar, .cgn .cgn-tool-results { padding: 10px 8px; }
  .cgn-tool-intro { padding: 0 0 8px; }
  .cgn-tool-intro strong { margin-top: 0; font-size: 16px; }
  .cgn-tool-intro p { display: none; }
  .cgn-tool-categories { grid-template-columns: 1fr; }
  .cgn .cgn-category { min-height: 44px; }
  .cgn-tool-heading { gap: 4px; }
  .cgn-tool-search-row { flex-wrap: wrap; }
  .cgn-toolbox .cgn-tool-search { flex: 1 1 100%; padding: 0 6px; gap: 4px; }
  .cgn-toolbox .cgn-tool-search input { font-size: 16px; font-weight: 400; }
  .cgn-tool-footer { flex-wrap: wrap; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cgn *, .cgn *::before, .cgn *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Keep the phone's outer viewport available to the page; components retain
   their own text padding and modal sizing. */
@media (max-width: 767px) {
  body.zmt-cgn-enabled:not(.zmt-pil-shell):not(.zmt-lss-body):not(.zmt-opc-solutions-page):not(.zmt-is-body) > main.container { padding-inline: 0 !important; }
  body.home .article.page-article { padding-inline: 0 !important; }
  body.zmt-book-distill-page .zbd-workspace .masthead { margin-inline: 0 !important; border-radius: 0 !important; }
  body.zmt-book-distill-page .zbd-workspace .workspace { padding-inline: 8px !important; }
  body.zmt-report-library-page .report-container { width: 100% !important; max-width: none !important; }
  body.zmt-report-library-page .zmt-creator-skill-toolkit .creator-skill-toolkit-intro { width: 100% !important; margin-inline: 0 !important; border-radius: 0 !important; }
  body.zmt-report-library-page .report-platform-tabs { box-sizing: border-box !important; width: 100% !important; }
  body.zmt-is-body #is-main { padding-inline: 0 !important; }
  body.zmt-lss-body #ls-main { padding-inline: 0 !important; }
  body.zmt-opc-solutions-page main.is-main { padding-inline: 0 !important; }
  body.zmt-success-atlas-integrated .atlas-banner { width: 100% !important; margin-inline: 0 !important; border-radius: 0 !important; }
  body.zmt-success-atlas-integrated #atlas-main { padding-inline: 8px !important; }
}
/* Phone navigation reuses the existing destinations and palette. The first
   level stays compact; opening a group gives its links the full floating panel. */
.cgn-mobile-panel-header, .cgn-mobile-entry-icon, .cgn-category-toggle, .cgn-mobile-features, .header .cgn .cgn-utilities > .cgn-all-features { display: none; }
@media (max-width: 767px) {
  .header .cgn .cgn-content {
    overflow-anchor: none;
    top: calc(var(--cgn-top,72px) + 8px); right: 12px; bottom: auto;
    width: 50vw; height: auto; max-height: calc(var(--cgn-mobile-height, calc(100dvh - 80px)) - 12px);
    padding: 0 8px 8px; overflow-x: hidden; overflow-y: auto;
    border-radius: 14px; background: var(--cgn-surface);
    box-shadow: 0 0 0 1px rgba(0,0,0,.045), 0 14px 34px rgba(30,27,22,.18);
  }
  .header .cgn .cgn-drawer-heading { top: 0; height: 48px; min-height: 48px; margin: 0 0 3px; padding: 0 4px; }
  .header .cgn .cgn-primary, .header .cgn .cgn-utilities { display: block; margin: 0; padding: 0; }
  .header .cgn .cgn-utilities { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--cgn-line); }
  /* Reuse desktop button artwork, colors and states; only size for the phone. */
  .header .cgn .cgn-primary > .cgn-group > .cgn-trigger,
  .header .cgn .cgn-primary > .cgn-direct {
    justify-content: center; width: 100%; min-height: 50px;
    margin: 4px 0; padding: 6px 18px; border-radius: 8px;
  }
  .header .cgn .cgn-mobile-entry-icon { display: none; }
  .header .cgn .cgn-primary .cgn-label { min-width: 0; text-align: center; }
  .header .cgn .cgn-primary .cgn-task { font-size: 14px; font-weight: 600; line-height: 1.3; }
  .header .cgn .cgn-primary .cgn-subtitle { display: block; margin-top: 2px; font-size: 10px; line-height: 1.3; }
  .header .cgn .cgn-utilities > .cgn-group > .cgn-trigger,
  .header .cgn .cgn-utilities > a {
    justify-content: space-between; width: 100%; min-height: 44px;
    margin: 4px 0; padding: 8px 10px; font-size: 13px;
  }
  .header .cgn .cgn-utilities .cgn-task { font-size: 13px; font-weight: 600; }
  .header .cgn .cgn-trigger .cgn-chevron { flex: 0 0 6px; width: 6px; height: 6px; border-width: 1.5px; transform: rotate(-45deg); }
  .header .cgn .cgn-primary .cgn-chevron { top: calc(50% - 3px); right: 9px; bottom: auto; }
  .header .cgn .cgn-utilities > .cgn-all-features { display: flex; margin-top: 7px; }
  .header .cgn .cgn-all-features > span:last-child { margin-left: auto; color: #efd09a; }

  .header .cgn.has-mobile-submenu .cgn-content { width: calc(100vw - 24px); padding: 0; overflow: hidden; animation: none; transform: none; }
  .header .cgn.has-mobile-submenu .cgn-drawer-heading,
  .header .cgn.has-mobile-submenu .cgn-primary:not(.cgn-mobile-owner),
  .header .cgn.has-mobile-submenu .cgn-utilities:not(.cgn-mobile-owner),
  .header .cgn.has-mobile-submenu .cgn-mobile-owner > :not(.is-mobile-active),
  .header .cgn.has-mobile-submenu .is-mobile-active > summary { display: none !important; }
  .header .cgn.has-mobile-submenu .cgn-mobile-owner { margin: 0; padding: 0; border: 0; }
  .header .cgn.has-mobile-submenu .cgn-group[open] > .cgn-panel {
    position: relative; top: auto; left: auto; right: auto; bottom: auto;
    display: flex; flex-direction: column; width: 100%; height: auto;
    max-height: calc(var(--cgn-mobile-height, calc(100dvh - 80px)) - 12px);
    margin: 0; padding: 0; overflow: hidden; border-radius: 0;
    background: var(--cgn-surface); box-shadow: none; animation: cgn-panel-enter 170ms cubic-bezier(.2,0,0,1) both;
  }
  .header .cgn.has-mobile-submenu .cgn-mobile-panel-header {
    display: grid; grid-template-columns: 74px minmax(0,1fr) 74px; align-items: center;
    flex: 0 0 50px; min-height: 50px; padding: 0 8px;
    border-bottom: 1px solid var(--cgn-line); background: var(--cgn-surface);
  }
  .cgn-mobile-panel-header strong { min-width: 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
  .header .cgn .cgn-submenu-back, .header .cgn .cgn-panel-close { display: flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: transparent; font-family: inherit; cursor: pointer; }
  .header .cgn .cgn-submenu-back { width: 74px; justify-content: flex-start; gap: 5px; padding-left: 4px; color: var(--cgn-accent); font-size: 13px; font-weight: 500; }
  .cgn-submenu-back > span { font-size: 22px; line-height: 1; }
  .header .cgn .cgn-panel-close { justify-self: end; width: 44px; color: var(--cgn-muted); font-size: 24px; }
  .header .cgn .cgn-submenu-back:hover, .header .cgn .cgn-panel-close:hover { background: var(--cgn-paper); }
  .header .cgn.has-mobile-submenu .cgn-panel-heading { display: none; }
  .header .cgn.has-mobile-submenu .cgn-sections { display: block; flex: 0 1 auto; min-height: 0; padding: 4px 12px 10px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
  .header .cgn.has-mobile-submenu .cgn-section + .cgn-section { margin-top: 6px; }
  .header .cgn.has-mobile-submenu .cgn-section h3 { margin: 0; padding: 12px 7px 6px; color: var(--cgn-muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
  .header .cgn.has-mobile-submenu .cgn-section h3 small { display: none; }
  .header .cgn.has-mobile-submenu .cgn-links { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; padding: 1px; }
  .header .cgn.has-mobile-submenu .cgn-link {
    display: grid; grid-template-columns: 34px minmax(0,1fr) 14px; align-content: center;
    gap: 4px 11px; min-height: 72px; margin: 0; padding: 12px 10px;
    border-radius: 8px;
  }
  .header .cgn.has-mobile-submenu .cgn-editorial .cgn-link { background: var(--cgn-paper); }
  .header .cgn.has-mobile-submenu .cgn-card-title { display: contents; }
  .header .cgn.has-mobile-submenu .cgn-card-icon { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 34px; height: 34px; border-radius: 8px; }
  .header .cgn.has-mobile-submenu .cgn-card-icon svg { width: 19px; height: 19px; }
  .header .cgn.has-mobile-submenu .cgn-link-name { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 600; line-height: 1.4; }
  .header .cgn.has-mobile-submenu .cgn-description { grid-column: 2; grid-row: 2; margin: 0; color: var(--cgn-muted); font-size: 12px; line-height: 1.5; }
  .header .cgn.has-mobile-submenu .cgn-volume { grid-column: 1; grid-row: 1 / span 2; align-self: center; padding: 7px 3px; border-radius: 7px; text-align: center; font-size: 10px; color: var(--cgn-accent); background: var(--cgn-soft); letter-spacing: 0; }
  .header .cgn.has-mobile-submenu .cgn-link::after { content: '\2197'; display: block; top: 50%; right: 9px; opacity: 1; color: var(--cgn-accent); font-size: 14px; transform: translateY(-50%); }
  .header .cgn.has-mobile-submenu .cgn-card-action { display: none; }

  .header .cgn.has-mobile-submenu .cgn-tool-main { display: contents; }
  .header .cgn.has-mobile-submenu .cgn-tool-toolbar { flex: 0 0 auto; padding: 12px 12px 4px; border: 0; }
  .header .cgn.has-mobile-submenu .cgn-tool-heading,
  .header .cgn.has-mobile-submenu .cgn-tool-intro,
  .header .cgn.has-mobile-submenu .cgn-tool-seal,
  .header .cgn.has-mobile-submenu .cgn-tool-footer,
  .header .cgn.has-mobile-submenu .zfd-toolbox-entry { display: none !important; }
  .header .cgn.has-mobile-submenu .cgn-tool-search-row { flex-wrap: nowrap; gap: 7px; }
  .header .cgn.has-mobile-submenu .cgn-tool-search { flex: 1 1 auto; min-width: 0; padding: 0 8px; gap: 6px; }
  .header .cgn.has-mobile-submenu .cgn-tool-search input { font-size: 16px; font-weight: 400; }
  .header .cgn.has-mobile-submenu .cgn-tool-clear { padding: 8px 5px; }
  .header .cgn.has-mobile-submenu .cgn-category-toggle { display: flex; align-items: center; justify-content: space-between; gap: 5px; flex: 0 0 auto; max-width: 108px; min-height: 42px; padding: 0 8px; border: 1px solid var(--cgn-line); border-radius: 8px; color: var(--cgn-text); background: var(--cgn-surface); font-size: 12px; }
  .cgn-category-toggle > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header .cgn.has-mobile-submenu .cgn-category-toggle[aria-expanded="true"] { background: var(--cgn-soft); color: var(--cgn-accent); }
  .header .cgn.has-mobile-submenu .cgn-tool-sidebar { display: none; position: absolute; top: 110px; right: 12px; left: 12px; z-index: 9; max-height: min(240px,calc(var(--cgn-mobile-height) - 154px)); margin: 0; padding: 8px; overflow-y: auto; border: 1px solid var(--cgn-line); border-radius: 10px; background: var(--cgn-paper); box-shadow: 0 8px 24px rgba(30,27,22,.14); }
  .header .cgn.has-mobile-submenu .cgn-tools.is-filter-open .cgn-tool-sidebar { display: block; }
  .header .cgn.has-mobile-submenu .cgn-tool-categories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .header .cgn.has-mobile-submenu .cgn-category { justify-content: center; min-height: 40px; padding: 6px 3px; border: 1px solid var(--cgn-line); color: var(--cgn-text); background: var(--cgn-surface); font-size: 12px; text-align: center; }
  .header .cgn.has-mobile-submenu .cgn-category > span { display: block; }
  .header .cgn.has-mobile-submenu .cgn-category svg, .header .cgn.has-mobile-submenu .cgn-category small { display: none; }
  .header .cgn.has-mobile-submenu .cgn-category[aria-pressed="true"] { background: #40372b; color: #fff5e3; border-color: #40372b; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
  .header .cgn.has-mobile-submenu .cgn-tool-results { flex: 0 1 auto; scrollbar-width: thin; scrollbar-gutter: auto; }
  .header .cgn.has-mobile-submenu .cgn-mobile-features { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 8px 7px 0; padding: 8px 10px; border-radius: 8px; background: var(--cgn-paper); color: var(--cgn-accent); font-size: 12px; }
}

/* Editorial entrances reuse the homepage's ink, cinnabar and warm gold.
   Extra editorial detail is desktop/tablet only; phone keeps its compact rows. */
.cgn-solution-symbol, .cgn-solution-footer, .cgn-solution-art, .cgn-research-capabilities, .cgn-advisor-portraits { display: none; }
.header .cgn .cgn-editorial > .cgn-trigger::after { display: none; }
@media (min-width: 768px) {
  /* The solutions menu belongs to its trigger rather than the full navigation bar. */
  .header .cgn .cgn-editorial { position: relative; }
  .header .cgn .cgn-editorial[open] > .cgn-trigger {
    border-radius: 7px 7px 0 0;
    box-shadow: 0 0 0 1px #c5b69a;
  }
  .header .cgn .cgn-editorial .cgn-panel {
    display: block; top: 100%; left: 0; width: min(692px,calc(100vw - 32px));
    border: 1px solid #c5b69a; border-radius: 0 17px 17px 17px;
    background: var(--cgn-surface); overflow: auto; overscroll-behavior: contain;
    transform-origin: top left;
  }
  .header .cgn .cgn-advice .cgn-panel {
    left: auto; right: 0; border-radius: 17px 0 17px 17px;
    transform-origin: top right;
  }
  .header .cgn .cgn-editorial .cgn-section h3 { display: none; }
  .header .cgn .cgn-editorial .cgn-sections { display: block; padding: 10px; overflow: visible; }
  .header .cgn .cgn-editorial .cgn-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .header .cgn .cgn-editorial .cgn-solution-card {
    --solution-bg: #292c31; --solution-light: #363b42; --solution-gold: #dfc797;
    isolation: isolate; position: relative; display: grid;
    grid-template-columns: minmax(0,1fr) 35px; grid-template-rows: 24px auto auto 1fr;
    align-content: start; gap: 0; min-width: 0; min-height: 164px; padding: 18px 19px 16px;
    overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 11px;
    color: #f8f4eb; background: radial-gradient(ellipse at 100% 0,var(--solution-light),transparent 72%),var(--solution-bg);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025),0 3px 8px rgba(25,23,20,.08);
    transition-property: transform,border-color,box-shadow; transition-duration: 180ms; transition-timing-function: cubic-bezier(.2,0,0,1);
  }
  .header .cgn .cgn-solution-card[data-solution-tone="cinnabar"] { --solution-bg: #4b302c; --solution-light: #714a3e; }
  .header .cgn .cgn-solution-card[data-solution-tone="slate"] { --solution-bg: #2b3236; --solution-light: #414b4e; }
  .header .cgn .cgn-solution-card[data-solution-tone="teal"] { --solution-bg: #263a39; --solution-light: #3b5852; }
  .header .cgn .cgn-solution-card[data-solution-tone="bronze"] { --solution-bg: #3d3427; --solution-light: #65553c; }
  .header .cgn .cgn-editorial .cgn-solution-card::after { display: none; }
  .header .cgn .cgn-editorial .cgn-solution-card > :not(.cgn-solution-art) { position: relative; z-index: 1; }
  .header .cgn .cgn-editorial .cgn-solution-symbol {
    display: grid; grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-self: end;
    width: 35px; height: 35px; margin: -2px 0 0; place-items: center; border: 1px solid #dfc79740;
    border-radius: 10px; color: var(--solution-gold); background: #dfc79712;
  }
  .cgn .cgn-solution-symbol svg { display: block; width: 21px; height: 21px; }
  .header .cgn .cgn-solution-symbol svg, .header .cgn .cgn-solution-art svg,
  .header .cgn .cgn-solution-symbol svg *, .header .cgn .cgn-solution-art svg * {
    color: inherit !important; fill: none !important; stroke: currentColor !important;
  }
  .header .cgn .cgn-editorial .cgn-volume {
    grid-column: 1; grid-row: 1; align-self: center; margin: 0; color: var(--solution-gold);
    font-size: 11px; font-weight: 500; letter-spacing: .14em; line-height: 1.4;
  }
  .header .cgn .cgn-editorial .cgn-link-name {
    grid-column: 1 / -1; grid-row: 2; margin: 8px 0 4px; padding: 0;
    color: #f8f4eb; font-family: inherit; font-size: 21px; font-weight: 650; line-height: 1.35;
    letter-spacing: -.025em; text-wrap: balance;
  }
  .header .cgn .cgn-editorial .cgn-description {
    grid-column: 1 / -1; grid-row: 3; margin: 0; color: #ddd5c8; font-size: 12px; line-height: 1.55;
  }
  .header .cgn .cgn-editorial .cgn-solution-footer {
    grid-column: 1 / -1; grid-row: 4; display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; align-self: end; gap: 7px; padding-top: 12px;
  }
  .cgn .cgn-solution-keywords { display: flex; flex-wrap: wrap; gap: 4px 6px; color: #d9c9af; font-size: 10px; line-height: 1.5; }
  .cgn .cgn-solution-keywords > span + span::before { content: '·'; margin-right: 6px; color: #b69b6c; }
  .cgn .cgn-solution-action { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #eed5a6; font-size: 11px; font-weight: 500; white-space: nowrap; }
  .cgn .cgn-solution-action > span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #dfc79750; border-radius: 50%; color: #f4dfb8; background: #dfc7970d; font-size: 15px; line-height: 1; transition: transform 180ms cubic-bezier(.2,0,0,1),background-color 180ms ease; }
  .header .cgn .cgn-editorial .cgn-solution-art { display: block; position: absolute; z-index: 0; right: -14px; bottom: -26px; width: 120px; height: 120px; color: #dfc797; opacity: .065; transform: rotate(-12deg); pointer-events: none; }
  .cgn .cgn-solution-art svg { display: block; width: 100%; height: 100%; stroke-width: .65; }
  .header .cgn .cgn-editorial .cgn-solution-card:hover,
  .header .cgn .cgn-editorial .cgn-solution-card[aria-current] {
    color: #f8f4eb; border-color: #dbc38a; transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px #dfc79722,0 8px 17px rgba(25,23,20,.2);
  }
  .header .cgn .cgn-editorial .cgn-solution-card:hover .cgn-solution-action > span { transform: translate(2px,-2px); background: #dfc79728; }
  .header .cgn .cgn-editorial .cgn-solution-card:focus-visible { outline: 2px solid #f5d69c !important; outline-offset: -5px; }
  .header .cgn .cgn-editorial .cgn-solution-card:active { transform: scale(.96); }
}
@media (min-width: 1280px) {
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-solution-card {
    grid-template-columns: minmax(0,1fr) 54px;
    grid-template-rows: 35px auto auto 1fr auto;
    min-height: 405px; padding: 26px 26px 23px;
    border-radius: 14px;
  }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-solution-symbol {
    width: 54px; height: 54px; border-radius: 14px;
  }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-solution-symbol svg { width: 30px; height: 30px; }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-volume { font-size: 13px; letter-spacing: .18em; }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-link-name {
    margin: 20px 0 10px; font-size: 30px; line-height: 1.22;
  }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-description { font-size: 15px; line-height: 1.6; }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-research-capabilities {
    grid-column: 1 / -1; grid-row: 4; display: grid; align-self: center;
    gap: 6px; margin: 12px 0 6px;
  }
  .header .cgn .cgn-research-capability {
    display: grid; grid-template-columns: 94px minmax(0,1fr); align-items: center;
    gap: 6px; min-height: 39px; padding: 7px 10px;
    border: 1px solid rgba(223,199,151,.18); border-radius: 8px;
    background: rgba(255,255,255,.045);
  }
  .header .cgn .cgn-research-capability strong { color: #ead2a5; font-size: 11px; font-weight: 600; white-space: nowrap; }
  .header .cgn .cgn-research-capability > span { color: #e3ddd1; font-size: 11px; line-height: 1.45; }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-solution-footer {
    grid-row: 5; display: block; padding-top: 10px;
  }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-solution-keywords { display: none; }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-solution-action {
    display: flex; justify-content: space-between; width: 100%; min-height: 42px;
    margin: 0; padding: 7px 8px 7px 13px;
    border: 1px solid rgba(223,199,151,.48); border-radius: 9px;
    background: rgba(223,199,151,.105); font-size: 13px;
  }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-solution-card:hover .cgn-solution-action { background: rgba(223,199,151,.2); }
  .header .cgn :is(.cgn-research,.cgn-create,.cgn-advice) .cgn-solution-art {
    right: -22px; bottom: -35px; width: 180px; height: 180px; opacity: .055;
  }
  .header .cgn .cgn-advice .cgn-has-advisor-portraits .cgn-solution-symbol { display: none; }
  .header .cgn .cgn-advice .cgn-solution-card > .cgn-advisor-portraits {
    position: absolute; top: 23px; right: 21px; z-index: 2;
    display: flex; align-items: center; width: 172px; height: 56px;
  }
  .header .cgn .cgn-advice .cgn-advisor-portrait {
    flex: 0 0 52px; width: 52px; height: 52px; margin-left: -12px;
    border: 2px solid #cbb589; border-radius: 50%;
    background: #3a3533; object-fit: cover; object-position: center 24%;
    box-shadow: 0 3px 8px rgba(0,0,0,.2);
  }
  .header .cgn .cgn-advice .cgn-advisor-portrait:first-child { margin-left: 0; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .header .cgn .cgn-editorial[open] > .cgn-trigger { border-radius: 7px; box-shadow: 0 0 0 1px rgba(0,0,0,.13); }
  .header .cgn .cgn-editorial .cgn-panel { position: static; width: 100%; margin: 4px 0 10px; border-radius: 14px; }
  .header .cgn .cgn-editorial .cgn-sections { padding: 8px; }
  .header .cgn .cgn-editorial .cgn-links { grid-template-columns: 1fr; gap: 8px; }
  .header .cgn .cgn-editorial .cgn-solution-card { min-height: 152px; padding: 15px; border-radius: 11px; }
  .header .cgn .cgn-editorial .cgn-link-name { font-size: 20px; }
  .header .cgn .cgn-advice .cgn-solution-card > .cgn-advisor-portraits {
    position: absolute; top: 15px; right: 16px; z-index: 2;
    display: flex; align-items: center; width: 90px; height: 38px;
  }
  .header .cgn .cgn-advice .cgn-advisor-portrait {
    flex: 0 0 36px; width: 36px; height: 36px; margin-left: -9px;
    border: 2px solid #cbb589; border-radius: 50%;
    background: #3a3533; object-fit: cover; object-position: center 24%;
  }
  .header .cgn .cgn-advice .cgn-advisor-portrait:first-child { margin-left: 0; }
  .header .cgn .cgn-advice .cgn-advisor-portrait:nth-child(4) { display: none; }
}
@media (max-width: 767px) {
  .header .cgn.has-mobile-submenu .cgn-advice .cgn-has-advisor-portraits .cgn-volume { display: none; }
  .header .cgn.has-mobile-submenu .cgn-advice .cgn-has-advisor-portraits > .cgn-advisor-portraits {
    display: flex; grid-column: 1; grid-row: 1 / span 2; align-self: center;
    align-items: center; width: 45px; height: 34px; margin-left: -3px;
  }
  .header .cgn.has-mobile-submenu .cgn-advice .cgn-advisor-portrait {
    flex: 0 0 28px; width: 28px; height: 28px; margin-left: -11px;
    border: 1.5px solid #bba67f; border-radius: 50%;
    background: #3a3533; object-fit: cover; object-position: center 24%;
  }
  .header .cgn.has-mobile-submenu .cgn-advice .cgn-advisor-portrait:first-child { margin-left: 0; }
  .header .cgn.has-mobile-submenu .cgn-advice .cgn-advisor-portrait:nth-child(n+3) { display: none; }
}

/* Creative kit: search-first access to the existing tools. */
.header .cgn .cgn-tools { position: relative; }
.header .cgn .cgn-tools > .cgn-trigger::after { display: none !important; }
.header .cgn .cgn-tools[open] > .cgn-trigger { border-radius: 7px 7px 0 0; box-shadow: 0 0 0 1px #a99673; }
.header .cgn .cgn-tools .cgn-kit {
  --kit-ink: #f8f4eb; --kit-muted: #c4c4bd; --kit-gold: #dfc797;
  top: 100%; right: 0; left: auto; display: block;
  width: min(980px,calc(100vw - 32px)); height: min(620px,calc(100dvh - var(--cgn-top,86px) - 12px));
  max-height: calc(100dvh - var(--cgn-top,86px) - 12px);
  border: 1px solid #9c8b6a; border-radius: 16px 0 16px 16px;
  background: #252b2e; color: var(--kit-ink);
  box-shadow: 0 18px 46px rgba(22,25,26,.3),inset 0 0 0 1px rgba(255,255,255,.025);
  transform-origin: top right;
}
@media (min-width: 1280px) {
  .header .cgn .cgn-editorial .cgn-panel,
  .header .cgn .cgn-tools .cgn-kit { top: calc(100% + var(--cgn-drop-offset,20px)); }
  .header .cgn .cgn-editorial { --cgn-connector-from: var(--entry-paper); --cgn-connector-to: #fffefa; --cgn-connector-border: #c5b69a; }
  .header .cgn .cgn-advice { --cgn-connector-from: #403529; }
  .header .cgn .cgn-tools { --cgn-connector-from: #403529; --cgn-connector-to: #252b2e; --cgn-connector-border: #9c8b6a; }
  .header .cgn :is(.cgn-editorial,.cgn-tools)[open] > .cgn-trigger::after {
    content: ""; position: absolute; top: calc(100% - 1px); left: -1px; right: -1px;
    display: block !important; height: calc(var(--cgn-drop-offset,20px) + 2px);
    border-right: 1px solid var(--cgn-connector-border); border-left: 1px solid var(--cgn-connector-border);
    border-radius: 0; background: linear-gradient(180deg,var(--cgn-connector-from),var(--cgn-connector-to));
    pointer-events: auto;
  }
}
.header .cgn .cgn-kit .cgn-tool-main { display: flex; height: 100%; padding: 20px 22px 14px; }
.header .cgn .cgn-kit-head { display: flex; align-items: center; gap: 16px; min-height: 51px; margin-bottom: 14px; }
.header .cgn .cgn-kit-head > div { min-width: 0; }
.header .cgn .cgn-kit-head strong { display: block; font-size: 25px; font-weight: 600; letter-spacing: .04em; line-height: 1.25; }
.header .cgn .cgn-kit-head p { margin: 6px 0 0; color: var(--kit-muted); font-size: 12px; }
.header .cgn .cgn-kit-all { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-left: auto; padding: 8px 12px; border: 1px solid #827457; border-radius: 8px; color: var(--kit-gold); font-size: 12px; white-space: nowrap; }
.header .cgn .cgn-kit-all:hover { color: #fff5df; border-color: var(--kit-gold); background: #dfc79712; }
.header .cgn .cgn-kit .cgn-tools-close { flex: 0 0 40px; margin: 0 -8px 0 0; color: var(--kit-muted); }
.header .cgn .cgn-kit .cgn-tools-close:hover { color: var(--kit-ink); background: #fff2db16; }
.header .cgn .cgn-kit .cgn-tool-search-row { flex: 0 0 auto; }
.header .cgn .cgn-kit .cgn-tool-search { min-height: 46px; padding: 0 14px; border: 1px solid #756e61; border-radius: 10px; background: #373d3d; }
.header .cgn .cgn-kit .cgn-tool-search:focus-within { border-color: var(--kit-gold); box-shadow: 0 0 0 3px #dfc79721; }
.header .cgn .cgn-kit .cgn-tool-search svg { color: var(--kit-gold); }
.header .cgn .cgn-kit .cgn-tool-search input { min-height: 44px; color: var(--kit-ink); font-size: 14px; }
.header .cgn .cgn-kit .cgn-tool-search input::placeholder { color: #cfcec6; opacity: 1; }
.header .cgn .cgn-kit .cgn-tool-clear { border: 1px solid #756e61; background: #373d3d; color: var(--kit-gold); }
.header .cgn .cgn-kit-scenes { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; flex: 0 0 auto; margin: 15px 0 18px; padding: 4px; border: 1px solid #59605b; border-radius: 11px; background: #31383a; }
.header .cgn .cgn-kit-scene { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #d6d3c9; text-align: center; cursor: pointer; transition: background-color 160ms ease,border-color 160ms ease,color 160ms ease; }
.header .cgn .cgn-kit-scene:hover { background: #4b514e; color: #fff8e8; }
.header .cgn .cgn-kit-scene[aria-pressed="true"],
.header .cgn .cgn-kit-scene[aria-pressed="true"]:hover { border-color: #f0dab0; background: var(--kit-gold); color: #252b2e; }
.header .cgn .cgn-kit-scene:focus-visible { outline: 2px solid var(--kit-gold); outline-offset: 2px; }
.header .cgn .cgn-kit-scene strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.header .cgn .cgn-kit-scene small { font-size: 11px; font-variant-numeric: tabular-nums; opacity: .73; white-space: nowrap; }
.header .cgn .cgn-kit-scene-short { display: none; }
.header .cgn .cgn-kit-results-head { display: flex; align-items: center; justify-content: space-between; min-height: 33px; margin-bottom: 8px; }
.header .cgn .cgn-kit-results-head strong { font-size: 14px; font-weight: 600; }
.header .cgn .cgn-kit-results-head .cgn-tool-count { margin-left: 9px; color: var(--kit-muted); font-size: 12px; }
.header .cgn .cgn-kit .cgn-tool-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: minmax(87px,auto); align-content: start; gap: 8px; min-height: 0; padding: 1px 2px; overflow: auto; scrollbar-color: #756e61 #252b2e; }
.header .cgn .cgn-kit .cgn-section,
.header .cgn .cgn-kit .cgn-section .cgn-links { display: contents; }
.header .cgn .cgn-kit .cgn-section h3 { display: none; }
.header .cgn .cgn-kit .cgn-link.cgn-feature-card { display: grid; grid-template-columns: 30px minmax(0,1fr); grid-template-rows: auto auto; align-content: center; gap: 5px 10px; min-height: 87px; padding: 12px 11px; border: 1px solid #4a514e; border-radius: 10px; background: #30373a; color: var(--kit-ink); box-shadow: none; transition-property: background-color,border-color,transform; transition-duration: 160ms; }
.header .cgn .cgn-kit .cgn-link.cgn-feature-card:hover { border-color: var(--kit-gold); background: #3b4543; box-shadow: none; transform: translateY(-1px); }
.header .cgn .cgn-kit .cgn-link.cgn-feature-card:focus-visible { outline: 2px solid var(--kit-gold); outline-offset: 2px; }
.header .cgn .cgn-kit .cgn-link.cgn-feature-card .cgn-card-title { display: contents; }
.header .cgn .cgn-kit .cgn-card-icon { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 30px; height: 30px; border-radius: 7px; background: #dfc79713; color: var(--kit-gold); }
.header .cgn .cgn-kit .cgn-card-icon svg { width: 17px; height: 17px; }
.header .cgn .cgn-kit .cgn-link-name { grid-column: 2; grid-row: 1; min-width: 0; color: var(--kit-ink); font-size: 13px; line-height: 1.35; }
.header .cgn .cgn-kit .cgn-description { grid-column: 2; grid-row: 2; color: var(--kit-muted); font-size: 11px; line-height: 1.5; }
.header .cgn .cgn-kit .cgn-card-action { display: none; }
.header .cgn .cgn-kit .cgn-tool-empty { grid-column: 1 / -1; color: var(--kit-ink); }
.header .cgn .cgn-kit .cgn-tool-empty p { color: var(--kit-muted); }
.header .cgn .cgn-kit .cgn-tool-reset { background: #6c543a; color: #fff8e8; }
.header .cgn .cgn-kit .cgn-mobile-features { display: none; }
.header .cgn .cgn-kit-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; min-height: 38px; margin-top: 8px; color: var(--kit-muted); font-size: 11px; }
.header .cgn .cgn-kit-pages { display: flex; align-items: center; gap: 8px; }
.header .cgn .cgn-kit-pages button { width: 34px; min-height: 32px; padding: 0; border: 1px solid #62675c; border-radius: 7px; color: var(--kit-gold); background: #39403e; font-size: 19px; cursor: pointer; }
.header .cgn .cgn-kit-pages button:disabled { opacity: .4; cursor: default; }
.header .cgn .cgn-kit-page { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) and (max-width: 1279px) {
  .header .cgn .cgn-tools[open] > .cgn-trigger { border-radius: 7px; }
  .header .cgn .cgn-tools .cgn-kit { position: static; width: 100%; height: min(620px,calc(100dvh - var(--cgn-top,86px) - 38px)); margin: 4px 0 10px; border-radius: 14px; }
  .header .cgn .cgn-kit .cgn-tool-main { padding: 16px; }
  .header .cgn .cgn-kit-scene { padding: 7px 5px; }
  .header .cgn .cgn-kit-scene strong { display: none; }
  .header .cgn .cgn-kit-scene-short { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }
  .header .cgn .cgn-kit-scene[data-scene="-1"] strong { display: block; font-size: 12px; }
  .header .cgn .cgn-kit-scene small { display: none; }
  .header .cgn .cgn-kit .cgn-tool-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .header .cgn.has-mobile-submenu .cgn-tools[open] > .cgn-kit { display: flex; flex-direction: column; width: 100%; height: auto; max-height: calc(var(--cgn-mobile-height,calc(100dvh - 80px)) - 12px); background: #252b2e; border: 0; border-radius: 0; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-mobile-panel-header { flex: 0 0 50px; border-bottom: 1px solid #59605b; background: #252b2e; color: #f8f4eb; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-submenu-back,
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-panel-close { color: #dfc797; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-tool-main { display: flex; flex: 1 1 auto; min-height: 0; height: auto; padding: 12px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-head { min-height: 0; margin-bottom: 9px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-head strong { font-size: 17px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-head p,
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-tools-close { display: none; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-all { min-height: 36px; padding: 7px 9px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-scenes { gap: 3px; margin: 10px 0; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-scene { min-height: 42px; padding: 6px 2px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-scene strong { display: none; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-scene-short { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-scene[data-scene="-1"] strong { display: block; font-size: 11px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-scene small { display: none; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-tool-search { min-height: 44px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-tool-search input { font-size: 16px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-results-head { margin-bottom: 5px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-tool-results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; min-height: 0; padding: 1px; overflow-y: auto; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-tool-results .cgn-link.cgn-feature-card { display: grid; grid-template-columns: 25px minmax(0,1fr); min-height: 82px; padding: 9px 7px; gap: 3px 5px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-link.cgn-feature-card::after { display: none; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-card-icon { width: 25px; height: 25px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-card-icon svg { width: 15px; height: 15px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-link-name { font-size: 12px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-description { font-size: 10px; }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-footer { margin-top: 5px; }
}
@media (max-width: 350px) {
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-tool-results { grid-template-columns: minmax(0,1fr); }
}

/* Feature introductions using the existing content imagery and interface language. */
.cgn-feature-visual { display: none; }
@media (min-width:1280px) {
  .header .cgn :is(.cgn-advice,.cgn-create,.cgn-research) .cgn-feature-intro {
    grid-template-columns:minmax(0,1fr); grid-template-rows:20px 46px 68px 212px 54px;
    min-height:446px; padding:24px 24px 20px; overflow:hidden; border-radius:15px;
  }
  .header .cgn :is(.cgn-advice,.cgn-create,.cgn-research) .cgn-feature-intro > :is(.cgn-solution-symbol,.cgn-advisor-portraits,.cgn-solution-art,.cgn-research-capabilities) { display:none; }
  .header .cgn .cgn-feature-intro .cgn-volume { grid-column:1; grid-row:1; align-self:start; font-size:12px; letter-spacing:.15em; }
  .header .cgn .cgn-feature-intro .cgn-link-name { grid-column:1; grid-row:2; align-self:center; margin:0; font-size:28px; line-height:1.3; font-weight:600; }
  .header .cgn .cgn-feature-intro .cgn-description { grid-column:1; grid-row:3; margin:4px 0 0; font-size:14px; line-height:1.7; color:#e6dfd4; text-wrap:pretty; }
  .header .cgn .cgn-feature-intro .cgn-feature-visual { grid-column:1; grid-row:4; position:relative; display:block; width:calc(100% + 48px); height:212px; margin:0 -24px; overflow:hidden; }
  .header .cgn .cgn-feature-visual img { display:block; width:100%; max-width:none; height:100%; object-fit:cover; transition:transform 220ms cubic-bezier(.2,0,0,1); }
  .header .cgn .cgn-feature-intro:hover .cgn-feature-visual img { transform:scale(1.035); }
  .header .cgn .cgn-scene-knowledge img { object-fit:contain; object-position:center; }
  .header .cgn .cgn-scene-advisors { background:radial-gradient(ellipse at 50% 70%,#694836 0%,transparent 70%); }
  .header .cgn .cgn-scene-advisors img { object-fit:contain; object-position:center bottom; width:calc(100% - 8px); margin:0 auto; mask-image:linear-gradient(to bottom,#000 85%,transparent); }
  .header .cgn :is(.cgn-scene-knowledge,.cgn-scene-compass) { background:none; mask-image:none; padding:7px 14px 5px; box-sizing:border-box; }
  .header .cgn .cgn-scene-compass img { object-position:center; object-fit:contain; }
  .header .cgn .cgn-feature-intro .cgn-solution-footer { grid-column:1; grid-row:5; padding-top:12px; align-self:end; }
  .header .cgn .cgn-feature-intro .cgn-solution-action { min-height:42px; border:1px solid rgba(231,208,163,.45); background:rgba(231,208,163,.11); }
  .header .cgn .cgn-feature-intro:focus-visible { outline:3px solid #dfc797; outline-offset:2px; }

}
@media (prefers-reduced-motion:reduce) {
  .header .cgn .cgn-feature-visual img { transition:none; }
  .header .cgn .cgn-feature-intro:hover .cgn-feature-visual img { transform:none; }
}

@media (min-width:1280px) {
 .header .cgn :is(.cgn-scene-atlas,.cgn-scene-reports,.cgn-scene-workbench,.cgn-scene-templates) { background:none; mask-image:none; padding:7px 14px 5px; box-sizing:border-box; }
 .header .cgn :is(.cgn-scene-atlas,.cgn-scene-reports,.cgn-scene-workbench,.cgn-scene-templates) img { object-fit:contain; object-position:center; }
}

/* Mobile kit: explicit title row, full-width copy and browser text inflation control. */
@media (max-width: 767px) {
  .header .cgn .cgn-tools .cgn-kit {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-tool-results {
    grid-auto-rows: minmax(min-content, auto);
    align-items: stretch;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-tool-results .cgn-link.cgn-feature-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    align-content: normal;
    gap: 7px;
    min-width: 0;
    min-height: 104px;
    height: auto;
    padding: 10px;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-link.cgn-feature-card .cgn-card-title {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-card-icon {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 24px;
    height: 24px;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-link-name {
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-description {
    display: -webkit-box;
    flex: 0 0 auto;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
    text-wrap: pretty;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-scene {
    min-height: 44px;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-scene-short,
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-scene[data-scene="-1"] strong {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-all {
    min-height: 44px;
  }
  .header .cgn.has-mobile-submenu .cgn-tools .cgn-kit-pages button {
    width: 44px;
    min-height: 44px;
  }
}
