/* ACE Reventic / EngIntelligence: page CSS shared by every page.
   Only what sits inside a visual and the kit lacks (references/system.md), plus the client's logo size
   and one --p-h per card group. Tokens, grid, type, buttons, nav and footer come from assets/system.css. */

/* the client's logo (a 6:1 PNG): taller than the kit's 24px mark so the wordmark reads */
.nav__logo img { height: 34px; width: auto; }
.footer .nav__logo img { height: 40px; }
@media (max-width: 639px) { .nav__logo img { height: 24px; } }
/* under 400px the bar holds the logo and the menu only; the hero's own button carries the main action there */
@media (max-width: 399px) { .nav__actions > .btn { display: none; } }

/* ---------- the hero's art: the review window on a lit ground (sky, from the logo's navy and teal) ---------- */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 70%, var(--p-accent)), transparent 70%),
    var(--ground-bg); }
.hero__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 316px; z-index: 2; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 290px; } }
.hero__proof { font-size: var(--t-small); color: var(--ink); max-width: 46ch; }

/* the demo window's look (kit: assets/layout/demo.css), in the brand's ink */
.d-win { background: #fff; color: #0b1d36; border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(1 34 78 / .08), 0 30px 70px -30px rgb(1 34 78 / .45); }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(1 34 78 / .08); font-size: 13px; color: #4f6889; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dce3ea; }
.d-win__body { display: grid; grid-template-columns: 168px 1fr; min-height: 440px; }
.d-side { padding: 14px 10px; border-right: 1px solid rgb(1 34 78 / .08); display: grid; align-content: start; gap: 2px; font-size: 13px; color: #3b5576; }
.d-side > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 7px; }
.d-side > span.is-on { background: rgb(1 34 78 / .06); color: #01224e; font-weight: 500; }
.d-side > span i { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: .3; flex: none; }
.d-side .d-side__label { font-size: 13px; color: #6a7f99; height: 26px; margin-top: 8px; }
.d-main { padding: 16px 18px; display: grid; align-content: start; gap: 12px; min-width: 0; padding-right: var(--ly-cut-room, 48px); }
.d-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-main__head h4 { font: 500 16px/1.2 var(--font-text); margin: 0; color: #01224e; }
.d-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 7px; background: #01224e; color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.d-tabs { display: flex; gap: 4px; font-size: 13px; flex-wrap: wrap; } .d-tabs span { padding: 4px 10px; border-radius: 99px; color: #4f6889; }
.d-tabs span.is-on { background: rgb(1 34 78 / .07); color: #01224e; font-weight: 500; }
.d-rows { display: grid; border-top: 1px solid rgb(1 34 78 / .08); }
.d-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 40px 104px; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid rgb(1 34 78 / .08); font-size: 13px; }
.d-row b { display: block; font-weight: 500; color: #01224e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row small { color: #4f6889; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row .num { text-align: right; font-variant-numeric: tabular-nums; color: #3b5576; }
.d-tag { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: #e8eef3; color: #01224e; font: 500 12px/1 var(--font-mono); }
.d-chip { justify-self: end; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #e3f2f3; color: #005f69; white-space: nowrap; }
.d-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-chip--warn { background: #fbeee5; color: #9a4214; }
.d-chip--info { background: #e8eef3; color: #2c4466; }
.d-card { background: #fff; color: #0b1d36; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text);
  box-shadow: 0 0 0 1px rgb(1 34 78 / .08), 0 18px 40px -20px rgb(1 34 78 / .5); }
.d-card h5 { margin: 0 0 4px; font: 500 14px/1.3 var(--font-text); color: #01224e; }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #2c4466; border-top: 1px solid rgb(1 34 78 / .07); }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e3f2f3; color: #005f69; font-style: normal; font-size: 13px; font-weight: 500; }
.d-note__line i.warn { background: #fbeee5; color: #9a4214; }
.d-note__line b { font-weight: 500; color: #01224e; }
@media (min-width: 1024px) and (max-width: 1279px) { .hero__art .d-win__body { grid-template-columns: 1fr; } .hero__art .d-side { display: none; } }
@media (max-width: 639px) { .d-win__body { grid-template-columns: 1fr; } .d-side { display: none; } .d-row { grid-template-columns: 36px minmax(0, 1fr) 104px; } .d-row .num { display: none; } }

/* ---------- the app frame (sections-library.md, app-frame: the recipe's page CSS) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
/* the open comment: the page on the left, its note in the 220px kept clear at the right, never over the text */
.app > .app__pane--open > .ui-doc { width: 100%; max-width: none; padding: 28px 236px 0 32px; }
.app > .app__pane--open .ui-doc__note { right: 16px; top: 28px; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .app > .app__pane--open > .ui-doc { padding: 16px 40px 0 16px; }
  .app > .app__pane--open .ui-doc__note { right: 8px; }
}

/* ---------- small pictures inside card panels (benefits, steps): live HTML, true size ---------- */
.mini { position: absolute; left: 24px; right: 24px; top: 32px; background: #fff; color: #0b1d36; border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(1 34 78 / .08), 0 18px 40px -22px rgb(1 34 78 / .45); padding: 14px 16px; font: 400 13px/1.45 var(--font-text); }
.mini__head { display: flex; justify-content: space-between; gap: 8px; font-weight: 500; color: #01224e; padding-bottom: 8px; }
.mini__head span:last-child { color: #4f6889; font-weight: 400; }
.mini__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 7px 0; border-top: 1px solid rgb(1 34 78 / .07); align-items: center; }
.mini__row b { font-weight: 500; color: #01224e; }
.mini__row em { font-style: normal; color: #4f6889; }
.mini__mono { font: 400 13px/1.6 var(--font-mono); color: #01224e; }
.mini__mono .mini__k { color: #4f6889; }
.mini__ok { color: #005f69; font-weight: 500; }
.mini__no { color: #9a4214; font-weight: 500; }
.mini__actions { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid rgb(1 34 78 / .07); }
.mini__actions span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 7px; background: rgb(1 34 78 / .06); color: #01224e; font-weight: 500; }
.mini__actions span.is-on { background: #01224e; color: #fff; }
@media (max-width: 639px) { .mini { left: 16px; right: 16px; top: 20px; } }

/* ---------- the photograph band of a section (a frame on the .wrap lines, one ratio) ---------- */
.band-photo { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.band-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the name across the footer's .wrap: 15 letters fill it at 14.1vw; its descenders need a full line */
/* it is sized by the screen's height too, so a short laptop screen never pushes it into the links under it;
   and the footer grows rather than lets anything overlap */
.close__word { font-size: clamp(48px, min(14.1vw, 20svh), 208px); line-height: 1.1; overflow: visible; flex: none; }
@media (max-width: 639px) { .close__word { font-size: min(14.6vw, 9svh); } }
footer.closing { height: auto; min-height: calc(var(--h, 1) * 100svh); }
footer.closing > .wrap { height: auto; min-height: 100%; }

/* headings break between words, never inside one ("engi-neering") */
h1, h2 { hyphens: manual; -webkit-hyphens: manual; }

/* ---------- the comment workbook as the engineer opens it: a spreadsheet window (mock data only) ---------- */
.xl { background: #fff; color: #1d2b3a; border-radius: 12px; overflow: hidden; font: 400 13px/1.35 var(--font-text);
  box-shadow: 0 0 0 1px rgb(1 34 78 / .1), 0 30px 70px -30px rgb(1 34 78 / .45); display: flex; flex-direction: column; }
.xl__bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: #f3f6f8; border-bottom: 1px solid #dfe5ea; color: #3b5576; white-space: nowrap; }
.xl__bar img { width: 18px; height: 18px; flex: none; }
.xl__bar b { font-weight: 500; color: #01224e; }
.xl__bar .xl__sp { flex: 1; }
.xl__bar .xl__tag { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #e3eaf0; color: #3b5576; }
.xl__fx { display: grid; grid-template-columns: 56px 26px minmax(0, 1fr); align-items: center; height: 30px; border-bottom: 1px solid #dfe5ea; font-size: 13px; }
.xl__fx > span { padding: 0 10px; height: 100%; display: flex; align-items: center; border-right: 1px solid #e6ebef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl__fx .xl__fxi { font-style: italic; color: #6a7f99; justify-content: center; padding: 0; }
.xl__fx > span:last-child { border-right: 0; color: #1d2b3a; }
.xl__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.xl__table th, .xl__table td { border: 1px solid #e3e8ed; padding: 0 8px; height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.xl__table thead th { background: #f3f6f8; color: #6a7f99; font-weight: 400; text-align: center; height: 22px; font-size: 12px; }
.xl__table .xl__n { width: 30px; background: #f3f6f8; color: #6a7f99; text-align: center; padding: 0; font-size: 12px; }
.xl__table tr.xl__head td { font-weight: 500; color: #01224e; background: #e8eef3; }
.xl__table tr.is-sel td { background: #eef7f8; }
.xl__table tr.is-sel td.is-cell { box-shadow: inset 0 0 0 2px #007a87; background: #fff; }
.xl__table tr.is-sel .xl__n { background: #d5e9ec; color: #01224e; font-weight: 500; }
.xl__v { display: inline-block; padding: 1px 6px; border-radius: 3px; font-weight: 500; font-size: 12px; }
.xl__v--nc { background: #fbe3d4; color: #8f3a0f; }
.xl__v--ob { background: #e3ecf7; color: #234a7a; }
.xl__v--nv { background: #eceff2; color: #3c4a59; }
.xl__v--ok { background: #dcefee; color: #0b5d5f; }
.xl__tabs { display: flex; gap: 2px; padding: 0 10px; height: 30px; align-items: stretch; background: #f3f6f8; border-top: 1px solid #dfe5ea; font-size: 12px; color: #4f6889; margin-top: auto; }
.xl__tabs span { display: flex; align-items: center; padding: 0 12px; white-space: nowrap; }
.xl__tabs span.is-on { background: #fff; color: #007a87; font-weight: 500; box-shadow: inset 0 -2px 0 #007a87; }

/* the open row's long cells (Inputs, Calculation, Variable definitions, Assumptions), as a wrapped cell reads:
   the doc fragment's marks and note keep their motion, the page is restyled as one tall spreadsheet cell */
.xl-cell .ui-doc__page { border-radius: 0; box-shadow: none; border: 1px solid #e3e8ed; border-top: 0; background: #fff; padding: 16px 18px 28px; }
.xl-cell .ui-doc__label { display: inline-flex; gap: 8px; align-items: center; font: 500 12px/1 var(--font-mono); color: #007a87; background: #eef7f8; padding: 5px 8px; border-radius: 3px; }
.xl-cell .ui-doc__title { font-size: 15px; margin: 10px 0 10px; }
.xl-cell .ui-doc__text { font: 400 12.5px/1.65 var(--font-mono); color: #1d2b3a; }
.xl-cell .ui-doc__text b { font-weight: 500; color: #01224e; font-family: var(--font-text); font-size: 13px; }
.xl-cell .ui-doc__text + .ui-doc__text { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e3e8ed; }
.xl-cell__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f3f6f8; border: 1px solid #e3e8ed; font-size: 12px; color: #6a7f99; }
.xl-cell__cols span { padding: 4px 10px; border-right: 1px solid #e3e8ed; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-cell__cols span:last-child { border-right: 0; }
.xl-cell__cols span.is-on { background: #d5e9ec; color: #01224e; font-weight: 500; }
@media (min-width: 1024px) { .hero__art > .ly-piece--main.xl { height: calc(100% - var(--s-8) - var(--s-8)); } }
.hero__art .xl__body { padding-right: var(--ly-cut-room, 48px); }
.xl--pane { height: 100%; border-radius: 0; box-shadow: none; }
.app > .app__pane--open > .ui-doc.xl-cell { padding-top: 24px; }
.app > .app__pane--open > .ui-doc.xl-cell .ui-doc__note { top: 64px; }
/* a narrow hero frame (1024 to 1279, tablets and phones) shows ID, verdict and severity, so each reads whole */
@media (max-width: 1279px) {
  .hero__art .xl__table :is(col, th, td):is(:nth-child(3), :nth-child(4)) { display: none; }
  .hero__art .xl__table col:nth-child(5) { width: auto; }
}
@media (max-width: 639px) {
  .xl-cell__cols { grid-template-columns: minmax(0, 1fr); }
  .xl-cell__cols span:not(.is-on) { display: none; }
}
