/* ==========================================================================
   HowVPS — Provider review detail (review.html)
   Loaded after styles.css and blog.css; reuses .prose, .mini, .pc, .specs,
   .summary, .score-bar and the shared tokens.
   ========================================================================== */

/* Head --------------------------------------------------------------------- */
.detail-head { padding: 32px 0 36px; }
.detail-head__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-bottom: 20px; border-bottom: 1px solid var(--divider); }
.back-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px;
  border: 1px solid var(--divider); border-radius: var(--radius-pill); background: var(--tile);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.back-pill:hover { color: var(--primary); }
.crumbs--caps ol { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.crumbs--caps li + li::before { content: "/"; }
.crumbs--caps [aria-current] { font-weight: 700; }

.detail-head__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.detail-head__chips .chip { padding: 4px 10px; font-size: 11px; }
.detail-head__title { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: clamp(28px, 4vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.detail-head__tagline { max-width: 760px; margin-top: 16px; font-family: var(--font-display); font-size: 17px; color: var(--ink-2); }

.statline { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; padding: 16px 0; border-block: 1px solid var(--divider); }
.statline > div { display: flex; align-items: center; gap: 6px; }
.statline dt { order: 3; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.statline dd { order: 2; font-size: 15px; font-weight: 700; }
.statline .icon { order: 1; color: var(--ink-3); }
.statline .icon--star { color: var(--gold); }
.statline .icon--up { color: var(--up); }

.detail-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.btn--line { border: 1px solid var(--primary); color: var(--primary); }
.btn--line:hover { background: var(--primary-soft); }
.btn--soft { border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); background: var(--primary-soft); color: var(--primary); }
.vote { display: inline-flex; border: 1px solid var(--divider); border-radius: var(--radius-pill); background: var(--tile); }
.vote button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vote button + button { border-left: 1px solid var(--divider); }
.vote button:hover, .vote button[aria-pressed="true"] { color: var(--primary); }

/* Body grid ---------------------------------------------------------------- */
.detail { padding: 40px 0 64px; border-top: 1px solid var(--divider); background: var(--parchment); }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.detail__main, .detail__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

/* Awards */
.awards { padding: 22px; }
.awards__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 8px; background: var(--card-hover); }
.awards__title { font-size: 14px; font-weight: 600; }
.awards__sub { font-size: 11px; color: var(--ink-2); }
.awards__head .chip { margin-left: auto; padding: 5px 10px; }
.medal { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); }
.awards__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.award { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border: 1px solid var(--divider); border-radius: 16px; }
.award__body { min-width: 0; flex: 1; }
.award__kicker { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }
.award__name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award time { font-size: 11px; color: var(--ink-3); white-space: nowrap; }

/* In-page section nav (sticks under the header) */
.section-nav { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; max-width: 100%; justify-self: start; overflow-x: auto; scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav .segmented__btn[aria-current] { border-color: var(--border); background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.section-nav .count { padding: 0 6px; font-size: 11px; color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.section-nav .icon--violet { color: var(--violet); } .section-nav .icon--up { color: var(--up); } .section-nav .icon--gold { color: var(--gold); }

/* Content sheets */
.sheet { padding: 36px; scroll-margin-top: 112px; }
.sheet .prose { margin-top: 0; }
.sheet .prose > h2:first-child { margin-top: 0; }
.sheet .table-scroll { margin-top: 1.1em; }
.sheet__tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--divider); }

.breakdown { display: grid; gap: 12px; margin-top: 1.1em; padding: 0 !important; list-style: none !important; font-family: var(--font-sans); font-size: 14px; }
.breakdown li { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; align-items: center; gap: 14px; margin: 0 !important; }
.breakdown .score-bar { width: 100%; height: 8px; }
.breakdown b { text-align: right; font-variant-numeric: tabular-nums; }
.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 1.1em; font-family: var(--font-sans); }
.pros-cons ul { padding: 0; list-style: none; }
.sheet .specs { margin-top: 1.1em; font-family: var(--font-sans); }

.plan-best { background: var(--primary-soft); }
.summary .tag-best { margin-left: 8px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--primary); color: #fff; font-size: 10px; font-weight: 600; }

.reviews { display: grid; margin-top: 8px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--divider); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.review__name { font-weight: 600; }
.review__head time { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.review__title { margin-top: 8px; font-size: 15px; font-weight: 600; }
.review__text { margin-top: 4px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.sheet__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--divider); }
.sheet__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }

/* Sidebar ------------------------------------------------------------------ */
.side-card { padding: 20px; }
.side-card__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.side-card__title .icon { color: var(--ink-3); }
.side-card > p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

.verdict { text-align: center; }
.verdict__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.verdict .score { margin-top: 6px; font-size: 44px; }
.verdict .score-bar { width: 100%; margin-top: 12px; }
.verdict__actions { display: grid; gap: 8px; margin-top: 16px; }
.verdict__note { font-size: 11px !important; color: var(--ink-3) !important; }

.chart { margin-top: 12px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font: 10px var(--font-sans); fill: var(--ink-3); }
.chart__grid { stroke: var(--divider); stroke-width: 1; }
.chart__area { fill: var(--gold); opacity: .16; }
.chart__line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.chart figcaption { margin-top: 6px; font-size: 11px; color: var(--ink-3); }

.cap-label { margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill-list a { display: inline-block; padding: 3px 10px; border: 1px solid var(--divider); border-radius: var(--radius-pill); background: var(--card-hover); font-size: 12px; font-weight: 600; }
.pill-list a:hover { border-color: var(--primary); color: var(--primary); }
.topic-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.topic-links a { font-size: 12px; font-weight: 500; color: var(--primary); }
.topic-links a:hover { text-decoration: underline; }

.kv { display: grid; gap: 10px; margin-top: 12px; }
.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kv dt { font-size: 14px; color: var(--ink-2); }
.kv dd { font-size: 14px; font-weight: 600; text-align: right; }
.kv dd a { color: var(--primary); }

.talk { display: grid; margin-top: 4px; }
.talk li { padding: 12px 0; border-bottom: 1px solid var(--divider); }
.talk li:last-child { border-bottom: 0; padding-bottom: 0; }
.talk__head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; }
.talk__head time { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.talk p { margin-top: 4px; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.talk__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 11px; font-weight: 600; }
.talk__foot a { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); }

.detail .more { margin-top: 48px; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .detail__grid { grid-template-columns: minmax(0, 1fr); }
  .detail__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .awards__list { grid-template-columns: minmax(0, 1fr); }
  .detail__side { grid-template-columns: minmax(0, 1fr); }
  .sheet { padding: 22px 18px; }
  .pros-cons { grid-template-columns: minmax(0, 1fr); }
  .breakdown li { grid-template-columns: 96px minmax(0, 1fr) 34px; gap: 10px; }
  .awards__head .chip { display: none; }
  .detail-head__actions .btn { flex: 1 1 auto; }
}
