/* RV Storage Canada – guides, tools and forms (v20261010). Extends site.css; uses its design tokens. */

/* ── Article layout ───────────────────────────────────── */
.article { min-width: 0; }
.article > p, .article section > p, .article li { line-height: 1.7; }
.article p { margin: 0 0 14px; color: #2b303b; }
.article .lead-in { font-size: 1.08rem; color: var(--ink); }
.article section { margin: 34px 0 0; scroll-margin-top: 90px; }
.article h2 { font-family: var(--font-head); font-size: clamp(1.35rem, 3.2vw, 1.75rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--red); }
.article h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; margin: 20px 0 8px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 7px; color: #2b303b; }
.article a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(189,8,28,.35); }
.article a:hover { text-decoration-color: var(--red); }
.article a, .article a:hover { overflow-wrap: anywhere; }
.article .muted { color: var(--mid); font-size: .92rem; }
.guide-meta { color: var(--mid); font-size: .88rem; margin: 0 0 18px; }

.takeaways { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 24px; box-shadow: var(--shadow); }
.takeaways h2 { border: 0; padding: 0; margin: 0 0 8px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.takeaways ul { margin: 0 0 0 20px; }
.takeaways li { margin-bottom: 6px; }

.guide-toc { margin: 0 0 6px; }
.guide-toc::before { content: 'On this page'; width: 100%; font-weight: 600; color: var(--mid); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }

.callout { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 34px 0 0; }
.callout h2 { border: 0; padding: 0; font-size: 1.15rem; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 16px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .94rem; }
.data-table caption { text-align: left; font-weight: 600; padding: 12px 14px 4px; color: var(--mid); font-size: .85rem; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); line-height: 1.5; }
.data-table thead th { background: var(--slate); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .86rem; letter-spacing: .03em; border-bottom: 0; }
.data-table tbody th { font-weight: 600; background: #fafbfc; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr.is-best td, .data-table tr.is-best th { background: #eafaf1; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.related { margin-top: 38px; }
.related h2 { margin-bottom: 14px; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.guide-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(189,8,28,.35); text-decoration: none; }
.guide-card .kicker { display: block; font-size: .72rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.guide-card h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; line-height: 1.25; }
.guide-card p { margin: 0; color: var(--mid); font-size: .93rem; line-height: 1.55; }
.guide-card:hover h3 { color: var(--red); }
.province-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.province-links a { display: inline-block; padding: 6px 14px; background: #fff; border: 1px solid var(--border); border-radius: 999px; color: var(--mid); font-weight: 500; font-size: .9rem; text-decoration: none; }
.province-links a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Tools (calculator, checklist) ────────────────────── */
.tool-main { padding-bottom: 20px; }
.tool-intro { color: var(--mid); margin: 26px 0 18px; font-size: 1.02rem; max-width: 760px; }
.tool-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 0 0 18px; box-shadow: var(--shadow); min-width: 0; }
fieldset.tool-panel { border: 1px solid var(--border); }
.tool-panel > h2, .tool-panel > legend, legend.tool-legend { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; padding: 0; margin: 0 0 12px; float: none; width: auto; }
legend.tool-legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
legend.tool-legend + * { clear: both; }
.tool-panel p { color: var(--mid); font-size: .94rem; margin: 10px 0 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-field { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); }
.tool-field small { display: block; font-weight: 400; color: var(--mid); font-size: .8rem; line-height: 1.4; margin-top: 4px; }
.tool-field input, .tool-field select { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-family: var(--font-body); font-size: .97rem; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.tool-field input:focus, .tool-field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(189,8,28,.12); }
.tool-field input:disabled, .tool-field select:disabled { background: var(--bg); color: var(--muted); }
.tool-check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0 0 14px; cursor: pointer; }
.tool-check input { width: 18px; height: 18px; accent-color: var(--red); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 0; }
.btn-outline { display: inline-block; background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .97rem; padding: 11px 24px; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; transition: border-color .15s, color .15s; }
.btn-outline:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.tool-error { background: #fdf0f0; border: 1.5px solid var(--red); color: var(--red-dark); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin: 0 0 16px; }
.tool-error:empty { display: none; }
.result-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.result-summary li { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: .88rem; color: var(--mid); }
.result-best { background: #eafaf1; border: 1.5px solid #27ae60; color: #1e6e3f; border-radius: 12px; padding: 12px 16px; font-weight: 600; margin: 14px 0; }
.result-best:empty { display: none; }
.tool-fineprint { font-size: .86rem; color: var(--mid); }
.assumptions { margin: 0 0 0 20px; }
.assumptions li { margin-bottom: 8px; line-height: 1.6; color: #2b303b; }

/* Checklist */
.progress-bar { position: sticky; top: 74px; z-index: 5; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; margin: 0 0 18px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); font-size: .9rem; font-weight: 600; }
.progress-track { flex: 1; height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; width: 0; background: var(--red); transition: width .2s; }
.check-group h2 { padding-left: 12px; border-left: 4px solid var(--red); }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); line-height: 1.55; cursor: pointer; color: var(--ink); font-size: .96rem; }
.check-item:first-of-type { border-top: 0; }
.check-item input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red); cursor: pointer; }
.check-item:has(input:checked) span { color: var(--mid); }
.writing-line { display: block; border-bottom: 1px solid #8b9c94; height: 30px; }
.print-only { display: none; }

/* ── Focus ────────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #bd8624; outline-offset: 2px; }

@media (max-width: 860px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tool-grid, .tool-grid.two { grid-template-columns: 1fr; }
  .tool-panel { padding: 16px; }
  .progress-bar { top: 66px; }
}

/* ── Print ────────────────────────────────────────────── */
@media print {
  @page { margin: 14mm; }
  header, footer, .page-hero, .sidebar, .ad-banner, .no-print, .progress-bar, .tool-intro { display: none !important; }
  body { background: #fff; font-size: 10pt; color: #000; }
  .container { max-width: none; padding: 0; }
  .content-wrap { display: block; padding: 0; }
  .print-only { display: block; }
  h1.print-only { font-family: var(--font-head); font-size: 20pt; margin: 0 0 8pt; }
  .tool-panel { box-shadow: none; border: 0; padding: 0; margin: 0 0 10pt; break-inside: avoid; }
  .tool-panel > h2, .article h2 { font-size: 13pt; border-left-width: 3px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8pt; }
  .tool-field input { border: 0; border-bottom: 1px solid #777; border-radius: 0; padding: 4px 0; background: #fff; box-shadow: none; }
  .tool-field input::placeholder { color: transparent; }
  .check-item { break-inside: avoid; padding: 6pt 0; }
  a { color: #000; text-decoration: none; }
  .data-table { min-width: 0; font-size: 9pt; }
  .data-table thead th { background: #eee; color: #000; }
}

/* Homepage "Plan your storage" cards (reuse .why-card from site.css) */
a.guide-link { display: block; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
a.guide-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(189,8,28,.35); text-decoration: none; }
a.guide-link:hover h3 { color: var(--red); }
.guide-grid { margin-bottom: 0; }

.guide-grid { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
.form-group label.fb-consent { display: flex; font-weight: 400; }
