/* V4.220: accessible editorial links + the existing V4.205 layout polish. */

/* A long law name must not be squeezed into the 38px square used for form numbers. */
.form-guide-side .card > .form-number {
  width: auto;
  height: auto;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .76rem;
  line-height: 1.25;
  letter-spacing: .02em;
  white-space: normal;
}

/* Definitions remain tappable without inserting large question marks everywhere. */
.lc-term-button { border-bottom-color: #7c9eac; }
.lc-term-question {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  background: #edf4f7;
  font-size: 9px;
  vertical-align: .16em;
}

@media (max-width: 700px) {
  /* The previous footer stacked three large columns and occupied a full screen. */
  .footer {
    margin-top: 28px !important;
    padding: 23px 0 16px !important;
  }
  .footer .footer-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 13px 19px !important;
    align-items: start;
  }
  .footer .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer .footer-grid h3 {
    font-size: 1.17rem !important;
    margin: 0 0 6px !important;
    line-height: 1.25 !important;
  }
  .footer .footer-grid > div:first-child p {
    font-size: .88rem !important;
    line-height: 1.5 !important;
    margin: 0 0 4px !important;
  }
  .footer .footer-grid > div:first-child small {
    display: block;
    font-size: .72rem !important;
    line-height: 1.4 !important;
  }
  .footer .footer-grid h4 {
    font-size: .88rem !important;
    margin: 0 0 5px !important;
  }
  .footer .footer-grid .list-clean {
    margin: 0 !important;
    padding: 0 !important;
  }
  .footer .footer-grid .list-clean li {
    margin: 0 !important;
    line-height: 1.28 !important;
  }
  .footer .footer-grid .list-clean a {
    display: block;
    padding: 5px 0;
    font-size: .83rem !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  .footer .footer-legal {
    margin-top: 13px !important;
    padding-top: 11px !important;
    gap: 8px 14px !important;
    font-size: .73rem !important;
  }
}

/* Make long guide pages conclude naturally, without placeholder-sized gaps. */
.lc-source-details { scroll-margin-top: 25px; }

/* The site-wide default removes underlines. Inside explanatory prose this made
   legal source links hard to distinguish from surrounding paragraph text.
   Limit this to inline reading links; keep card, button and navigation styles. */
main :is(p, li, dd, blockquote, td) a[href]:not(.button):not(.btn):not([role="button"]):not(.quick-form-link),
main .guide-toc a[href],
.breadcrumbs a[href] {
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.17em;
  text-decoration-skip-ink: auto;
}

main :is(p, li, dd, blockquote, td) a[href]:not(.button):not(.btn):not([role="button"]):hover,
main .guide-toc a[href]:hover,
.breadcrumbs a[href]:hover {
  text-decoration-thickness: 2.5px;
}

/* Keyboard focus must stay visible even inside guides with bespoke link styles. */
main a[href]:focus-visible,
.breadcrumbs a[href]:focus-visible {
  outline: 3px solid #175a88;
  outline-offset: 3px;
  border-radius: 2px;
}

/* V4.234: show which section of the site you are in. */
.nav a[aria-current="page"] {
  color: #8d2036;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}


/* V4.284: analytics choice is positioned here as this shared stylesheet is
   included by all page templates, unlike assets/styles.css (missing on 206
   main-app pages). Prevent consent banner from appearing off-screen. */
.lcc-analytics-choice{position:fixed;z-index:10000;bottom:16px;left:16px;right:16px;max-width:880px;margin:auto;display:flex;gap:22px;align-items:center;justify-content:space-between;box-sizing:border-box;padding:17px 19px;color:#203344;background:#fff;border:1px solid #b8c3c9;border-left:4px solid #294760;border-radius:6px;box-shadow:0 12px 34px rgba(0,0,0,.17);font-size:14px}
.lcc-analytics-choice strong{display:block;font-size:15px;margin-bottom:3px}
.lcc-analytics-choice p{margin:0;line-height:1.5;font-size:13px;color:#4e5d65}
.lcc-analytics-choice a{color:#214d73;text-decoration:underline}
.lcc-analytics-actions{display:flex;gap:9px;flex-shrink:0}
.lcc-analytics-actions button{border-radius:4px;padding:10px 13px;min-height:42px;border:1px solid #aab8c0;background:#fff;color:#203d55;font-family:inherit;font-size:13px;font-weight:700;line-height:1.2;cursor:pointer}
.lcc-analytics-actions button[data-lcc-choice="yes"]{background:#203d55;color:#fff;border-color:#203d55}
.lcc-analytics-actions button:focus-visible{outline:3px solid #9ab4ce;outline-offset:2px}
@media(max-width:640px){.lcc-analytics-choice{display:block;bottom:8px;left:8px;right:8px;padding:14px}.lcc-analytics-actions{margin-top:11px}.lcc-analytics-actions button{flex:1}}
