/* The corporate wordmark palette. Operational map and chart scales have their own tokens. */
:root[data-alphasec-brand] {
  --brand-navy: #20294d;
  --brand-blue: #16477f;
  --brand-red: #db2929;
  --brand-ink: #17233c;
  --brand-pale: #edf3fa;
  --brand-line: #d4deeb;
  --brand-night: linear-gradient(112deg, #0e1a32 4%, #15294b 55%, #16477f 100%);
  --brand-type: "Prompt", "Noto Sans Thai", Tahoma, Arial, sans-serif;
  --page-font:var(--brand-type);
  --font:var(--brand-type);
}
:root[data-alphasec-brand]:lang(ja) {--brand-type:"Prompt","Hiragino Kaku Gothic ProN","Yu Gothic","Noto Sans JP","Noto Sans CJK JP",sans-serif}
:root[data-alphasec-brand]:lang(zh) {--brand-type:"Prompt","PingFang SC","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC",sans-serif}
@layer brand-type {
  html[data-alphasec-brand] body,
  html[data-alphasec-brand] body :not([class*="material-icons"],[class*="material-symbols"],.fa,.fas,.far,.fab),
  html[data-alphasec-brand] :is(button,input,textarea,select)::placeholder {
    font-family:var(--brand-type) !important;
  }
}
html[data-alphasec-brand] :is(h1,h2,h3):lang(th) {letter-spacing:normal}
html[data-alphasec-brand] :is(a,button,input,select,textarea,summary):focus-visible {outline:3px solid #639ee1;outline-offset:3px}
@media screen {
  html[data-alphasec-brand] main :is(.page-hero,.sector-hero,.precision-hero,.dg-cover,.careers-hero,.partner-hero,.cyber-hero,.tr-hero,.em-hero,.camera-hero),
  html[data-alphasec-brand] :is(.trends,.emergency-contacts) > :is(.tr-hero,.em-hero) {
    background:var(--brand-night) !important;color:#fff;border-bottom:1px solid #29456a;
  }
  html[data-alphasec-brand] main :is(.page-hero,.sector-hero,.dg-cover,.careers-hero,.partner-hero,.cyber-hero,.tr-hero,.em-hero,.camera-hero,.precision-hero) h1 {
    color:white !important;text-shadow:none;
  }
  html[data-alphasec-brand] .page-hero:before {border-color:#c3d9ef2b;pointer-events:none}
  html[data-alphasec-brand] main :is(.page-hero,.sector-hero,.careers-hero,.partner-hero,.cyber-hero,.tr-hero,.em-hero,.camera-hero) :is(.shell,.pt-copy,.tr-wrap,.camera-wrap)>p:not(.eyebrow),
  html[data-alphasec-brand] main :is(.dg-deck,.precision-intro,.cyber-intro) {color:#e1eaf7 !important}
  html[data-alphasec-brand] main :is(.page-hero,.sector-hero,.dg-cover,.careers-hero,.partner-hero,.cyber-hero,.precision-hero) :is(.breadcrumb,.breadcrumb a,.dg-breadcrumb,.dg-breadcrumb a,.eyebrow,.sector-kicker,.careers-kicker,.cyber-kicker) {color:#c8ddf6 !important}
  html[data-alphasec-brand] .precision-hero .precision-title span {color:#fff !important}
  html[data-alphasec-brand] .precision-hero .precision-title span:last-child {color:#bed8f8 !important}
  html[data-alphasec-brand] .precision-hero .precision-phone {color:#fff !important}
  html[data-alphasec-brand] main :is(.eyebrow,.as-category)::before {background-color:var(--brand-red)}
  html[data-alphasec-brand] main :is(.btn.pt-cta,.btn.precision-call,.dg-cta,.sector-button.primary,.btn.btn-primary),
  html[data-alphasec-brand] main :is(.page-hero,.cyber-hero,.careers-hero,.partner-hero) .btn:not(.outline,.secondary,.subtle,.white) {
    background:var(--brand-red) !important;color:white !important;border-color:var(--brand-red) !important;border-radius:4px;
  }
  html[data-alphasec-brand] main :is(.btn.pt-cta,.btn.precision-call,.dg-cta,.sector-button.primary,.btn.btn-primary):hover {background:#b51f2d !important}
  html[data-alphasec-brand] main .precision-hero .btn.outline {color:white !important;border-color:#bfd1e6 !important;background:transparent !important}
  html[data-alphasec-brand] :is(.dg-section,.dg-cover,.dg-links,.dg-primary-link) {--dg-teal:var(--brand-blue);--dg-navy:var(--brand-navy);--dg-line:var(--brand-line)}
  html[data-alphasec-brand] .dg-focus {background:white;color:var(--brand-ink);border-color:var(--brand-red);overflow:hidden}
  html[data-alphasec-brand] .dg-focus h2 {color:var(--brand-navy)}
  html[data-alphasec-brand] .dg-focus .brand-field-photo {display:block;width:calc(100% + 2.7rem);max-width:none;height:auto;aspect-ratio:2.28;object-fit:cover;margin:-1.2rem -1.35rem 1rem}
  html[data-alphasec-brand] .dg-section:is(.dg-plan,.dg-after), html[data-alphasec-brand] .dg-sample {background:var(--brand-pale)}
  html[data-alphasec-brand] .method-map {--mm-navy:var(--brand-navy);--mm-blue:var(--brand-blue);--mm-line:var(--brand-line);--mm-teal:var(--brand-blue)}
  html[data-alphasec-brand] .method-map .mm-top {background:var(--brand-night)}
  html[data-alphasec-brand] .method-map .mm-step[aria-current=step] {background:var(--brand-pale);border-color:var(--brand-line);color:var(--brand-blue)}
  html[data-alphasec-brand] .method-map .mm-step[aria-current=step] .mm-point {background:var(--brand-red);border-color:#b72231;box-shadow:0 0 0 3px #f8dfe2}
  html[data-alphasec-brand] .method-map .mm-proof {background:var(--brand-pale);border-color:var(--brand-blue)}
  html[data-alphasec-brand] .pt-story {--pt-accent:#a7c8fa;border-color:#4d6786}
  html[data-alphasec-brand] .pt-story[data-phase="1"] {--pt-accent:#ffb5b9}
  html[data-alphasec-brand] .pt-story[data-phase="2"] {--pt-accent:#a7c8fa}
  html[data-alphasec-brand] .pt-story .pt-label svg {color:#b4d5ff}
  html[data-alphasec-brand] :is(.ss-example[data-fieldwork],.pro-evidence,.pt-story .pt-top) {background-color:#142942}
  html[data-alphasec-brand] .dg-section :is(.dg-option,.dg-sample) {border-color:var(--brand-blue)}
  html[data-alphasec-brand] .article-page > h1 {color:var(--brand-navy)}
  html[data-alphasec-brand] .article-page .prose :is(h2,h3) {color:var(--brand-blue)}
  html[data-alphasec-brand] .article-page .prose blockquote {border-inline-start:3px solid var(--brand-red)}
  html[data-alphasec-brand] :is(.person-card,.executive-card) {border-color:var(--brand-line)}
  html[data-alphasec-brand] .executive-card .executive-practice {border-inline-start-color:var(--brand-red)}
}
@media(max-width:760px){
  html[data-alphasec-brand] .dg-focus .brand-field-photo {width:calc(100% + 2rem);margin:-.8rem -1rem .85rem}
}
@media screen {
  html[data-alphasec-brand] main .method-map .mm-lines .mm-active-line {stroke:var(--brand-blue)}
  html[data-alphasec-brand] main .method-map :is(.mm-proof,.mm-people) b {color:var(--brand-blue)}
  html[data-alphasec-brand] #as-chat.as-messenger {--msg-navy:var(--brand-navy);--msg-blue:var(--brand-blue);--msg-green:#e1edfc}
  html[data-alphasec-brand] #as-chat.as-messenger .is-user {background:#e1edfc;border-color:#c3d8ef;color:var(--brand-ink)}
  html[data-alphasec-brand] .aps-main :is(.aps-overline,.aps-breadcrumb) {color:var(--brand-blue)}
  html[data-alphasec-brand] .aps-main h1 {color:var(--brand-navy)}
  html[data-alphasec-brand] .aps-main .red-stop {color:var(--brand-red)}
}
@media screen {
  html[data-alphasec-brand] #alphasec-incident-map .aps-main {background:var(--brand-night)}
  html[data-alphasec-brand] #alphasec-incident-map .aps-main h1 {color:white}
  html[data-alphasec-brand] #alphasec-incident-map :is(.aps-overline,.aps-breadcrumb) {color:#c8ddf6}
}
@media screen {
  html[data-alphasec-brand] .article-page > .eyebrow {color:var(--brand-blue)}
  html[data-alphasec-brand] .article-page > .eyebrow::before {background:var(--brand-red)}
  html[data-alphasec-brand] .article-page .prose a {color:var(--brand-blue);text-underline-offset:.18em}
  html[data-alphasec-brand] .checklist-main {border-top:4px solid var(--brand-blue);border-radius:5px}
  html[data-alphasec-brand] .checklist-main :is(h1,h2,legend) {color:var(--brand-navy)}
}
@media screen {
  html[data-alphasec-brand] main .strategy-hero .strategy-lead {color:#e1eaf7 !important}
  html[data-alphasec-brand] .cyber-page .cyber-hero :is(.cyber-breadcrumb,.cyber-breadcrumb a,.cyber-secondary) {color:#dceafa}
  html[data-alphasec-brand] .cyber-page .cyber-hero .cyber-aside {color:var(--brand-ink);border-top:3px solid var(--brand-red)}
}

/* Portraits share an eye line and eye spacing in each frame. Anchors below
   describe the source photos, so the crop follows the card at every width. */
html[data-alphasec-brand] :is(.studio-portrait,.practice-portrait,#directors.leadership-grid .person-portrait) {
  --eye-spacing: 13.5%;
  background: #fff !important;
}
html[data-alphasec-brand] #directors.leadership-grid .person-portrait {
  /* This board layout uses a landscape frame. */
  --eye-spacing: 10.5%;
}
html[data-alphasec-brand] :is(.studio-portrait,.practice-portrait,.person-portrait) > img:is([src*="/assets/team-navy/profile-"],[src*="d0b8649d9580418eadd13086dd7c6f44"]) {
  position: absolute !important;
  inset: 36% auto auto 50% !important;
  width: calc(var(--eye-spacing) * var(--source-width-in-eye-spans, 7.4074)) !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  transform: translate(var(--eye-offset-x, -50%), var(--eye-offset-y, -36%)) !important;
}
/* ดร. อริชัย รักธรรม */
img[src*="profile-029811e85db1.webp"] { --source-width-in-eye-spans: 11.35618; --eye-offset-x: -44.0289%; --eye-offset-y: -23.2071%; }
/* ณิสุทธญาณ์ อัจฉดาพิมุกต์ */
img[src*="profile-18fc6d6393c8.webp"] { --source-width-in-eye-spans: 11.69733; --eye-offset-x: -46.5811%; --eye-offset-y: -29.7833%; }
/* ชนะพันธุ์ พิริยะพันธุ์ */
img[src*="profile-296d8f4330fd.webp"] { --source-width-in-eye-spans: 10.69344; --eye-offset-x: -47.3515%; --eye-offset-y: -26.5072%; }
/* ดร.ฉัททวุฒิ พีชผล */
img[src*="profile-2d5f1c5b6c37.webp"] { --source-width-in-eye-spans: 13.39209; --eye-offset-x: -36.7014%; --eye-offset-y: -20.0947%; }
/* ณิชาภัทร บุญนัดดา */
img[src*="profile-3b07869304ff.webp"] { --source-width-in-eye-spans: 14.49174; --eye-offset-x: -51.7640%; --eye-offset-y: -19.7721%; }
/* ชญาณเดช ปรียวัฒธนากุล */
img[src*="profile-50e17dcd00ba.webp"] { --source-width-in-eye-spans: 11.56059; --eye-offset-x: -50.3066%; --eye-offset-y: -27.0819%; }
/* สุริยา นาชิน */
img[src*="profile-58976fee84fc.webp"] { --source-width-in-eye-spans: 12.92263; --eye-offset-x: -53.0819%; --eye-offset-y: -19.6453%; }
/* สุภิรัก แสงอรุณศิริ */
img[src*="profile-66c6ba8e6ef6.webp"] { --source-width-in-eye-spans: 12.11120; --eye-offset-x: -50.9438%; --eye-offset-y: -23.1445%; }
/* นิพนธ์ นาชิน, Ph.D. */
img[src*="profile-935f387e3b65.webp"] { --source-width-in-eye-spans: 8.31554; --eye-offset-x: -50.8844%; --eye-offset-y: -34.6902%; }
/* ผศ.(พิเศษ) ดร.ภก.อภิสิทธิ์ ฉัตรทนานนท์ */
img[src*="profile-b82a2941c317.webp"] { --source-width-in-eye-spans: 9.29990; --eye-offset-x: -48.9454%; --eye-offset-y: -18.1429%; }
/* ชัชวิน พิพัฒน์โชติธรรม */
img[src*="profile-ff767730cbe8.webp"] { --source-width-in-eye-spans: 9.94413; --eye-offset-x: -49.0000%; --eye-offset-y: -17.5313%; }
/* รณกร ขำเพชร */
img[src*="532745_d0b8649d9580418eadd13086dd7c6f44"] { --source-width-in-eye-spans: 15.57967; --eye-offset-x: -37.2604%; --eye-offset-y: -20.4795%; }
