/* Strategies at a glance */
.tg { font-family: Manrope, Arial, sans-serif; color: #0F2846; text-align: left; }
.tg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid #0F2846; }
.tg-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #BE592C; }
.tg h2 { margin: 4px 0 0 !important; font-size: 26px !important; font-weight: 800 !important; color: #0F2846 !important; text-align: left !important; line-height: 1.2; }
.tg h2.tg-sub { margin-top: 34px !important; font-size: 22px !important; }
.tg-group { margin: 26px 0 8px !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; color: #4A5A6D !important; }
.tg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tg-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 760px; }
.tg-table thead th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #4A5A6D; text-align: right; padding: 0 6px 6px; border-bottom: 1px solid #0F2846; white-space: nowrap; }
.tg-table thead th:first-child { text-align: left; padding-left: 0; }
.tg-table td { text-align: right; padding: 8px 6px; border-bottom: 1px solid #E1E7EB; white-space: nowrap; color: #33465C; }
.tg-table tbody th { text-align: left; padding: 8px 6px 8px 0; border-bottom: 1px solid #E1E7EB; font-weight: 700; white-space: nowrap; }
.tg-table tbody th a { color: #0F2846 !important; text-decoration: none; }
.tg-table tbody th a:hover { color: #BE592C !important; text-decoration: underline; }
.tg-table td.neg { color: #BE592C; } .tg-table td.pos { color: #0F2846; } .tg-table td.na { color: #8A99AB; }
.tg-table td.ytd, .tg-table th.ytd { border-left: 2px solid #0F2846; font-weight: 800; }
.tg-table td.b { font-weight: 800; color: #0F2846; }
.tg-hyp { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #FBEDE6; color: #A64C24; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.tg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 14px; }
.tg-card { border: 1px solid #D9E0E8; border-radius: 12px; padding: 18px 18px 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.tg-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.tg-meta { font-size: 11px; font-weight: 600; color: #4A5A6D; }
.tg-card h3 { margin: 3px 0 0 !important; font-size: 17px !important; font-weight: 800 !important; color: #0F2846 !important; text-align: left !important; }
.tg-card p { margin: 0 !important; font-size: 13.5px; line-height: 1.55; color: #33465C !important; text-align: left !important; }
.tg-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; gap: 6px; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid #E1E7EB; }
.tg-kpis div { min-width: 0; }
.tg-kpis dt { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #4A5A6D; line-height: 1.25; }
.tg-kpis dd { margin: 3px 0 0; font-size: 15px; font-weight: 800; color: #0F2846; font-variant-numeric: tabular-nums; }
.tg-kpis dd.neg { color: #BE592C; }
.tg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 8px; background: #BE592C; color: #fff !important; font-weight: 800; font-size: 13px; text-decoration: none !important; white-space: nowrap; flex: none; }
.tg-btn:hover { background: #A64C24; }
.tg-btn.ghost { background: transparent; color: #0F2846 !important; border: 1px solid #0F2846; }
.tg-disc { margin-top: 26px !important; padding-top: 12px; border-top: 1px solid #E1E7EB; font-size: 11.5px; line-height: 1.55; color: #4A5A6D !important; text-align: left !important; }
@media (max-width: 640px) { .tg h2 { font-size: 22px !important; } }
.tg-table { table-layout: auto; }
.tg-table td { min-width: 50px; }
.tg-table thead th:first-child { width: 220px; }
.tg-table tbody th { white-space: normal; line-height: 1.25; }
.tg-table .tg-hyp { display: table; margin: 3px 0 0; }
.tg-table tbody th, .tg-table thead th:first-child { min-width: 210px; }
/* workbook-style list (0.8.1) */
.tg-head-act { display: flex; gap: 10px; flex-wrap: wrap; }
.tg-sec { margin-top: 26px; }
.tg-row { display: grid; grid-template-columns: minmax(0, 2.6fr) repeat(4, minmax(0, 0.9fr)) minmax(0, 1.1fr) 104px; gap: 10px; align-items: center; }
.tg-hdr { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #4A5A6D; padding-bottom: 6px; border-bottom: 1px solid #0F2846; }
.tg-hdr span:not(:first-child) { text-align: right; }
.tg-item { padding: 12px 0 12px; border-bottom: 1px solid #E1E7EB; scroll-margin-top: 90px; }
.tg-name b { font-size: 15px; font-weight: 800; color: #0F2846; }
.tg-name small { display: block; font-size: 12px; color: #4A5A6D; font-weight: 600; margin-top: 2px; }
.tg-v { text-align: right; font-size: 15px; font-weight: 700; color: #0F2846; font-variant-numeric: tabular-nums; }
.tg-v.neg { color: #BE592C; } .tg-v.b { font-weight: 800; } .tg-v.nf { font-weight: 600; color: #33465C; }
.tg-act { text-align: right; }
.tg-act .tg-btn { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
.tg-desc { margin: 8px 0 0 !important; font-size: 13.5px; line-height: 1.55; color: #33465C !important; text-align: left !important; max-width: 760px; }
.tg-name .tg-hyp { margin-left: 8px; }
@media (max-width: 760px) {
  .tg-hdr { display: none; }
  .tg-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .tg-name { grid-column: 1 / -1; }
  .tg-v { text-align: left; font-size: 14px; }
  .tg-v::before { content: attr(data-l); display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #4A5A6D; }
  .tg-v.nf:empty { display: none; }
  .tg-act { grid-column: 1 / -1; text-align: left; }
}
.tg-name b { display: inline; line-height: 1.25; } .tg-name { line-height: 1.25; }
/* add to custom portfolio (0.8.5) */
.tg-row { grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 0.85fr)) minmax(0, 1.05fr) 186px; }
.tg-act { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.tg-act .tg-btn { width: 100%; box-sizing: border-box; }
.tg-add { cursor: pointer; font-family: inherit; }
.tg-add.on { background: #0F2846 !important; color: #fff !important; border-color: #0F2846; }
.tg-buildbar { position: sticky; bottom: 12px; z-index: 5; margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; background: #F4F6F9; border: 1px solid #D9E0E8; }
.tg-has-picks .tg-buildbar { background: #0F2846; border-color: #0F2846; box-shadow: 0 10px 24px rgba(9,20,35,.25); }
.tg-buildtxt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 320px; }
.tg-buildtxt b { font-size: 15px; font-weight: 800; color: #0F2846; }
.tg-buildtxt span { font-size: 12.5px; color: #4A5A6D; line-height: 1.45; }
.tg-has-picks .tg-buildtxt b { color: #fff; } .tg-has-picks .tg-buildtxt span { color: #C9D3DF; }
.tg-buildact { display: flex; align-items: center; gap: 12px; }
.tg-clear { background: none; border: 0; padding: 0; font: 700 13px Manrope, Arial, sans-serif; color: #4A5A6D; cursor: pointer; text-decoration: underline; }
.tg-has-picks .tg-clear { color: #C9D3DF; }
@media (max-width: 760px) {
  .tg-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg-act { flex-direction: row; flex-wrap: wrap; }
  .tg-act .tg-btn { width: auto; }
  .tg-buildbar { bottom: 8px; padding: 12px 14px; }
  .tg-buildtxt span { display: none; }
}
.tg-row { grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 0.9fr)) minmax(0, 1fr) 172px; gap: 8px; }
.tg-hdr { font-size: 10px; letter-spacing: .03em; }
.tg-hdr span { min-width: 0; overflow-wrap: anywhere; }
.tg-act .tg-btn { font-size: 12px; padding: 0 10px; }
.tg-hdr span { overflow-wrap: normal; }
.tg-row { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 0.9fr)) minmax(0, 1.1fr) 172px; }
/* floating build bar (0.8.5) */
.tg-buildbar { position: static; }
.tg-float { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999; width: min(560px, calc(100vw - 32px)); }
.tg-float[hidden] { display: none; }
.tg-float-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 12px; background: #0F2846; box-shadow: 0 12px 28px rgba(9,20,35,.35); }
.tg-float-in b { color: #fff; font-size: 14px; font-weight: 800; }
/* tear sheet navy, added state orange (0.8.7) */
.tg-btn.tg-sheet { background: #0F2846; color: #fff !important; }
.tg-btn.tg-sheet:hover { background: #1C3A5E; }
.tg-add.on { background: #BE592C !important; border-color: #BE592C !important; color: #fff !important; }
/* phones: stacked stat grid must win over the desktop column rules above (0.9.0) */
@media (max-width: 760px) {
  .tg-hdr { display: none; }
  .tg-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; column-gap: 10px; }
  .tg-name, .tg-act { grid-column: 1 / -1; }
  .tg-v { text-align: left; }
  .tg-v::before { white-space: normal; line-height: 1.25; margin-bottom: 2px; }
  .tg-act { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .tg-act .tg-btn { width: auto; }
}
