/* ==========================================================================
   AI-skills message band (owner 2026-12-01: "before you lose your QA job, upgrade yourself to AI skills for QA.
   This is a very important message if someone comes onto our website").
   Every page except home (the home hero carries the message), directly under Latest News (includes/v2/header.php; text in includes/config.php KT_AI_ALERT_*).
   Deep navy to royal blue with an orange accent, white text (AA on every stop of the gradient), the orange
   primary button and a light secondary button. Compact (owner: no wasted space): one row on wide screens.
   Loaded after v2.css and v2-compact.css, in its own file so branches that edit those merge cleanly.
   Hide for 7 days: assets/js/v2-alert.js sets html.kt-alert-off before the page draws (no layout jump).
   ========================================================================== */
.kt-alert {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "ico text acts x"; align-items: center; gap: 6px 14px;
  margin-top: 6px; padding: 7px 10px 7px 16px; border-radius: var(--kt-r-sm); overflow: hidden;
  background: linear-gradient(100deg, #061c4f 0%, #0a3a9e 52%, #0b55c4 100%);
  box-shadow: inset 5px 0 0 var(--kt-orange-2), 3px 5px 14px rgba(6, 28, 79, .28);
  color: #fff;
}
/* light circuit-node mark from the logo, decorative only */
.kt-alert::after {
  content: ""; position: absolute; right: 150px; bottom: -6px; width: 92px; height: 60px; opacity: .14; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 30' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M4 28 14 14M14 28l14-16M26 28l10-12'/%3E%3Ccircle cx='15.5' cy='11.5' r='3'/%3E%3Ccircle cx='30' cy='9.5' r='3'/%3E%3Ccircle cx='38' cy='13.5' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.kt-alert > * { position: relative; z-index: 1; }
html.kt-alert-off .kt-alert { display: none; }

.kt-alert-ico {
  grid-area: ico; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(180deg, var(--kt-orange-1), var(--kt-orange-2)); color: var(--kt-ink);
  box-shadow: 0 0 0 4px rgba(253, 122, 2, .22);
}
.kt-alert-ico .kt-i { width: 22px; height: 22px; stroke-width: 2.3; }

.kt-alert-text { grid-area: text; min-width: 0; }
.kt-alert-main { margin: 0; font: 400 17px/1.22 var(--kt-head); text-wrap: balance; }
.kt-alert-main strong { font-weight: 400; color: #fff; }
.kt-alert-sub { margin: 2px 0 0; color: #e3eeff; font-size: 14px; line-height: 1.3; }

.kt-alert-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.kt .kt-alert-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 15px;
  border-radius: 999px; font-weight: 800; font-size: 14px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: box-shadow .2s var(--kt-ease), transform .2s var(--kt-ease);
}
.kt .kt-alert-btn .kt-i { width: 17px; height: 17px; stroke-width: 2.4; }
.kt .kt-alert-btn:hover { transform: translateY(-1px); }
.kt .kt-alert-btn:active { transform: none; }
/* primary: the site's orange button (dark navy text on orange, AA) */
.kt .kt-alert-go, .kt .kt-alert-go:hover {
  border: 1px solid var(--kt-orange-edge); background: linear-gradient(180deg, var(--kt-orange-1), var(--kt-orange-2));
  box-shadow: 0 3px 10px rgba(253, 122, 2, .35); color: var(--kt-ink);
}
/* secondary: light button (navy text on near-white) */
.kt .kt-alert-seat, .kt .kt-alert-seat:hover {
  border: 1px solid #cfe3f7; background: linear-gradient(180deg, #fff, #e6f3fc);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18); color: var(--kt-navy);
}
.kt-alert-short { display: none; }

/* close: shown only when assets/js/v2-alert.js runs (without JavaScript it could not remember the choice) */
.kt .kt-alert-x {
  grid-area: x; display: none; place-items: center; width: 34px; height: 34px; margin: 0; padding: 0;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff;
}
html.kt-alert-js .kt .kt-alert-x, html.kt-alert-js .kt-alert-x { display: grid; }
.kt .kt-alert-x:hover { background: rgba(255, 255, 255, .2); }
.kt .kt-alert-x .kt-i { width: 18px; height: 18px; stroke-width: 2.4; }

/* keyboard focus on the dark band: a light orange ring (the site ring is dark navy, invisible here) */
.kt .kt-alert a:focus-visible, .kt .kt-alert button:focus-visible { outline: 3px solid #ffc27a; outline-offset: 2px; box-shadow: 0 0 0 6px #061c4f; }

/* home hero (index.php): the owner's message is the hero heading; the band itself is not shown on the home page */
.kt .kt-hero-copy .kt-hero-sub { margin: 0 0 14px; color: var(--kt-text); font-weight: 600; font-size: 16.5px; line-height: 1.4; max-width: 42ch; }

/* wide screens: one row, the main line on one line (button icons dropped to make room; the labels say it all) */
@media (min-width: 1100px) {
  .kt-alert { column-gap: 12px; padding-top: 9px; padding-bottom: 9px; }
  .kt-alert-main { font-size: 16.5px; }
  .kt .kt-alert-btn .kt-i { display: none; }
  .kt .kt-alert-btn { padding: 0 14px; font-size: 13.5px; }
  .kt-alert-acts { gap: 6px; }
}
@media (min-width: 1100px) and (max-width: 1199px) {
  .kt-alert { column-gap: 10px; padding-left: 14px; }
  .kt-alert-ico { width: 34px; height: 34px; }
  .kt-alert-main { font-size: 15px; }
  .kt-alert-sub { font-size: 13px; }
  .kt .kt-alert-btn { padding: 0 11px; font-size: 13px; }
}

/* ---------- medium screens: buttons on their own row under the text ---------- */
@media (max-width: 1099px) {
  .kt-alert { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico text x" "ico acts x"; align-items: start; row-gap: 8px; padding: 9px 10px 10px 16px; }
  .kt-alert-ico { margin-top: 2px; }
  .kt .kt-alert-btn { min-height: 40px; }
  .kt .kt-alert-x { width: 40px; height: 40px; }
  .kt-alert::after { right: 60px; }
}
/* ---------- phones ---------- */
@media (max-width: 639px) {
  .kt-alert { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico text x" "acts acts acts"; column-gap: 10px; padding: 10px 8px 10px 14px; }
  .kt-alert-ico { width: 32px; height: 32px; box-shadow: 0 0 0 3px rgba(253, 122, 2, .22); }
  .kt-alert-ico .kt-i { width: 19px; height: 19px; }
  .kt-alert-main { font-size: 16.5px; }
  .kt-alert-sub { font-size: 13.5px; }
  .kt-alert-acts { gap: 8px; }
  /* two buttons side by side (a long label wraps inside its button) instead of two stacked rows */
  .kt .kt-alert-btn { flex: 1 1 130px; min-height: 44px; padding: 4px 10px; font-size: 13.5px; white-space: normal; text-align: center; }
  .kt .kt-alert-btn .kt-i { display: none; }
  .kt .kt-alert-x { width: 40px; height: 40px; margin-top: -2px; }
  .kt-alert::after { display: none; }
}
@media (max-width: 479px) {
  .kt-alert-full { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kt-alert-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .kt .kt-alert-btn { transition: none; }
  .kt .kt-alert-btn:hover { transform: none; }
}
/* print: the band is a website message, not page content */
@media print { .kt-alert { display: none; } }
