/* ==========================================================================
   RuggedRides Export — Landed-Cost Calculator
   Isolated from app.css/blog.css/answers.css on purpose — loaded only on
   tpl === 'calculator', per the standing CSS-collision-avoidance convention.
   ========================================================================== */

/* hero stat strip */
.calc-hero-stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.22); }
.chs-item { display: flex; flex-direction: column; }
.chs-num { font-family: var(--font-head); font-size: 26px; color: #fff; line-height: 1.1; }
.chs-label { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--sand); margin-top: 4px; opacity: .9; }

/* vehicle preview card, shown once a vehicle is selected */
.veh-preview-card { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: -16px 0 24px; }
.veh-preview-card .veh-img, .veh-preview-card .veh-ph { width: 120px; height: 76px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.vpc-body h4 { margin: 0 0 4px; font-family: var(--font-head); font-size: 17px; color: var(--graphite); }
.vpc-meta { margin: 0 0 4px; font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .3px; }
.vpc-price { margin: 0; font-weight: 700; color: var(--rust); font-size: 16px; }
.vpc-price small { color: var(--ink-soft); font-size: 11px; text-transform: uppercase; font-weight: 400; }

/* proportion bars behind each cost-table row label */
.cost-table td:first-child { position: relative; z-index: 0; }
.cost-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(193,80,31,0.14), rgba(193,80,31,0.05)); z-index: -1; border-radius: 3px; }
.cost-total { background: linear-gradient(90deg, #fbf3ec, transparent); }
.cost-total td { padding-top: 14px; padding-bottom: 14px; font-size: 19px; }

.cost-unknown { color: var(--ink-soft); font-style: italic; font-size: 13px; text-align: center !important; padding: 12px !important; }

/* unverified-destination honest notice */
.notice-unverified { border-left-color: var(--olive); background: #eef1f4; color: var(--olive-dark); }

/* ship-mode comparison strip */
.ship-compare { margin: 22px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ship-compare h4 { margin: 0 0 14px; font-family: var(--font-head); font-size: 15px; color: var(--graphite); }
.ship-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc-item { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.sc-item.sc-current { border-color: var(--rust); background: #fbf3ec; }
.sc-mode { font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-soft); }
.sc-mode em { color: var(--rust); font-style: normal; font-weight: 700; }
.sc-total { font-family: var(--font-head); font-size: 20px; color: var(--graphite); }
.sc-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-soft); }

/* contextual links after a successful calc */
.calc-links { margin: 18px 0 6px; }
.calc-links .cl-main { display: inline-block; font-weight: 700; color: var(--rust); }

/* methodology block */
.calc-method { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line); }
.calc-method ol { padding-left: 22px; margin: 14px 0 18px; }
.calc-method li { margin-bottom: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.calc-method li strong { color: var(--graphite); }

/* related-answers card grid */
.calc-faq-links { margin-top: 46px; }
.cfl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.cfl-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.cfl-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); text-decoration: none; }
.cfl-card img { width: 100%; height: 110px; object-fit: cover; }
.cfl-card span { padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: var(--graphite); line-height: 1.4; }

.calc-faq-accordion { margin-top: 36px; }

/* cross-market comparison grid */
.market-compare { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.mc-sub { color: var(--ink-soft); font-size: 14px; margin: 4px 0 16px; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.mc-card { display: flex; flex-direction: column; gap: 5px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.mc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); text-decoration: none; }
.mc-card.mc-current { border-color: var(--rust); background: #fbf3ec; }
.mc-country { font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--ink-soft); font-weight: 600; }
.mc-country em { color: var(--rust); font-style: normal; }
.mc-total { font-family: var(--font-head); font-size: 22px; color: var(--graphite); }
.mc-detail { font-size: 12px; color: var(--ink-soft); }

@media (max-width: 700px) {
  .veh-preview-card { flex-direction: column; align-items: flex-start; }
  .ship-compare-grid { grid-template-columns: 1fr; }
  .calc-hero-stats { gap: 18px 28px; }
}
