/* ==========================================================================
   Big Sky Dynamics — trust layer: policies, support, reviews, case studies
   task-73 · namespaced .tp-* so it cannot collide with company/commerce CSS.
   Layered on styles.css + assets/company.css. Mobile-safe at 390/768/1440.
   ========================================================================== */

/* chrome additions -------------------------------------------------------- */
.tp-subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.tp-subnav .wrap {
  display: flex; align-items: stretch; gap: 2px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tp-subnav .wrap::-webkit-scrollbar { display: none; }
.tp-subnav a {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  padding: 13px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.tp-subnav a:hover { color: var(--ink); }
.tp-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--magenta); }
.tp-subnav .tp-subnav-label {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  padding: 13px 12px 13px 0; margin-right: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted-2, #8b90ad);
}

/* policy hero ------------------------------------------------------------- */
.tp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; background: var(--ink);
}
.tp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 380px at 85% 10%, rgba(27, 27, 255, 0.34), transparent 62%),
    linear-gradient(112deg, #0b1220 0%, #0d1730 60%, #101a3a 100%);
}
.tp-hero .wrap { padding: 44px 24px 38px; }
.tp-eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #c3c6ff;
}
.tp-eyebrow::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #8588ff, var(--magenta));
}
.tp-hero h1 {
  margin: 0 0 12px; font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.08; letter-spacing: -0.7px; overflow-wrap: anywhere;
}
.tp-hero h1 em { font-style: normal; color: #b9bcff; }
.tp-lede { max-width: 720px; color: #cfd3ea; font-size: clamp(0.98rem, 1.3vw, 1.06rem); line-height: 1.62; }
.tp-hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px;
  font-size: 12px; color: #aeb3cf;
}
.tp-hero-meta strong { color: #e7e9fb; font-weight: 700; }

/* page shell: TOC + content ---------------------------------------------- */
.tp-shell { padding: 34px 0 56px; }
.tp-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
.tp-toc {
  position: sticky; top: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 18px 16px; font-size: 13px;
}
.tp-toc h2 {
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.tp-toc ol { list-style: none; display: grid; gap: 7px; }
.tp-toc a { color: #333a52; font-weight: 600; }
.tp-toc a:hover { color: var(--blue); }
.tp-toc .tp-toc-cta {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  display: grid; gap: 6px; font-size: 12.5px; color: var(--muted);
}
.tp-toc .tp-toc-cta a { color: var(--ink); font-weight: 700; }

.tp-content { min-width: 0; }
.tp-content > section { padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tp-content > section:last-child { border-bottom: 0; margin-bottom: 0; }
.tp-content h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.2px;
  line-height: 1.25; margin-bottom: 12px;
}
.tp-content h3 { font-size: 15.5px; margin: 18px 0 6px; line-height: 1.35; }
.tp-content p, .tp-content li { color: #3c4358; font-size: 14.5px; line-height: 1.7; }
.tp-content p + p { margin-top: 10px; }
.tp-content ul, .tp-content ol { margin: 10px 0 0 20px; display: grid; gap: 7px; }
.tp-content ul li::marker { color: var(--blue); }
.tp-content a { color: var(--blue); font-weight: 600; }
.tp-content a:hover { text-decoration: underline; }
.tp-content strong { color: var(--ink); }

.tp-callout {
  display: flex; gap: 12px; padding: 15px 17px; margin: 14px 0 4px;
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--blue); border-radius: 10px;
  font-size: 13.5px; line-height: 1.65; color: #3c4358;
}
.tp-callout--warn { border-left-color: var(--magenta); }
.tp-callout strong { color: var(--ink); }
.tp-callout .tp-callout-mark { color: var(--blue); font-weight: 800; }
.tp-callout--warn .tp-callout-mark { color: var(--magenta); }

.tp-meta-line {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin: 0 0 16px; font-size: 12px; color: var(--muted);
}
.tp-meta-line strong { color: var(--ink); }
.tp-updated {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(27, 27, 255, 0.07); color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
}

/* hub cards --------------------------------------------------------------- */
.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-card {
  display: flex; flex-direction: column; gap: 9px; min-width: 0;
  padding: 22px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
a.tp-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tp-card h2, .tp-card h3 { font-size: 16.5px; line-height: 1.3; }
.tp-card p { color: var(--muted); font-size: 13.5px; line-height: 1.62; }
.tp-card .tp-link { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--blue); }
.tp-card .tp-link:hover { text-decoration: underline; }
.tp-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(27, 27, 255, 0.09); color: var(--blue);
  font-size: 13px; font-weight: 800; letter-spacing: 0.4px;
}
.tp-badge {
  display: inline-flex; align-items: center; width: max-content;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(27, 27, 255, 0.08); color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
}
.tp-badge--progress { background: #fff5e5; color: #a06000; }

/* generic table ----------------------------------------------------------- */
.tp-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 12px; }
.tp-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tp-table th, .tp-table td { text-align: left; padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tp-table th { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: #fbfbff; }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table td:first-child { font-weight: 700; color: var(--ink); }

/* support hub ------------------------------------------------------------- */
.tp-sla {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin: 18px 0 4px;
}
.tp-sla > div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.tp-sla b { display: block; font-size: 24px; line-height: 1.1; letter-spacing: -0.6px; }
.tp-sla b span { color: var(--blue); }
.tp-sla small { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }

.tp-contact-box {
  margin-top: 20px; padding: 24px; border-radius: 14px;
  background: var(--ink); color: #fff;
}
.tp-contact-box h2 { font-size: 18px; margin-bottom: 6px; color: #fff; }
.tp-contact-box p { color: #b8bdd6; font-size: 13.5px; line-height: 1.65; }
.tp-contact-box a { display: inline-block; margin-top: 8px; color: #fff; font-size: 17px; font-weight: 700; }
.tp-contact-box .btn { margin-top: 14px; }

/* reviews ----------------------------------------------------------------- */
.tp-review-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  padding: 20px 22px; margin: 6px 0 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
}
.tp-review-average { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.tp-review-stars { color: #e5a800; font-size: 18px; letter-spacing: 2px; }
.tp-review-count { font-size: 13px; color: var(--muted); }
.tp-review-list { display: grid; gap: 14px; }
.tp-review {
  padding: 18px 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
}
.tp-review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 6px; }
.tp-review-head strong { font-size: 14px; }
.tp-review-head time { font-size: 12px; color: var(--muted); }
.tp-review-rating { color: #e5a800; font-size: 13px; letter-spacing: 1.5px; }
.tp-review p { color: #3c4358; font-size: 14px; line-height: 1.65; }
.tp-empty {
  padding: 26px 22px; background: var(--white);
  border: 1px dashed var(--line-strong); border-radius: 12px;
  font-size: 13.5px; color: var(--muted); line-height: 1.65;
}
.tp-empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }

/* case studies ------------------------------------------------------------ */
.tp-case {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; min-width: 0;
}
.tp-case h2, .tp-case h3 { font-size: 18px; line-height: 1.3; }
.tp-case p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.tp-case .tp-case-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--muted); font-weight: 600; }
.tp-case .tp-link { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--blue); }

.tp-skeleton {
  display: grid; gap: 12px; padding: 20px 22px; margin-top: 14px;
  background: #fbfbff; border: 1px dashed var(--line-strong); border-radius: 12px;
}
.tp-skeleton b { font-size: 13px; color: var(--ink); }
.tp-skeleton span { display: block; height: 10px; border-radius: 6px; background: #e9ebf7; }
.tp-skeleton span.w70 { width: 70%; }
.tp-skeleton span.w50 { width: 50%; }

.state-box[hidden] { display: none !important; }

/* footer policy strip ----------------------------------------------------- */
.foot-links {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  padding: 16px 24px 0; margin-top: 6px;
  font-size: 12px; color: #b8bdd6;
}
.foot-links a { color: #d5d9ec; font-weight: 600; }
.foot-links a:hover { color: #fff; }
.foot-links span { color: #6f7796; }

/* responsive -------------------------------------------------------------- */
@media (max-width: 1000px) {
  .tp-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tp-toc { position: static; }
  .tp-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tp-grid, .tp-sla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tp-hero .wrap { padding: 36px 16px 30px; }
  .tp-shell { padding: 24px 0 40px; }
  .tp-grid, .tp-grid--2, .tp-sla { grid-template-columns: minmax(0, 1fr); }
  .tp-toc ol { grid-template-columns: minmax(0, 1fr); }
  .tp-card, .tp-case { padding: 18px; }
  .tp-content p, .tp-content li { font-size: 14px; }
  .tp-subnav a { padding: 11px 9px; }
  .tp-subnav .tp-subnav-label { display: none; }
  .tp-review-average { font-size: 34px; }
  .foot-links { padding: 14px 16px 0; }
}
