/* Threat actor library: hub and profile pages */
.ta-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.ta-hero-grid > * { min-width: 0; }
.ta-hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; margin: 18px 0; text-wrap: balance; }
.ta-hero .lead { color: rgba(255,255,255,.8); font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0; }
.ta-hero .crumbs a { color: rgba(255,255,255,.72); }
.ta-reviewed { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.6); }

.ta-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 5px 12px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.ta-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ta-status.active { color: #ff8a8a; background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.35); }
.ta-status.disrupted { color: #f5c45e; background: rgba(245,196,94,.1); border-color: rgba(245,196,94,.35); }

.ta-facts { background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 8px 24px; backdrop-filter: blur(6px); }
.ta-facts dl { margin: 0; }
.ta-facts div { padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
.ta-facts div:last-child { border-bottom: 0; }
.ta-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.ta-facts dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: #fff; }
.ta-facts dd a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.ta-sec { padding: 84px 0; scroll-margin-top: 130px; }
.ta-sec.alt { background: var(--light); }
.ta-narrow { max-width: 820px; }
.ta-sec .intro { color: var(--muted); font-size: 16.5px; max-width: 760px; margin: 0 0 34px; }
.ta-prose p { font-size: 16.5px; line-height: 1.75; color: var(--ink); margin: 0 0 18px; }
.ta-prose p:last-child { margin-bottom: 0; }
.ta-prose a, .ta-link-inline { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.ta-cite { font-size: .72em; line-height: 0; margin-left: 1px; }
.ta-cite a { color: var(--blue-2); font-weight: 700; text-decoration: none; padding: 0 1px; }
.ta-cite a:hover { text-decoration: underline; }
.on-dark .ta-cite a { color: var(--accent); }

.ta-view { margin: 30px 0 0; padding: 22px 24px; border-left: 3px solid var(--blue); background: var(--mist); border-radius: 0 10px 10px 0; }
.ta-view b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.ta-view p { margin: 0; font-size: 15.5px; line-height: 1.65; }

.ta-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ta-chain li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ta-chain .n { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.ta-chain li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ta-chain h3 { font-size: 17px; color: var(--navy); margin: 0 0 6px; line-height: 1.3; }
.ta-chain p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.ta-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.ta-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ta-table th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; background: var(--light); border-bottom: 1px solid var(--line); }
.ta-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.ta-table tr:last-child td { border-bottom: 0; }
.ta-table .id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; white-space: nowrap; }
.ta-table .id a { color: var(--blue); font-weight: 600; }
.ta-table .tech { font-weight: 600; color: var(--navy); }
.ta-table .tactic { color: var(--muted); white-space: nowrap; }
.ta-note { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }

.ta-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.ta-split > * { min-width: 0; }
.ta-tools { display: grid; gap: 22px; }
.ta-tools h3 { font-size: 15px; color: var(--navy); margin: 0 0 10px; }
.ta-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ta-chips span { font-size: 13px; font-weight: 500; color: var(--navy); background: var(--mist); padding: 5px 11px; border-radius: 7px; }
.ta-panel { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 28px; }
.ta-panel h3 { font-size: 19px; margin: 0 0 10px; color: #fff; }
.ta-panel p { margin: 0 0 14px; color: rgba(255,255,255,.76); font-size: 14.5px; line-height: 1.6; }
.ta-panel p:last-child { margin-bottom: 0; }
.ta-panel a { color: var(--accent); }
.ta-cve { display: block; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 10px; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.8); }
.ta-cve b { display: block; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; margin-bottom: 3px; }

.ta-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ta-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-dark); }
.ta-timeline li { position: relative; padding: 0 0 28px 38px; }
.ta-timeline li:last-child { padding-bottom: 0; }
.ta-timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid var(--accent); }
.ta-timeline time { display: block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 3px; }
.ta-timeline p { margin: 0; color: rgba(255,255,255,.82); font-size: 15.5px; line-height: 1.6; }
.ta-dark { background: var(--navy); color: #fff; }
.ta-dark .hb-h2 { color: #fff; }

.ta-signs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.ta-signs li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; }
.ta-signs li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 3px; background: var(--red); }

.ta-defs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ta-def { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ta-def h3 { font-size: 18px; color: var(--navy); margin: 0 0 14px; }
.ta-def ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ta-def li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.ta-def li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.ta-def .go, .ta-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
.ta-def .go svg, .ta-go svg { width: 16px; height: 16px; flex: none; }

.ta-sources { margin: 0; padding: 0 0 0 22px; display: grid; gap: 9px; font-size: 14px; line-height: 1.55; color: var(--muted); scroll-margin-top: 130px; }
.ta-sources li { scroll-margin-top: 130px; }
.ta-sources li:target { color: var(--navy); font-weight: 600; }
.ta-sources a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.ta-legal { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.ta-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ta-related a { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .2s, transform .2s; }
.ta-related a:hover { border-color: var(--blue); transform: translateY(-2px); }
.ta-related small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.ta-related b { font-size: 16.5px; line-height: 1.35; color: var(--navy); }
.ta-related span { font-size: 14px; color: var(--muted); line-height: 1.5; }

.ta-final { padding: 72px 0; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.ta-final-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ta-final h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; color: #fff; }
.ta-final p { margin: 0; color: rgba(255,255,255,.75); max-width: 640px; }

/* Hub */
.ta-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ta-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line-dark); background: linear-gradient(160deg, rgba(148,212,244,.07), rgba(148,212,244,.015)); color: #fff; transition: border-color .25s, transform .25s; }
.ta-card:hover { border-color: rgba(148,212,244,.55); transform: translateY(-3px); }
.ta-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ta-card-tag { font-size: 12.5px; color: rgba(255,255,255,.65); }
.ta-card h3 { font-size: 21px; margin: 4px 0 0; }
.ta-card > p { margin: 0 0 4px; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.55; }
.ta-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--line-dark); }
.ta-card dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.ta-card dd { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.9); }
.ta-card .ta-go { color: var(--accent); margin-top: auto; padding-top: 4px; }
.ta-method { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.ta-method div { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ta-method h3 { font-size: 17px; color: var(--navy); margin: 0 0 8px; }
.ta-method p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.ta-method .ta-status { margin-bottom: 10px; }
.ta-method .ta-status.active { color: #c62f35; background: rgba(229,72,77,.08); }
.ta-method .ta-status.disrupted { color: #946200; background: rgba(245,196,94,.16); border-color: rgba(148,98,0,.3); }
.ta-method .ta-status.dormant, .ta-method .ta-status.unclear { color: var(--muted); background: var(--light); border-color: var(--line); }

.ta-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ta-status.unclear { color: #c4d3e6; background: rgba(196,211,230,.1); border-color: rgba(196,211,230,.3); }
.ta-status.dormant { color: #aab6c6; background: rgba(170,182,198,.08); border-color: rgba(170,182,198,.28); }
.ta-ev { display: inline-flex; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 7px; color: var(--accent); background: rgba(148,212,244,.1); }
.ta-limited { margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--light); }
.ta-limited b { display: block; color: var(--navy); margin-bottom: 4px; }
.ta-limited p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ta-stats { margin-top: 28px; margin-bottom: 0; }
.ta-filter { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.ta-filter input, .ta-filter select { width: 100%; min-width: 0; height: 46px; padding: 0 14px; font: inherit; font-size: 14.5px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 8px; }
.ta-filter select option { color: var(--ink); }
.ta-filter input::placeholder { color: rgba(255,255,255,.55); }
.ta-filter input:focus-visible, .ta-filter select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ta-count { font-size: 13.5px; color: rgba(255,255,255,.65); margin: 0 0 18px; }
.ta-empty { padding: 24px; text-align: center; color: rgba(255,255,255,.75); border: 1px dashed var(--line-dark); border-radius: 12px; }
.ta-watch { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ta-watch li { font-size: 13.5px; padding: 6px 12px; border-radius: 7px; background: var(--light); color: var(--navy); }
.ta-alias { margin: 22px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14.5px; }
.ta-alias a { color: var(--blue); text-decoration: underline; }
.ta-method.ev { margin-top: 18px; }
.ta-method.ev .ta-ev { color: var(--blue); background: var(--mist); margin-bottom: 10px; }
.ta-cards .ta-card[hidden] { display: none; }

/* Threat Watch link to the library */
.tw-actors-all { display: flex; justify-content: center; margin-top: 34px; }

@media (max-width: 1040px) {
  .ta-hero-grid, .ta-split { grid-template-columns: 1fr; gap: 34px; }
  .ta-related, .ta-cards { grid-template-columns: 1fr 1fr; }
  .ta-filter { grid-template-columns: 1fr 1fr; }
  .ta-filter input { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ta-sec { padding: 60px 0; }
  .ta-chain, .ta-defs, .ta-cards, .ta-signs, .ta-related, .ta-method, .ta-filter { grid-template-columns: 1fr; }
  .ta-chain li { grid-template-columns: 38px 1fr; gap: 12px; padding: 18px; }
  .ta-chain .n { width: 38px; height: 38px; }
  .ta-card { padding: 24px; }
  .ta-table-wrap { border: 0; background: none; overflow: visible; }
  .ta-table, .ta-table tbody, .ta-table tr, .ta-table td { display: block; width: 100%; }
  .ta-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ta-table tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
  .ta-table td { border: 0; padding: 3px 0; }
  .ta-table .tactic { white-space: normal; }
  .ta-final-in .btn { width: 100%; }
}
