/* Page CSS for porttech.co: only what sits inside a visual or a form panel and the kit lacks
   (tasteskill: "page CSS only where a reference says page CSS"). */

/* the consultation form's panel, one step off the ground, 48px in */
.form--panel { background: var(--surface); padding: var(--s-7, 48px); border: 1px solid var(--line); }
@media (max-width: 639px) { .form--panel { padding: var(--s-5); } }
.form textarea { min-height: 128px; resize: vertical; }

/* honeypot field: off screen for people, still in the form for bots */
.field--trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* one panel height for the feature group; the diagram frames */
#build .panel { --p-h: 300px; }
@media (max-width: 639px) { #build .panel { --p-h: 220px; } }
.panel--diagram { --p-h: 460px; height: var(--p-h); }
@media (max-width: 639px) { .panel--diagram { --p-h: 340px; } }
.work__more { margin-top: var(--s-5); }

/* PortTech GRC's evidence list (inside the GRC frame) */
.grc-table { border: 1px solid var(--line); background: var(--surface); padding: 0; font-size: 15px; }
.grc-table__bar { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; }
.grc-table ul { list-style: none; margin: 0; padding: 0; }
.grc-table li { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.grc-table li:last-child { border-bottom: 0; }
.grc-table li span { color: var(--muted); }
.grc-table em { font-style: normal; font-family: var(--font-mono); font-size: 13px; padding: 2px 8px; border: 1px solid var(--line); }
.grc-table em.is-ok { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 639px) { .grc-table li { grid-template-columns: 1fr auto; } .grc-table li span { display: none; } }

/* Console: a readout on a lit panel (components/site/Console.tsx) */
.console { --p-h: 420px; height: var(--p-h); }
.hero .console, .frame--fill > .console { height: 100%; min-height: 360px; }
@media (max-width: 639px) { .console { --p-h: 300px; } }
.console__ui { width: 100%; }
.console__rows { list-style: none; margin: 0; padding: 0; }
.console__rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 10px 14px; border-top: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); font-size: 13px; line-height: 18px; }
.console__rows b { font-weight: 500; }
.console__rows span { grid-column: 1; color: color-mix(in oklab, var(--ink) 62%, transparent); font-size: 12px; }
.console__rows em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-family: var(--font-mono); font-size: 12px; padding: 2px 8px; border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent); }
.console__rows li.is-on { box-shadow: inset 2px 0 0 var(--accent); }
.console__rows li.is-on em { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.card > .console--card { --p-h: 260px; }

/* the hero's product window (rules from the kit's layout demo.css, which real pages do not load) */
.d-win { background: #fff; color: #16181a; border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text);
         box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 24px 60px -28px rgb(0 0 0 / .45); text-align: left; }
.d-win--dark { background: #17191c; color: #eceef0; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 70px -30px rgb(0 0 0 / .8); }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; color: #5d6268; }
.d-win--dark .d-win__bar { border-color: rgb(255 255 255 / .07); color: #9aa0a6; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdfe2; }
.d-win--dark .d-win__dots i { background: #3a3e43; }
.d-win__body { display: grid; grid-template-columns: 160px 1fr; min-height: 420px; }
.d-side { padding: 14px 10px; border-right: 1px solid rgb(0 0 0 / .07); display: grid; align-content: start; gap: 2px; font-size: 13px; color: #4d5257; }
.d-win--dark .d-side { border-color: rgb(255 255 255 / .07); color: #aeb3b8; }
.d-side b { font-weight: 500; color: #16181a; } .d-win--dark .d-side b { color: #eceef0; }
.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(0 0 0 / .05); color: #16181a; font-weight: 500; }
.d-win--dark .d-side > span.is-on { background: rgb(255 255 255 / .07); color: #fff; }
.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: #8a8f94; height: 26px; margin-top: 8px; }
.d-main { padding: 16px 18px; display: grid; align-content: start; gap: 12px; min-width: 0; }
.d-main__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-main__head h4 { font: 600 16px/1.2 var(--font-text); letter-spacing: -0.01em; margin: 0; color: inherit; }
.d-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 7px; background: #16181a; color: #fff; font-size: 13px; font-weight: 500; }
.d-btn--ghost { background: rgb(0 0 0 / .05); color: #16181a; }
.d-tabs { display: flex; gap: 4px; font-size: 13px; } .d-tabs span { padding: 4px 10px; border-radius: 99px; color: #6b7076; } .d-tabs span.is-on { background: rgb(0 0 0 / .06); color: #16181a; font-weight: 500; }
.d-rows { display: grid; border-top: 1px solid rgb(0 0 0 / .07); }
.d-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 56px 96px 84px; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; }
.d-row img, .d-row .d-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #eef0ee; }
.d-row b { display: block; font-weight: 500; color: #16181a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-row small { color: #7b8086; font-size: 13px; }
.d-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.d-row .when { color: #7b8086; font-size: 13px; text-align: right; white-space: nowrap; }
@media (max-width: 639px) { .d-win__body { grid-template-columns: 1fr; } .d-side { display: none; } .d-row { grid-template-columns: 36px minmax(0, 1fr) 96px 84px; } .d-row .num { display: none; } }
.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: #e7f4ec; color: #17673f; white-space: nowrap; }
.d-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-chip--low { background: #fdf0dc; color: #8a5300; }
.d-chip--out { background: #fbe6e3; color: #a3271b; }
.d-card { background: #fff; color: #16181a; border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); text-align: left;
          box-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 18px 44px -20px rgb(0 0 0 / .45); }
.d-card h5 { margin: 0 0 4px; font: 600 14px/1.3 var(--font-text); }
.d-card p { margin: 0; color: #5d6268; font-size: 13px; }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-bar { height: 6px; border-radius: 99px; background: #eceeed; overflow: hidden; margin-top: 10px; }
.d-bar > i { display: block; height: 100%; width: var(--v, 40%); border-radius: inherit; background: var(--d-accent, #1f8a5b); }
.d-spark { display: block; width: 100%; height: 56px; margin-top: 8px; }
.d-stat { font: 600 28px/1 var(--font-text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* chat */
.d-chat { display: grid; gap: 10px; align-content: start; padding: 18px; font-size: 14px; }
.d-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: rgb(255 255 255 / .07); line-height: 1.45; }
.d-msg--me { justify-self: end; background: #f2f2f0; color: #121314; border-bottom-right-radius: 6px; }
.d-msg--bot { border-bottom-left-radius: 6px; }
.d-msg small { display: block; margin-top: 4px; font-size: 13px; opacity: .6; }
.d-tool { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9aa0a6; }
.d-tool::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
.d-input { margin: auto 18px 18px; height: 44px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .1); display: flex; align-items: center; padding: 0 14px; color: #7d8389; font-size: 13.5px; }

/* fixes inside visuals */
.rows__name small { display: block; margin-top: 2px; font-weight: 400; font-size: 14px; color: var(--muted); }
.grc-table { display: block; }
.d-win .inbox .t i { color: #0f0f0f; }

/* the hero window's inner layout (from the kit's centred-hero recipe) */
.hero__window { background:
  radial-gradient(120% 60% at 70% 118%, #6f7f3a 0 40%, transparent 41%),
  radial-gradient(90% 50% at 10% 108%, #57703f 0 42%, transparent 43%),
  radial-gradient(80% 40% at 60% 92%, #9fb2c4 0 40%, transparent 41%),
  linear-gradient(#5f93cc, #a9c7e4 70%, #c8d6dd); }
.d-win--dark .d-win__body { grid-template-columns: 250px 1fr; min-height: 420px; }
.d-win--dark .d-win__bar b { color: #eceef0; font-weight: 500; } .d-win--dark .d-win__bar .sp { flex: 1; }
/* the exchange stands in the window's top 260px: one-line question, the tool line, a two-line answer, its actions */
.hero__window .d-chat { padding: 14px 18px; gap: 8px; }
.hero__window .d-msg--me small { display: none; }
.hero__window .d-msg--bot { max-width: 86%; }
.hero__window .d-msg--bot small { display: inline; margin: 0 0 0 8px; white-space: nowrap; }
@media (max-width: 639px) { .hero__window .d-win__bar .sp ~ span { display: none; } }
.inbox { border-right: 1px solid rgb(255 255 255 / .07); padding: 10px; display: grid; align-content: start; gap: 2px; }
.inbox .q { height: 34px; margin-bottom: 6px; border-radius: 4px; background: rgb(255 255 255 / .06); display: flex; align-items: center; padding: 0 10px; color: #7d8389; font-size: 13px; }
.inbox .t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 9px 8px; border-radius: 4px; font-size: 13px; }
.inbox .t.is-on { background: rgb(255 255 255 / .07); }
.inbox .t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--font-text); font-style: normal; color: #0c0d0f; }
.inbox .t b { font-weight: 500; color: #eceef0; } .inbox .t time { color: #7d8389; font-size: 13px; }
.inbox .t span { grid-column: 2 / -1; color: #8d9399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo { display: grid; min-width: 0; align-content: start; }
.d-msg--bot { background: #22262b; color: #e9ecee; }
.acts { display: flex; gap: 8px; } .acts span { height: 30px; padding: 0 12px; border-radius: 4px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: #f2f2f0; color: #0c0d0f; }
.acts span + span { background: rgb(255 255 255 / .08); color: #e9ecee; }
/* the region labels sit straight on the lit (light) ground: dark ink there, 4.5:1 or more */
.panel--diagram .dg { --dg-muted: #2b3138; }

/* Platforms: each group a frame with its real icons on light tiles (integrations big grid) */
.tools-group { display: block; padding: var(--s-7); }
.tools-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-6); }
.tools-group__head p { margin: 0; }
.tools-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s-6) var(--s-5); }
.tools-grid li { display: grid; justify-items: start; gap: var(--s-3); }
.tools-grid .ic-tile { width: 72px; height: 72px; display: grid; place-items: center; background: #fff; border-radius: var(--r-md); }
@media (max-width: 639px) { .tools-group { padding: var(--s-5); } .tools-grid { grid-template-columns: repeat(2, 1fr); } .tools-grid .ic-tile { width: 64px; height: 64px; } }
.tools-group + .tools-group { margin-top: var(--s-5); }
.compliance__note { margin-top: var(--s-5); max-width: 46ch; }
.console--tall { --p-h: 440px; }

/* the PortTech logo: the refreshed wave mark and the wordmark in the display face */
.nav__logo, .footer__mark { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { height: 22px; width: auto; flex: none; }
.logo-word { font: 500 20px/1 var(--font-display); letter-spacing: -0.02em; }
.logo-word b { font-weight: 500; color: var(--brand-blue); }
.footer__mark .logo-mark { height: 36px; }
.footer__mark .logo-word { font-size: 40px; }
@media (max-width: 639px) { .footer__mark .logo-mark { height: 26px; } .footer__mark .logo-word { font-size: 28px; } }
/* on the white inverse ground the mark keeps both blues; the wordmark follows the ink */
.ground-inverse .logo-word b { color: var(--brand-navy); }
/* on the dark grounds the navy half is lifted so the mark reads (3:1 or more); true navy on white */
:root { --brand-navy-on-dark: #1f74ad; }
.nav .logo-mark, .footer--dark .logo-mark { --brand-navy: var(--brand-navy-on-dark); }

/* the console's own lit ground (brand blues, drawn in CSS) where the page's one shader is not used */
.console--lit { background:
  radial-gradient(90% 70% at var(--lit-x, 30%) 0%, #9fd2f2 0%, transparent 60%),
  radial-gradient(80% 80% at 100% 100%, #1f74ad 0%, transparent 65%),
  linear-gradient(160deg, #cfe6f6, #5f9cc8); }
.console--short { --p-h: 260px; margin-top: var(--s-6); }

/* the footer sits on a dark ground even though it carries .ground-inverse: keep the blue "Tech" */
.footer--dark .logo-word b { color: var(--brand-blue); }

/* mock buttons inside the hero window take the page's own pair (one primary, one secondary look) */
.hero__window .acts span { background: var(--action); color: var(--action-ink); }
.hero__window .acts span + span { background: transparent; color: #e9ecee; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }

/* the pause disc inside the hero window: its focus ring drawn inside the clipped frame */
.hero__window .loop-pause:focus-visible { outline-offset: -4px; }

/* a narrow phone: the bar holds the logo and the menu; the main action is the hero's and the sheet's */
@media (max-width: 419px) { .nav .nav__actions { display: none; } }
.hero__window .loop-pause:focus-visible { outline: 2px solid #ffffff; box-shadow: 0 0 0 5px #070b12; }
@media (max-width: 639px) {
  .hero__window .d-win--dark .d-win__body { grid-template-columns: minmax(0, 1fr); }
  .hero__window .inbox { display: none; }
  .hero__window .d-msg { max-width: 100%; }
}
@media (max-width: 419px) { .nav.nav--centre .nav__bar > .nav__actions { display: none !important; } }
@media (max-width: 419px) { .nav.nav--centre .nav__toggle { margin-left: auto; } }
@media (max-width: 639px) { .nav.nav--centre .nav__bar > .nav__toggle { grid-column: 3; justify-self: end; } #build .panel { --p-h: 196px; } }
#process .console { --p-h: 540px; }
@media (max-width: 639px) { .nav.nav--centre .nav__bar > .nav__toggle { margin-left: auto !important; } }

/* case cards: the facts as a small definition grid */
.case__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.case__facts dt { font-size: 13px; color: var(--muted); }
.case__facts dd { margin: 4px 0 0; font-weight: 500; }
.ir__console { margin-top: var(--s-6); }
.rows__head { font: 500 var(--t-card, 20px)/1.3 var(--font-display); margin: var(--s-6) 0 var(--s-3); }

/* Sections size to their content (client request: no dead space). The kit's "one section per screen"
   heights are switched off for every section except the hero and the scroll moments. */
main > :is(section, .section):not(.hero, .section--hero, [data-moment]),
footer.closing {
  height: auto !important; min-height: 0 !important;
  padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(64px, 9vw, 128px);
}
main > :is(section, .section):not(.hero, .section--hero, [data-moment]) > :is(.wrap, .container),
footer.closing > .wrap { height: auto !important; }
main > :is(section, .section).g2:not([data-moment]) > :is(.wrap, .container) {
  display: flex !important; flex-direction: column; row-gap: var(--s-6) !important;
}
main > :is(section, .section).g2:not([data-moment]) > :is(.wrap, .container) > * { margin-block: 0 !important; }
main > :is(section, .section) > .wrap > .fill, .group > .fill { flex: none; }
/* frames that used to stretch to the screen keep a sensible height of their own */
.frame--fill { height: auto; min-height: 420px; }
.frame--fill > .console { height: 100%; min-height: 420px; }
/* the closing call and the links sit together, not a screen apart */
footer.closing > .wrap { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); }
/* the statement moment: a generous band, not a whole empty screen */
#verify { min-height: 0; }

/* topglow behind the homepage hero (kit ground), in the brand blues: blue light under the nav,
   a navy pool to the right, the page lifting out of it */
.hero.bg-topglow { --g-hue: #00a4e0; --g-hue-b: #1f74ad; --g-kp: 1.25; }
