/* Gridcog market pages (/market/*) and the /markets hub, v2. Extends th-hub-v2.css and ts-v1.css; scoped to .th. Tokens: [Marketing] Gridcog Design System. */
.th .mk-note{margin-top:22px;font-size:14px;line-height:1.5;color:#6C6C75}
.th .ts-src .mk-ini{width:40px;height:40px;font-size:13px}
.th .mk-ini{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:#8D2EFF;color:#FFFFFF;font-weight:700;font-size:16px;letter-spacing:.02em}
.th .ts-person .mk-ini{width:56px;height:56px}
.th .mk-ext{white-space:nowrap}

/* Worked examples: charcoal sections */
.th .mk-dark{background:#1F1F23;color:#FFFFFF}
.th .mk-dark .th-hs,.th .mk-dark .th-hc,.th .mk-dark .ts-pn{color:#FFFFFF}
.th .mk-dark .ts-pr{color:#E5E6E8}
.th .mk-dark .th-eyebrow{color:#76F5D8}
.th .mk-dark .ts-prose a,.th .mk-dark .th-al,.th .mk-dark .ts-tbl a{color:#76F5D8}
.th .mk-dark .ts-tbl{background:#2A2A30;border-color:#4E4E58}
.th .mk-dark .ts-tbl table{color:#FFFFFF}
.th .mk-dark .ts-tbl th{background:#34343B;color:#FFFFFF}
.th .mk-dark .ts-tbl td{border-top-color:#4E4E58}
.th .mk-dark .th-help{background:#2A2A30;border:1px solid #4E4E58}
.th .mk-eyebrowrow{margin-bottom:-8px}

/* Quotes, steps and lists in prose */
.th .ts-prose .th-q{margin:4px 0}
.th .mk-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;counter-reset:mks}
.th .mk-steps li{position:relative;padding-left:46px;counter-increment:mks}
.th .mk-steps li::before{content:counter(mks);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;background:#8D2EFF;color:#FFFFFF;font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:center}
.th .mk-ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}

/* Local experts */
.th .mk-exp{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.th .mk-expi{display:flex;gap:18px;align-items:flex-start;background:#FFFFFF;border:1px solid #E5E6E8;border-radius:24px;padding:22px 24px}
.th .ts-grey .mk-expi{border-color:#FFFFFF}
.th .mk-expi img,.th .mk-expi .mk-ini{flex:0 0 auto;width:72px;height:72px;border-radius:50%;object-fit:cover;background:#F1F0F4}
.th .mk-expi .mk-ini{background:#8D2EFF;font-size:20px}
.th .mk-expn{font-size:17px;font-weight:700;line-height:1.3}
.th .mk-expr{margin-top:2px;font-size:14px;line-height:1.4;color:#6C6C75}
.th .mk-expb{margin-top:10px;font-size:15px;line-height:1.6}

/* Other markets list: region swatches */
.th .mk-sw-anz{background:#76F5D8}
.th .mk-sw-eu{background:#8D2EFF}

/* Hub: region codes */
.th .mk-code{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:30px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:700;letter-spacing:.04em;line-height:1}
.th .mk-anz{background:#76F5D8;color:#1F1F23}
.th .mk-eu{background:#8D2EFF;color:#FFFFFF}
.th .mk-findg{display:flex;align-items:center;gap:8px;margin:14px 10px 6px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#6C6C75}
.th .mk-findg:first-of-type{margin-top:4px}
.th .mk-dot{display:inline-block;width:12px;height:12px;border-radius:50%}
.th .mk-findsub{display:block;font-size:13px;font-weight:500;color:#6C6C75}
.th .mk-findfoot{margin:10px 10px 0;padding-top:12px;border-top:1px solid #E5E6E8;font-size:15px}

/* Hub: market directory */
.th .mk-filter{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.th .mk-chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 18px;border-radius:999px;border:1px solid #1F1F23;background:#FFFFFF;color:#1F1F23;font-size:15px;font-weight:700;cursor:pointer}
.th .mk-chip[aria-pressed="true"]{background:#1F1F23;color:#FFFFFF}
.th .mk-chipn{font-weight:500;opacity:.75;font-variant-numeric:tabular-nums}
.th .mk-status{margin:0 0 0 auto;font-size:14px;color:#6C6C75}
.th .mk-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.th .mk-cards>li{display:flex}
.th .mk-cards>li[hidden]{display:none}
.th .mk-card{display:flex;flex-direction:column;gap:14px;width:100%;background:#FFFFFF;border-radius:32px;padding:26px 26px 24px}
.th .mk-cardreg{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#6C6C75}
.th .mk-cardh{font-size:22px;line-height:1.3;font-weight:600;letter-spacing:-.01em;color:#1F1F23}
.th .mk-cardp{font-size:15px;line-height:1.6}
.th .mk-op{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:14px;line-height:1.5}
.th .mk-op dt{font-weight:700}
.th .mk-op dd{margin:0}
.th .mk-tags{display:flex;flex-wrap:wrap;gap:6px}
.th .mk-cardlink{margin-top:auto;padding-top:16px;border-top:1px solid #E5E6E8;font-size:16px}
.th .mk-other{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px 48px;align-items:center;border-radius:32px;background:#1F1F23;color:#FFFFFF;padding:clamp(28px,4vw,52px)}
.th .mk-other p{font-size:17px;line-height:1.6;color:#E5E6E8}
.th .mk-other .th-hc{color:#FFFFFF}
.th .mk-otherbtn{display:flex;justify-content:flex-end}

/* Hub: four layers and data strip */
.th .mk-layers{grid-template-columns:repeat(4,minmax(0,1fr))}
.th .mk-ex{margin-top:auto;padding-top:14px;border-top:1px solid #E5E6E8}
.th .mk-ex p{margin-bottom:8px;font-size:13px;font-weight:700;color:#6C6C75}
.th .mk-data{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:14px 28px;align-items:center;background:#FFFFFF;border-radius:24px;padding:24px 28px;font-size:16px;line-height:1.6}

/* Hub: local teams */
.th .mk-cities{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.th .mk-city{border-top:1px solid #4E4E58;padding-top:18px;display:flex;flex-direction:column;gap:6px}
.th .mk-cityn{font-size:26px;line-height:1.2;font-weight:600;letter-spacing:-.015em;color:#FFFFFF}
.th .mk-cityc{font-size:14px;color:#E5E6E8}

/* Hub: insights */
.th .mk-ins{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.th .mk-insc{display:flex;flex-direction:column;gap:16px;background:#F1F0F4;border-radius:32px;padding:28px;min-height:240px}
.th .mk-insmeta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:14px;color:#6C6C75}
.th .mk-insh{font-size:21px;line-height:1.35;font-weight:600;letter-spacing:-.01em;color:#1F1F23}
.th .mk-headrow{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}

/* Market pages: key points, videos, related, form */
@media (min-width:761px){.th .mk-kp4{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 56px}}
@media (min-width:981px){.th .mk-vids2{grid-template-columns:repeat(2,minmax(0,1fr))}}
.th .ts-kpsec .mk-note{margin-top:28px}
.th .mk-relp{font-size:16px;line-height:1.6;color:#4E4E58;max-width:860px;margin-top:-8px}
.th .ts-row .ts-rowh .ts-person{margin-top:-4px}
.th .mk-dark .ts-list li::before{background:#76F5D8}
.th .mk-dark .th-eyebrow.mk-eyebrowrow{margin-bottom:-16px}
.ihs .mk-fs-alt a{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.ihs .mk-fs-alt .th-arr{display:inline-block;margin-left:6px}

/* Hub additions */
.th .mk-cap{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.th .mk-cmp td:first-child a{color:#1F1F23;font-weight:700;text-decoration:none;border-bottom:1px solid #B9A2FF}
.th .mk-cmp td:first-child a:hover{color:#8D2EFF;border-bottom-color:#8D2EFF}
.th .mk-data .th-hc{font-size:19px;white-space:nowrap}
.th .mk-data a{color:#8D2EFF;font-weight:700;text-decoration:none}
.th .mk-headrow .ts-more{margin:0}
.th .mk-cardh .mk-findsub{margin-top:4px}
.th .mk-chip .mk-dot{flex:0 0 auto}
.th .mk-insc .mk-cardlink{margin-top:auto}
.th .mk-ins>li{display:flex}
.th .mk-ins>li>.mk-insc{width:100%}

.th .mk-layers .ts-card{display:flex;flex-direction:column}
.th .mk-other .th-hc{margin-bottom:10px}

@media (max-width:1180px){
.th .mk-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.th .mk-layers{grid-template-columns:repeat(2,minmax(0,1fr))}
.th .mk-cities{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:991px){
.th .mk-other{grid-template-columns:minmax(0,1fr)}
.th .mk-otherbtn{justify-content:flex-start}
.th .mk-ins{grid-template-columns:minmax(0,1fr)}
.th .mk-insc{min-height:0}
.th .mk-data{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:767px){
.th .mk-exp,.th .mk-cards,.th .mk-layers{grid-template-columns:minmax(0,1fr)}
.th .mk-cities{grid-template-columns:repeat(2,minmax(0,1fr))}
.th .mk-status{margin-left:0;width:100%}
.th .mk-expi{padding:18px}
.th .mk-dark .ts-tbl tr{border-top-color:#4E4E58}
.th .mk-dark .ts-tbl td+td::before{color:#B9B9C2}
}

/* v3: a text row that follows a table or card grid has no heading in its left column; run it from the left edge instead of leaving the left column empty */
.th .ts-row>div:first-child:empty{display:none}
.th .ts-row>div:first-child:empty+.ts-prose{grid-column:1/-1}

/* v4: single-column layout. Each heading sits above its text, and text, tables and cards all start from the same left edge */
.th .ts-row{grid-template-columns:minmax(0,1fr);gap:20px}
.th .ts-row>div:empty{display:none}
.th .ts-rowh{max-width:900px}
.th .ts-row>div:first-child:empty+.ts-prose{grid-column:auto}
.th .th-faqgrid,.th .ts-sec .th-faqgrid{grid-template-columns:minmax(0,1fr);gap:24px}
.th .th-faqside{position:static}
.th .ts-faql{max-width:960px}
