/* Everyday Law legal templates + tools */
.tpl-wrap { padding-bottom: 56px; }
.tpl-hero, .tpl-hub-hero { padding: 34px 0 24px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.tpl-hero h1, .tpl-hub-hero h1 { max-width: 880px; font-size: 44px; line-height: 1.08; letter-spacing: 0; margin: 12px 0 12px; }
.tpl-hub-hero p { max-width: 760px; font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }
.tpl-law { font-size: 17px; font-weight: 700; color: var(--cat-everyday); margin: 0 0 8px; }
.tpl-meta { font-size: 14px; color: var(--muted); margin: 0; }
.tpl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.tpl-main { min-width: 0; }
.tpl-caveat { margin: 0 0 22px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--cat-everyday) 40%, var(--rule)); border-left: 4px solid var(--cat-everyday); border-radius: 8px; background: color-mix(in srgb, var(--cat-everyday) 6%, var(--paper)); font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.tpl-caveat-end { margin-top: 32px; }
.tpl-intro p { font-size: 17.5px; line-height: 1.7; margin: 0 0 14px; }
.tpl-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 22px 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.tpl-glance div { padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.tpl-glance div:nth-child(odd) { border-right: 1px solid var(--rule); }
.tpl-glance dt { font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.tpl-glance dd { margin: 0; font-size: 15px; line-height: 1.5; }
.tpl-state-note { font-size: 15px; line-height: 1.6; padding: 12px 14px; background: var(--off-paper); border-radius: 8px; }
.tpl-section { margin: 34px 0 0; }
.tpl-section h2 { font-size: 26px; line-height: 1.2; margin: 0 0 14px; }
.tpl-section p, .tpl-section li { font-size: 16.5px; line-height: 1.7; }
.tpl-section ul, .tpl-section ol { padding-left: 22px; margin: 0; }
.tpl-section li { margin: 0 0 8px; }
.tpl-steps li strong { display: block; }
.tpl-steps li span { color: var(--ink); }
.tpl-format { padding: 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--off-paper); }
.tpl-format-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.tpl-format-head h2 { margin: 0; font-size: 22px; }
.tpl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; }
.tpl-btn:hover { background: var(--off-paper); }
.tpl-btn-dark { background: var(--ink); color: var(--paper); }
.tpl-btn-dark:hover { background: var(--ink); opacity: .88; }
.tpl-hint { font-size: 14px; color: var(--muted); margin: 12px 0; }
.tpl-blank { background: color-mix(in srgb, #f5c542 45%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }
.tpl-doc { margin: 0; padding: 26px 28px; background: #fff; color: #111; border: 1px solid var(--rule); border-radius: 6px; white-space: pre-wrap; word-wrap: break-word; font-family: "Times New Roman", Georgia, serif; font-size: 16px; line-height: 1.75; max-height: 760px; overflow: auto; }
.tpl-mistakes li::marker { color: #c0392b; }
.tpl-faq-item { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.tpl-faq-item summary { cursor: pointer; font-weight: 800; font-size: 17px; line-height: 1.45; }
.tpl-faq-item div { margin-top: 10px; font-size: 16px; line-height: 1.7; }
.tpl-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.tpl-side-box { padding: 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.tpl-side-box h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; color: var(--muted); }
.tpl-side-box ul { list-style: none; padding: 0; margin: 0; }
.tpl-side-box li { padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.4; }
.tpl-side-box li:last-child { border-bottom: 0; }
.tpl-side-box p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; }
.tpl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tpl-card { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px solid var(--rule); border-left: 4px solid var(--cat-everyday); border-radius: 8px; background: var(--paper); color: var(--ink); text-decoration: none; }
.tpl-card:hover { border-color: var(--cat-everyday); }
.tpl-card strong { font-size: 18px; line-height: 1.3; }
.tpl-card-law { font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--cat-everyday); }
.tpl-card-desc { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.tpl-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.tpl-jump a { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; font-weight: 800; font-size: 14px; color: var(--ink); background: var(--paper); }
.tpl-jump a span { color: var(--muted); font-weight: 700; }
.tpl-hub-section { margin: 0 0 40px; scroll-margin-top: 20px; }
.tpl-hub-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 14px; }
.tpl-hub-section-head h2 { font-size: 24px; margin: 0; }
.tpl-hub-section-head a { font-weight: 800; font-size: 14px; white-space: nowrap; }
.tpl-hub-nav { margin-top: 40px; }
.tpl-hub-nav h2 { font-size: 20px; margin: 0 0 12px; }
.tpl-hub-nav div { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-hub-nav a { border: 1px solid var(--rule); border-radius: 8px; padding: 8px 12px; font-weight: 800; font-size: 14px; }
.tpl-more { margin-top: 28px; font-size: 16px; }
.tool-app { margin: 24px 0; padding: 22px; border: 1px solid var(--rule); border-radius: 10px; background: var(--off-paper); }
@media (max-width: 1000px) { .tpl-grid { grid-template-columns: 1fr; } .tpl-side { position: static; } .tpl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tpl-hero h1, .tpl-hub-hero h1 { font-size: 32px; }
  .tpl-glance { grid-template-columns: 1fr; }
  .tpl-glance div:nth-child(odd) { border-right: 0; }
  .tpl-cards { grid-template-columns: 1fr; }
  .tpl-format { padding: 14px; }
  .tpl-doc { padding: 16px; font-size: 15px; }
  .tpl-hub-section-head { flex-direction: column; }
}
@media print {
  body * { visibility: hidden; }
  #tpl-doc, #tpl-doc * { visibility: visible; }
  #tpl-doc { position: absolute; left: 0; top: 0; max-height: none; overflow: visible; border: 0; padding: 0; }
  .tpl-blank { background: none; }
}
