/* GPUIndia — /gpu-rental/ hub page styles (extends style.css design language) */
.rental-hero { padding: 44px 0 28px; text-align: center; }
.rental-hero .badge {
  display:inline-block; background:rgba(0,230,118,.08); color:var(--green);
  padding:6px 16px; border-radius:20px; font-size:13px;
  border:1px solid rgba(0,230,118,.2); margin-bottom:16px;
}
.rental-hero h1 { font-size:clamp(26px,5.5vw,40px); font-weight:800; letter-spacing:-1px; line-height:1.15; margin-bottom:12px; }
.rental-hero h1 span { background:linear-gradient(135deg,var(--green),var(--blue)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.rental-hero p { color:var(--text-dim); font-size:15px; max-width:640px; margin:0 auto 8px; }
.rental-hero .updated { font-size:13px; color:var(--text-dim); }

/* Controls (GPU/mode filter / search / India) */
.controls { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:20px 0 6px; }
.controls select, .controls input[type=search] {
  background:var(--surface); border:1px solid var(--border); border-radius:10px;
  color:var(--text); padding:12px 14px; font-size:14px; min-height:46px; min-width:150px;
}
.controls select:focus, .controls input:focus { outline:none; border-color:var(--blue); }
.controls input[type=search] { flex:1 1 200px; }
.chip-row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:8px; }
.chip-row label { display:inline-flex; align-items:center; gap:6px; color:var(--text-dim); font-size:13px; cursor:pointer; min-height:44px; }
.chip-row input[type=checkbox] { width:16px; height:16px; accent-color:var(--green); }
.result-count { color:var(--text-dim); font-size:12px; margin:6px 0 10px; }

/* GPU title under table */
.gpu-title-wrap { margin-top:24px; }
.gpu-title-wrap h2 { font-size:20px; letter-spacing:-.4px; }
.gpu-title-wrap .sub { color:var(--text-dim); font-size:13px; }

/* Summary cards */
.summary-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin:16px 0 24px; }
.summary-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:16px; }
.summary-card.best { border-color:rgba(0,230,118,.4); background:linear-gradient(180deg,rgba(0,230,118,.06),var(--card)); }
.summary-card .sum-label { font-size:11px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.4px; font-weight:600; }
.summary-card .sum-val { font-size:22px; font-weight:800; color:var(--green); font-family:'JetBrains Mono',monospace; margin:4px 0 2px; }
.summary-card .sum-note { font-size:12px; color:var(--text-dim); }
.summary-card .sum-inr { font-size:12px; color:var(--text-dim); font-weight:400; margin-left:2px; }
.spot-save { color:var(--green); font-weight:700; }

/* Two-column H100 calc */
.calc-duo { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; }
.calc-duo .calc-wrapper { width:100%; }
.calc-duo h3 { font-size:15px; margin-bottom:12px; color:var(--text); }
.calc-duo .calc-group { margin-bottom:12px; }
.calc-duo .calc-group label { display:block; font-size:11px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.4px; font-weight:600; margin-bottom:6px; }
.calc-duo .calc-group select,.calc-duo .calc-group input{ background:var(--bg); border:1px solid var(--border); border-radius:8px; color:var(--text); padding:12px; font-size:14px; min-height:44px; width:100%; }
.calc-duo .calc-group select:focus,.calc-duo .calc-group input:focus{ outline:none; border-color:var(--blue); }
.calc-results { margin-top:14px; padding-top:14px; border-top:1px solid var(--border); min-height:70px; }

/* Prose sections on per-GPU page */
.rental-prose { max-width:720px; margin:0 auto; color:var(--text-dim); font-size:15px; line-height:1.7; }
.rental-prose h3 { color:var(--text); font-size:18px; margin:22px 0 8px; }
.rental-prose p { margin-bottom:12px; }
.rental-prose ul { margin:0 0 12px 20px; }
.rental-prose li { margin-bottom:6px; }
.rental-prose strong { color:var(--text); }
.rental-prose .h100-feature { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; margin:16px 0; }
.rental-prose .feat { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:12px; text-align:center; }
.rental-prose .feat .fv { font-size:18px; font-weight:800; color:var(--green); font-family:'JetBrains Mono',monospace; }
.rental-prose .feat .fl { font-size:11px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.4px; }

/* Per-GPU cards */
.gpu-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; }
.gpu-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:20px; display:flex; flex-direction:column; gap:8px; }
.gpu-card:hover { border-color:#33335a; }
.gpu-card .gpu-head { border-bottom:1px solid var(--border); padding-bottom:10px; }
.gpu-card .gpu-name { font-size:17px; font-weight:800; }
.gpu-card .gpu-meta { font-size:12px; color:var(--text-dim); }
.gpu-card .gpu-price-line { display:flex; align-items:baseline; gap:6px; }
.gpu-card .gbig { font-size:26px; font-weight:800; color:var(--green); font-family:'JetBrains Mono',monospace; }
.gpu-card .gsmall { font-size:12px; color:var(--text-dim); }
.gpu-card .gsmall.strong { color:var(--text); font-weight:600; }
.gpu-card .gpu-prov { font-size:12px; color:var(--text-dim); min-height:18px; }
.gpu-card .btn { margin-top:auto; }

/* Section spacing */
.rental-section { padding:40px 0; }
.rental-section + .rental-section { border-top:1px solid var(--border); }
.rental-section h2 { font-size:clamp(19px,3.5vw,26px); text-align:center; letter-spacing:-.5px; margin-bottom:8px; }
.rental-section .sec-sub { text-align:center; color:var(--text-dim); font-size:14px; margin-bottom:24px; }

/* Rental tables: provider anchor links render in near-white (--text) to match the
   minimalist dark theme, not the site's default blue link color */
.rental-section td a { color: var(--text); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.rental-section td a:hover { text-decoration: underline; color: var(--text); }
.rental-section td a.external { color: var(--text); }
@media (max-width:640px){
  .table-wrapper{ border:none; overflow:visible; }
  /* Card-convert ALL price tables on rental hub + per-GPU pages, not just specific IDs.
     Targets any table that is a direct child of .table-wrapper and carries the standard
     thead/tbody/data-label structure. Keeps 618px-wide tables accessible on mobile. */
  .table-wrapper > table { min-width:0; display:block; border:0; }
  .table-wrapper > table thead { display:none; }
  .table-wrapper > table tbody { display:grid; grid-template-columns:1fr; gap:12px; }
  .table-wrapper > table tbody tr { display:grid; grid-template-columns:1fr; gap:4px 12px; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:14px 16px; }
  .table-wrapper > table tbody td { display:flex; justify-content:space-between; align-items:center; border:none; padding:6px 0; white-space:normal; position:static; background:none; }
  .table-wrapper > table tbody td:first-child { grid-column:1/-1; font-size:14px; font-weight:700; border-bottom:1px solid var(--border); padding-bottom:8px; margin-bottom:4px; position:static; background:none; }
  .table-wrapper > table tbody td::before { content:attr(data-label); color:var(--text-dim); font-size:11px; text-transform:uppercase; letter-spacing:.4px; font-weight:600; }
  .table-wrapper > table tbody tr.loading-row{ display:none; }
}
