/* Free printables on /tools/ (#1740): house rules sign, check-out card, pet sitter sheet, house manual (#1764). */
.pt-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.75rem; align-items: start; margin-top: 1.25rem; }
@media (max-width: 860px) { .pt-tool { grid-template-columns: minmax(0, 1fr); } }
.pt-tool form { display: grid; gap: 1rem; }
.pt-tool textarea { width: 100%; font: inherit; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; resize: vertical; }
.pt-private { border-left: 4px solid var(--accent); padding: 0.75rem 1rem; border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, transparent); margin: 0; }
.pt-group { display: grid; gap: 0.6rem; border: 1px solid var(--border); border-radius: 14px; padding: 0.85rem 1rem; margin: 0; min-width: 0; }
.pt-group legend { font-weight: 600; padding: 0 0.35rem; }
.pt-check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 500; }
.pt-check:has(input[type="time"], input[type="number"]) { flex-wrap: wrap; align-items: center; }
.pt-check input[type="checkbox"], .pt-check input[type="radio"] { width: auto; flex: none; margin: 0.3em 0 0; }
.pt-check:has(input[type="time"], input[type="number"]) input[type="checkbox"] { margin-top: 0; }
.pt-check input[type="time"], .pt-check input[type="number"] { width: 7.5rem; padding: 0.3rem 0.5rem; }
.pt-check input[type="number"] { width: 4.5rem; }
.pt-choice { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.pt-actions .field-hint { margin: 0; }
.pt-preview { position: sticky; top: 1rem; }
.pt-faq { border-top: 1px solid var(--border); padding: 0.75rem 0; }
.pt-faq summary { cursor: pointer; font-weight: 600; }
.pt-faq p { margin: 0.5rem 0 0; }
.pt-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0.75rem; padding: 0; margin: 0; list-style: none; }
.pt-more a { display: block; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; font-weight: 600; text-decoration: none; }
.pt-more a span { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }

/* The card itself. Sizes are in em so print can scale it to the paper. */
.pt-card { background: #fff; color: #171528; border: 2px dashed #cfcabf; border-radius: 18px; padding: 1.6em 1.5em; font-size: 1rem; overflow-wrap: anywhere; }
.pt-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.9em; line-height: 1.15; margin: 0; text-align: center; }
.pt-card__sub { text-align: center; color: #57546a; margin: 0.25em 0 0; }
.pt-card__thanks { text-align: center; font-family: var(--font-display); font-size: 1.15em; margin: 1.1em 0 0; }
.pt-made { margin: 1em 0 0; font-size: 0.75em; color: #8a8799; text-align: center; }
.pt-qr { display: flex; gap: 0.9em; align-items: center; border-top: 1px solid #e6e1d6; margin-top: 1.1em; padding-top: 1em; }
.pt-qr__code svg { display: block; width: 6em; height: auto; }
.pt-qr p { margin: 0; font-size: 0.92em; color: #3d3a4f; }

.pt-rules__list { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 0.7em; }
.pt-rules__list li { display: grid; grid-template-columns: 2.3em 1fr; gap: 0.75em; align-items: center; font-size: 1.05em; }
.pt-rules__icon { width: 2.3em; height: 2.3em; border-radius: 50%; background: #f3ede3; display: grid; place-items: center; font-size: 1.05em; }
.pt-rules__list small { display: block; color: #57546a; font-size: 0.86em; }

.pt-checkout__time { display: table; margin: 0.5em auto 0; background: #f3ede3; border-radius: 999px; padding: 0.35em 1em; font-weight: 600; }
.pt-checkout__list { list-style: none; padding: 0; margin: 1.1em 0 0; display: grid; gap: 0.6em; }
.pt-checkout__list li { display: grid; grid-template-columns: 1.4em 1fr; gap: 0.7em; align-items: start; }
.pt-checkout__box { width: 1.1em; height: 1.1em; border: 2px solid #2f5a43; border-radius: 4px; margin-top: 0.2em; }
.pt-checkout__keys { margin: 1.1em 0 0; padding: 0.8em 1em; border-radius: 12px; background: #eef3ef; }

.pt-pet .pt-card__title { text-align: left; font-size: 1.6em; }
.pt-pet .pt-card__sub { text-align: left; }
.pt-pet__section { border: 1px solid #e6e1d6; border-radius: 12px; padding: 0.7em 0.9em; margin-top: 0.7em; min-width: 0; }
.pt-pet__heading { margin: 0 0 0.4em; font-size: 0.8em; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #2f5a43; }
.pt-pet__row { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: 0.6em; padding: 0.3em 0; border-bottom: 1px dotted #d8d2c6; font-size: 0.95em; }
.pt-pet__row:last-child { border-bottom: none; }
.pt-pet__row span { color: #57546a; }
.pt-pet__row b { font-weight: 500; white-space: pre-line; }
.pt-pet__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.7em; }
.pt-pet__pair .pt-pet__row { grid-template-columns: minmax(0, 1fr); gap: 0.1em; }
.pt-pet--blank .pt-pet__row b { min-height: 2.6em; }
.pt-pet--blank .pt-pet__pair .pt-pet__row b { min-height: 2em; }
@media (max-width: 480px) { .pt-pet__pair { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* House manual template (#1764) */
.pt-manual .pt-card__title { font-size: 1.7em; }
.pt-manual__body { margin-top: 0.8em; }
.pt-manual__section { border-top: 1px solid #e6e1d6; padding: 0.6em 0 0.2em; break-inside: avoid; }
.pt-manual__section:first-child { border-top: none; }
.pt-manual__heading { margin: 0 0 0.3em; font-size: 0.8em; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #2f5a43; }
.pt-manual__section p:not(.pt-manual__heading) { margin: 0 0 0.25em; }
.pt-manual__empty { text-align: center; color: #57546a; margin: 1.5em 0; }
.pt-manual__write span { display: block; height: 2em; border-bottom: 1px dotted #b9b2a3; }

@media print {
  body, .landing-wrap { background: #fff !important; }
  .site-header, .nav-backdrop, .landing-bg, .site-footer, .page-hero, .lottie, .lottie-launcher,
  .content-stack > :not(:first-child), .pt-tool > form, .pt-private, #printable-tool-title { display: none !important; }
  .landing, .content-stack, .content-stack > .content-card:first-child, .pt-tool {
    display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
    box-shadow: none !important; background: none !important; max-width: none !important; width: auto !important;
  }
  .pt-preview { position: static; }
  .pt-card { border: none; border-radius: 0; padding: 0; }
  .pt-preview[data-paper="a4"] .pt-card { font-size: 14pt; }
  .pt-preview[data-paper="a5"] .pt-card { font-size: 11pt; }
  .pt-preview[data-paper="a6"] .pt-card { font-size: 8pt; }
  .pt-preview[data-paper] .pt-pet { font-size: 11pt; }
  .pt-preview[data-paper] .pt-pet--blank { font-size: 12pt; }
  .pt-preview[data-paper] .pt-manual { font-size: 11pt; }
  .pt-pet__section, .pt-rules__list li, .pt-checkout__list li { break-inside: avoid; }
}
