/* Commands (tvc-), guides (tvg-), help (tvh-) and pricing guide (tvp-) pages — see trivus-storefront.js. */

/* ── Commands ─────────────────────────────────────────────────────────────── */
.tvc-tips { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; }
.tvc-tips li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #1f2428; border-radius: 12px; background: #101416; }
.tvc-tips p { margin: 0; color: #aab4b5; font-size: 13.5px; line-height: 1.6; }
.tvc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.tvc-side { position: sticky; top: 84px; display: grid; gap: 12px; }
.tvc-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid #2a3034; border-radius: 11px; background: #0f1315; }
.tvc-search:focus-within { border-color: var(--t-accent, #9fdcc8); }
.tvc-search svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #8e979a; stroke-width: 2; stroke-linecap: round; }
.tvc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #e8eceb; font: inherit; font-size: 14px; }
.tvc-systems { display: grid; gap: 4px; }
.tvc-systems button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: #c7cecf;
  font: inherit; font-size: 14px; text-align: start; cursor: pointer;
}
.tvc-systems button svg { width: 18px; height: 18px; flex-shrink: 0; color: #8e979a; }
.tvc-systems button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvc-systems button b { min-width: 26px; padding: 2px 7px; border-radius: 999px; background: #181d20; color: #8e979a; font-size: 12px; font-weight: 600; text-align: center; }
.tvc-systems button:hover { background: #14181b; }
.tvc-systems button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--t-accent, #9fdcc8) 35%, transparent); background: color-mix(in srgb, var(--t-accent, #9fdcc8) 10%, transparent); color: #fff; }
.tvc-systems button[aria-pressed="true"] svg, .tvc-systems button[aria-pressed="true"] b { color: var(--t-accent, #9fdcc8); }
.tvc-main .tv-command-list { display: grid; gap: 28px; }
.tvc-group-head { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.tvc-group-head .tv-symbol { flex-shrink: 0; margin: 0; }
.tvc-group-head .tv-text-link { flex-shrink: 0; white-space: nowrap; }
.tvc-group-head div { flex: 1; min-width: 0; }
.tvc-group-head h2 { margin: 0; font-size: 20px; color: #fff; }
.tvc-group-head p { margin: 2px 0 0; color: #8e979a; font-size: 13px; }
.tvc-rows { display: grid; border: 1px solid #1f2428; border-radius: 12px; overflow: hidden; background: #0f1315; }
/* The rows keep the old .tv-command class for filtering; drop the old card look. */
.tvc-rows .tvc-row { padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; }
.tvc-rows .tvc-row + .tvc-row { border-top: 1px solid #1a1f22; }
.tv-site .tv-command-group > .tvc-group-head { flex-wrap: nowrap; gap: 12px; }
.tv-site .tv-command-group > .tvc-group-head > div { flex: 1 1 auto; }
.tv-site .tv-command-group > .tvc-group-head > a { flex: 0 0 auto; }
.tvc-row summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 18px; align-items: center; gap: 14px;
  min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none;
}
.tvc-row summary::-webkit-details-marker { display: none; }
.tvc-row summary:hover { background: #12171a; }
.tvc-row summary:focus-visible { outline: 2px solid var(--t-accent, #9fdcc8); outline-offset: -2px; }
.tvc-name { padding: 4px 9px; border-radius: 7px; background: #172022; color: var(--t-accent, #9fdcc8); font-size: 13.5px; white-space: nowrap; }
.tvc-desc { color: #c7cecf; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvc-chevron { width: 18px; height: 18px; fill: none; stroke: #8e979a; stroke-width: 2; transition: transform .15s ease; }
.tvc-row[open] .tvc-chevron { transform: rotate(180deg); }
.tvc-row[open] .tvc-desc { white-space: normal; }
.tvc-details { padding: 4px 16px 16px; display: grid; gap: 10px; }
.tvc-details dl { display: grid; gap: 8px; margin: 0; }
.tvc-details dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.tvc-details dt { color: #8e979a; font-size: 13px; }
.tvc-details dd { margin: 0; color: #dfe4e3; font-size: 14px; }
.tvc-details code { padding: 2px 7px; border-radius: 6px; background: #181d20; color: #e8eceb; font-size: 13px; }
.tvc-aliases { display: flex; flex-wrap: wrap; gap: 6px; }
.tvc-steps-title { margin: 4px 0 0; color: #8e979a; font-size: 13px; }
.tvc-steps { margin: 0; padding-inline-start: 20px; color: #c7cecf; font-size: 14px; line-height: 1.7; }

/* ── Guides ───────────────────────────────────────────────────────────────── */
.tvg-start { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 36px; padding: 0; counter-reset: none; }
.tvg-start li { display: flex; gap: 14px; padding: 18px; border: 1px solid #1f2428; border-radius: 14px; background: #101416; }
.tvg-start strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.tvg-start p { margin: 0; color: #aab4b5; font-size: 13.5px; line-height: 1.6; }
.tvg-num { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--t-accent, #9fdcc8); color: var(--t-accent-ink, #0b1a16); font-weight: 800; }
.tvg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tvg-card {
  display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid #1f2428; border-radius: 14px;
  background: #101416; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.tvg-card:hover { border-color: color-mix(in srgb, var(--t-accent, #9fdcc8) 45%, transparent); transform: translateY(-2px); }
.tvg-card h2 { margin: 6px 0 0; font-size: 18px; color: #fff; }
.tvg-card p { margin: 0; color: #aab4b5; font-size: 14px; line-height: 1.6; }
.tvg-card small { color: #8e979a; }
.tvg-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--t-accent, #9fdcc8); font-weight: 600; font-size: 14px; }
.tvg-open svg { width: 16px; height: 16px; }
[dir="rtl"] .tvg-open svg, [dir="rtl"] .tv-text-link svg { transform: scaleX(-1); }
.tvg-title { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.tvg-title .tv-section-head { margin: 0; }
.tvg-steps { list-style: none; counter-reset: step; display: grid; gap: 10px; margin: 0 0 8px; padding: 0; }
.tvg-steps li { counter-increment: step; position: relative; padding: 14px 16px; padding-inline-start: 56px; border: 1px solid #1f2428; border-radius: 12px; background: #101416; color: #dfe4e3; line-height: 1.6; }
.tvg-steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 14px; top: 12px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--t-accent, #9fdcc8) 16%, transparent); color: var(--t-accent, #9fdcc8); font-weight: 800; font-size: 14px;
}
.tv-toc { position: sticky; top: 84px; align-self: start; }
.tv-toc b { margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; background: #181d20; color: #8e979a; font-size: 12px; }
.tvg-neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.tvg-neighbour { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #1f2428; border-radius: 12px; background: #101416; color: inherit; text-decoration: none; }
.tvg-neighbour:last-child { text-align: end; }
.tvg-neighbour small { color: #8e979a; }
.tvg-neighbour strong { color: var(--t-accent, #9fdcc8); }
.tvg-neighbour:hover { border-color: color-mix(in srgb, var(--t-accent, #9fdcc8) 45%, transparent); }

/* ── Help ─────────────────────────────────────────────────────────────────── */
.tvh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 48px; }
.tvh-card { display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid #1f2428; border-radius: 14px; background: #101416; }
.tvh-card h2 { margin: 6px 0 0; font-size: 18px; color: #fff; }
.tvh-card p { margin: 0 0 6px; color: #aab4b5; font-size: 14px; line-height: 1.6; }
.tvh-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 24px 28px; border: 1px solid color-mix(in srgb, var(--t-accent, #9fdcc8) 28%, transparent); border-radius: 16px; background: linear-gradient(135deg, #0f1a18, #101416); }
.tvh-banner h2 { margin: 0 0 6px; color: #fff; font-size: 20px; }
.tvh-banner p { margin: 0; max-width: 620px; color: #aab4b5; font-size: 14px; line-height: 1.6; }

/* ── Pricing guide (under the store) ──────────────────────────────────────── */
.tvp-guide .home5-plans { margin-bottom: 28px; }
.tvp-steps { margin-bottom: 40px; }

/* ── Home: reviews strip (moves like the servers strip) ───────────────────── */
.tv-reviews-strip { margin-block: 56px; padding-block: 8px 4px; overflow: hidden; }
.tv-reviews-strip-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tv-reviews-strip-head h2 { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 38px); }
.tv-reviews-track { gap: 16px; align-items: stretch; padding-block: 4px; }
.tv-review-pill {
  display: flex; align-items: flex-start; gap: 12px; flex: none; width: 320px; padding: 16px 18px;
  border: 1px solid #142825; border-radius: 18px; background: rgba(8, 17, 17, .85);
}
.tv-review-pill img, .tv-review-pill .tv-review-initial { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #12201d; box-shadow: 0 0 0 2px rgba(55, 218, 195, .18); }
.tv-review-pill .tv-review-initial { display: grid; place-items: center; color: var(--t-accent, #9fdcc8); font-weight: 800; }
.tv-review-pill > div { display: grid; gap: 4px; min-width: 0; }
.tv-review-pill-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tv-review-pill-head strong { overflow: hidden; color: #e6f6f1; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.tv-review-pill .tv-review-stars { color: #f5c451; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.tv-review-pill .tv-review-stars span { color: #2a3a37; }
.tv-review-pill p { margin: 0; color: #c0ded5; font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* ── Phones and tablets ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .tvh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tvc-layout { grid-template-columns: 1fr; gap: 16px; }
  .tvc-side { position: sticky; top: 64px; z-index: 5; padding: 10px 0; background: var(--t-bg, #0e1114); }
  .tvc-systems { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tvc-systems::-webkit-scrollbar { display: none; }
  .tvc-systems button { width: auto; flex-shrink: 0; min-height: 36px; border-color: #22292c; border-radius: 999px; }
  .tvc-systems button span { overflow: visible; }
  .tvc-tips, .tvg-start { grid-template-columns: 1fr; }
  .tv-toc { position: static; }
}
@media (max-width: 560px) {
  .tvh-grid { grid-template-columns: 1fr; }
  .tvc-row summary { grid-template-columns: minmax(0, 1fr) 18px; gap: 6px 10px; }
  .tvc-name { justify-self: start; }
  .tvc-desc { grid-column: 1; white-space: normal; font-size: 13.5px; }
  .tvc-chevron { grid-row: 1; grid-column: 2; }
  .tvc-details dl div { grid-template-columns: 1fr; gap: 2px; }
  .tvg-neighbours { grid-template-columns: 1fr; }
  .tvg-neighbour:last-child { text-align: start; }
}
