/* Template landing pages (/floor-plan-templates/<slug>): the pieces they add
   to landing.css's guide/legal page layout. Small text that carries meaning
   (the current page, sources, labels) uses --ink-2: --ink-3 is too light on
   white for text this size (about 3.2:1, below WCAG AA). */

.tpl-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 20px;
  font-size: 13.5px; color: var(--ink-2);
}
.tpl-crumbs [aria-hidden="true"] { color: var(--ink-3); }
.tpl-crumbs a { color: var(--accent); text-decoration: none; }
.tpl-crumbs a:hover { text-decoration: underline; }
.tpl-page h1 { margin-bottom: 16px; }
.tpl-page .legal-intro { margin-bottom: 26px; }
.tpl-page .legal-content h2[id] { scroll-margin-top: 82px; }

.tpl-figure {
  margin: 0 0 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tpl-figure img { display: block; width: 100%; height: auto; }
.tpl-figure figcaption {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; line-height: 1.5;
}

.tpl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 30px; }
.tpl-cta p { margin: 0; font-size: 14px; color: var(--ink-2); }
.tpl-cta.end {
  margin: 36px 0 0;
  padding: 22px;
  background: var(--accent-soft);
  border: 1px solid #ddd9ff;
  border-radius: var(--radius);
}
.tpl-cta.end b { display: block; width: 100%; color: var(--ink); font-size: 16px; }

.tpl-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  margin: 0 0 34px; padding: 0; list-style: none;
}
.tpl-facts li { min-width: 0; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tpl-facts b { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.tpl-facts span { display: block; margin-top: 3px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }

.tpl-table-wrap { margin: 4px 0 14px; overflow-x: auto; }
.tpl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tpl-table th, .tpl-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2); text-align: left; vertical-align: top;
}
.tpl-table th { color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tpl-table td:first-child { color: var(--ink); font-weight: 600; }
.legal-content p.tpl-note { font-size: 13.5px; color: var(--ink-2); }
.tpl-page .legal-content details p { font-size: 14.5px; }

.tpl-related { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.tpl-related > b {
  display: block; margin-bottom: 12px;
  color: var(--ink-2); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
}
.tpl-related ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px;
  margin: 0; padding: 0; list-style: none;
}
.tpl-related a { color: var(--accent); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.tpl-related a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .tpl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpl-related ul { grid-template-columns: 1fr; }
  .tpl-cta .btn { width: 100%; }
  .tpl-cta.end { padding: 18px; }
  .tpl-table { font-size: 13px; }
  .tpl-table th, .tpl-table td { padding: 8px 6px; }
}
