/* A complete field of twelve actionable principles, with the action leading visually. */
.knowledge-section { scroll-margin-top: -24px; padding-block: clamp(24px, 3.6vh, 40px); text-align: center; }
.knowledge-section .knowledge-container { width: min(calc(100% - 80px), 1560px); }
.knowledge-heading { margin-bottom: 18px; }
.knowledge-heading h2 { font-family: var(--display); font-size: clamp(32px, 2.6vw, 44px); font-weight: 400; font-synthesis: none; line-height: 1.35; letter-spacing: .025em; }
.knowledge-heading h2 > span { color: var(--cyan); }
.knowledge-subtitle { margin-top: 6px; font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.65; color: #e0efff; }
.knowledge-total { color: var(--cyan); }
.knowledge-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 900px);
  margin: 0 auto 16px;
  padding: 3px;
  border: 1px solid #7bafd966;
  border-radius: 12px;
  background: #001b34a6;
}
.knowledge-tab {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e0efff;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  transition: color .18s, background .18s, box-shadow .18s;
}
.knowledge-tab:hover { background: #80bfff18; color: white; }
.knowledge-tab[aria-selected='true'] {
  background: #f1f9ff;
  color: #064a93;
  box-shadow: 0 1px 10px #1d83d733, inset 0 -3px 0 #39c8f1;
}
.knowledge-tab:focus-visible { outline: 3px solid #59dfff; outline-offset: 4px; z-index: 1; }
.knowledge-panel[hidden] { display: none; }
.knowledge-panel:focus-visible { outline: 2px solid #59dfff; outline-offset: 5px; }
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.knowledge-card { display: flex; min-width: 0; }
.knowledge-card-trigger {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  min-width: 0;
  text-align: left;
  font: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s;
  padding: 14px 17px 15px;
  border: 1px solid #d8ecff;
  border-radius: 9px;
  background: linear-gradient(130deg, #fff, #f1f8ff);
  color: var(--ink);
  box-shadow: 0 3px 12px #00152b20;
}
.knowledge-card-copy { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin: 0; }
.knowledge-prevention, .knowledge-failure-text { overflow-wrap: anywhere; }
.knowledge-failure { display: flex; align-items: baseline; gap: 7px; padding-right: 21px; }
.knowledge-label { flex-shrink: 0; color: #627387; font-family: var(--sans); font-size: 11px; font-weight: 500; line-height: 1.6; }
.knowledge-failure-text { text-wrap: pretty; color: #4c5d70; font-family: var(--sans); font-size: 13px; font-weight: 500; line-height: 1.65; }
.knowledge-prevention { display: block; color: #0757ad; font-family: var(--sans); font-size: 24px; font-weight: 800; font-synthesis: none; line-height: 1.5; letter-spacing: .015em; text-wrap: balance; }
.knowledge-phrase { display: inline-block; white-space: nowrap; }
.knowledge-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.knowledge-consult { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 20px; }
.knowledge-consult p { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.6; color: #e0efff; }
.knowledge-consult .button { min-height: 46px; padding: 10px 25px; border-radius: 999px; font-size: 17px; line-height: 1.5; gap: 24px; }
.knowledge-consult .icon { width: 21px; height: 21px; }
@media (min-width: 1600px) {
  .knowledge-prevention { font-size: 26px; }
  .knowledge-card-trigger { padding: 17px 20px 19px; }
  .knowledge-failure-text { font-size: 14px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .knowledge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) and (max-height: 800px) {
  .knowledge-section { padding-block: 14px; }
  .knowledge-heading { margin-bottom: 10px; }
  .knowledge-heading h2 { font-size: 30px; }
  .knowledge-subtitle { margin-top: 4px; font-size: 17px; line-height: 1.6; }
  .knowledge-tabs { margin-bottom: 12px; }
  .knowledge-grid { gap: 10px; }
  .knowledge-card-trigger { padding: 8px 14px; }
  .knowledge-failure-text { line-height: 1.5; }
  .knowledge-prevention { line-height: 1.4; }
  .knowledge-card-copy { gap: 5px; }
  .knowledge-consult { margin-top: 14px; }
}
@media (min-width: 960px) and (max-width: 1199px) and (max-height: 800px) {
  .knowledge-prevention { font-family: var(--sans); font-size: 22px; font-weight: 800; line-height: 1.4; }
  .knowledge-failure-text { font-size: 12px; }
}
@media (max-width: 959px) {
  .knowledge-section { padding-block: 44px; }
  .knowledge-section .knowledge-container { width: calc(100% - 48px); }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-heading h2 { font-size: 32px; }
  .knowledge-prevention { font-size: 24px; }
  .knowledge-failure { flex-wrap: wrap; gap: 1px 7px; }
  .knowledge-card-trigger { padding: 16px; }
}
@media (max-width: 599px) {
  .knowledge-section .knowledge-container { width: calc(100% - 40px); }
  .knowledge-heading { margin-bottom: 22px; }
  .knowledge-heading h2 { font-size: clamp(28px, 7.8vw, 34px); line-height: 1.5; }
  .knowledge-subtitle { margin-top: 10px; font-size: 17px; line-height: 1.8; }
  .knowledge-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin-bottom: 16px; }
  .knowledge-tab { font-size: 15px; padding-inline: 8px; }
  .knowledge-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .knowledge-card-trigger { padding: 15px 17px 17px; }
  .knowledge-card-copy { gap: 8px; }
  .knowledge-failure { flex-wrap: nowrap; }
  .knowledge-prevention { font-family: var(--sans); font-size: 24px; font-weight: 800; line-height: 1.55; }
  .knowledge-consult { flex-direction: column; gap: 12px; margin-top: 26px; }
  .knowledge-consult p { font-size: 16px; }
  .knowledge-consult .button { width: 100%; min-height: 52px; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .knowledge-tab { transition: none; } }

.knowledge-expand { position: absolute; top: 12px; right: 10px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e2effd; color: #1266b9; font: 400 20px/1 var(--sans); }
.knowledge-card-trigger:hover { border-color: #43c2f2; background: #fff; box-shadow: 0 5px 20px #00152b45; }
.knowledge-card-trigger:hover .knowledge-expand { background: #0069d9; color: white; }
.knowledge-card-trigger:focus-visible { outline: 3px solid #5adfff; outline-offset: 3px; }
html.knowledge-dialog-open { overflow: hidden; scrollbar-gutter: stable; }
.knowledge-dialog { width: min(780px, calc(100% - 48px)); max-width: none; max-height: min(900px, calc(100dvh - 48px)); padding: 0; border: 1px solid #c4d9ec; border-radius: 18px; background: #fff; color: var(--ink); font-family: var(--sans); text-align: left; overflow: hidden; box-shadow: 0 24px 90px #00152b66; }
.knowledge-dialog[open] { display: flex; flex-direction: column; }
.knowledge-dialog::backdrop { background: #00162ac7; backdrop-filter: blur(5px); }
.knowledge-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; padding: 9px 24px; border-bottom: 1px solid #deebf6; background: #f5faff; }
.knowledge-detail-category { font-size: 14px; font-weight: 700; letter-spacing: .045em; color: #47647e; }
.knowledge-dialog-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: transparent; color: #24445e; }
.knowledge-dialog-close:hover { background: #e0effb; }
.knowledge-dialog-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.knowledge-dialog-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 26px 38px 30px; }
.knowledge-detail-heading { margin-bottom: 24px; }
.knowledge-detail-failure { display: flex; flex-wrap: wrap; gap: 5px 10px; font-size: 15px; line-height: 1.7; color: #54667c; }
.knowledge-detail-failure > span:first-child { font-size: 12px; padding: 2px 7px; border-radius: 4px; background: #eef3f8; }
.knowledge-detail-heading h2 { margin-top: 12px; font-family: var(--sans); font-size: 30px; font-weight: 800; line-height: 1.55; letter-spacing: .01em; color: #0757ad; text-wrap: pretty; }
.knowledge-detail-heading h2:focus { outline: none; }
.knowledge-dialog-scroll section + section { margin-top: 26px; }
.knowledge-dialog-scroll h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 18px; font-weight: 800; line-height: 1.6; }
.knowledge-dialog-scroll section p, .knowledge-detail-steps li { font-size: 17px; line-height: 1.9; letter-spacing: .01em; text-wrap: pretty; }
.knowledge-detail-example { padding: 19px 22px; border-radius: 10px; background: #eef7ff; }
.knowledge-detail-steps ol { margin: 0; padding-left: 1.5em; }
.knowledge-detail-steps li { padding-left: .25em; }
.knowledge-detail-steps li + li { margin-top: 10px; }
.knowledge-detail-steps li::marker { color: #0767c9; font-weight: 800; }
.knowledge-dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 18px 28px; border-top: 1px solid #dce8f3; background: #fff; }
.knowledge-dialog-footer .button { min-height: 52px; border-radius: 30px; padding: 12px 22px; font-size: 16px; line-height: 1.6; gap: 18px; }
.knowledge-dialog-footer .icon { width: 20px; height: 20px; }
.knowledge-dialog-back { min-height: 44px; padding: 10px; border: 0; background: transparent; font-family: var(--sans); font-size: 15px; color: #48637d; text-decoration: underline; text-underline-offset: 4px; }
.knowledge-dialog button:focus-visible, .knowledge-dialog a:focus-visible { outline: 3px solid #1688ee; outline-offset: 2px; }
@media (max-width: 599px) {
  .knowledge-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .knowledge-dialog-bar { padding: 7px 14px; }
  .knowledge-dialog-scroll { padding: 22px 20px 26px; }
  .knowledge-detail-heading h2 { font-size: 25px; line-height: 1.6; }
  .knowledge-detail-failure { font-size: 14px; }
  .knowledge-detail-example { padding: 17px 16px; }
  .knowledge-dialog-footer { flex-direction: column; gap: 4px; padding: 12px 16px max(8px, env(safe-area-inset-bottom)); }
  .knowledge-dialog-footer .button { width: 100%; justify-content: space-between; font-size: 15px; padding-inline: 17px; }
  .knowledge-dialog-back { min-height: 36px; padding-block: 5px; }
}
@media (prefers-reduced-motion: reduce) { .knowledge-card-trigger { transition: none; } }
