/* =============================================
   LEGAL LIBRARY  (/get-help/laws-and-orders/)
   Builds on the Get Help table and chip styles in hub.css (gh-*).
   Brand colours: #0F3D2E #2A6E5A #9FD4BE #E8F2EC #fab317 #e09f0a #FFF6DD
   Status is always written in words as well as colour.
   ============================================= */

.lg-disclaimer { background: #FFF6DD; border-left: 6px solid #fab317; border-radius: 0 14px 14px 0; padding: 20px 24px; margin: 0 0 26px; color: #0F3D2E; }
.lg-disclaimer p { margin: 0 0 10px; font-size: 17px; line-height: 1.65; }
.lg-disclaimer p:last-child { margin-bottom: 0; }
.lg-disclaimer .lg-ta-note { font-size: 17px; font-family: Latha, "Nirmala UI", Arial, sans-serif; }
.lg-disc-links { font-size: 16px !important; }
.lg-disc-links a { color: #0F3D2E; font-weight: 700; text-decoration: underline; }
.lg-disc-links a:focus-visible, .lg-report a:focus-visible { outline: 3px solid #fab317; outline-offset: 3px; }

/* toolbar */
.lg-tools { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid #DCEBE2; }
.lg-search { margin: 0 0 14px; max-width: 560px; }
.lg-search[hidden] { display: none; }
.lg-search label { display: block; font-size: 15px; font-weight: 700; color: #0F3D2E; margin: 0 0 6px; }
.lg-search input { width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 16px; color: #212121; background: #fff; border: 2px solid #9FD4BE; border-radius: 12px; }
.lg-search input:focus { outline: 3px solid #fab317; outline-offset: 2px; border-color: #0F3D2E; }
.lg-tools .gh-chips { margin: 0 0 10px; }
.lg-tools .gh-chips-label { min-width: 110px; flex: none; }
.lg-tools .lg-select { min-height: 48px; padding: 8px 14px; font: inherit; font-size: 16px; border: 2px solid #DCEBE2; border-radius: 12px; background: #fff; color: #0F3D2E; max-width: 100%; }
.lg-tools .lg-select:focus { outline: 3px solid #fab317; outline-offset: 2px; border-color: #0F3D2E; }
.lg-tools .gh-count { margin-top: 8px; }
.lg-set[hidden], .lg-row[hidden] { display: none; }
.lg-row { scroll-margin-top: 24px; }

/* rows */
.lg-tbl tbody th { min-width: 240px; }
.lg-tbl .gh-tbl-name { font-size: 17px; }
.lg-num { display: block; margin: 4px 0 0; font-size: 15px; font-weight: 700; color: #2A6E5A; }
.lg-ta { display: block; margin: 4px 0 0; font-size: 16px; color: #333; font-family: Latha, "Nirmala UI", Arial, sans-serif; }
.lg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lg-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: #fff; border: 1px solid #BFD9CB; font-size: 13px; font-weight: 700; color: #1f5a47; line-height: 1.5; }
.lg-checked { display: block; margin-top: 8px; font-size: 14px; color: #555; }
.lg-tbl tbody td:nth-child(3) { min-width: 280px; }

/* status pills: words first, colour second */
.lg-pill { display: inline-block; padding: 6px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.4; border: 1px solid; white-space: nowrap; }
.lg-st-inforce { background: #E8F2EC; color: #17503f; border-color: #2A6E5A; }
.lg-st-amended { background: #E8F2FA; color: #1d4a6e; border-color: #7FB0D6; }
.lg-st-check   { background: #FFF3D1; color: #5a3b00; border-color: #e09f0a; }
.lg-st-replaced, .lg-st-history { background: #F1F1F1; color: #3b3b3b; border-color: #9a9a9a; }

/* report an update */
.lg-report { margin: 48px 0 0; padding: 30px 0 0; border-top: 4px solid #fab317; }
.lg-report h2 { font-size: 26px; font-weight: 700; line-height: 1.3; color: #0F3D2E; margin: 0 0 8px; }
.lg-report > p { font-size: 17px; color: #444; margin: 0 0 20px; max-width: 760px; }
.lg-report .gi-form-wrap { margin: 0; max-width: 760px; }


/* The table is wide (five columns), so it turns into stacked cards below 1200px,
   earlier than the other Get Help tables, so nothing is ever clipped. */
@media (max-width: 1200px) {
  .lg-tbl, .lg-tbl tbody, .lg-tbl tr, .lg-tbl tbody th, .lg-tbl tbody td { display: block; width: 100%; }
  .lg-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-tbl tbody tr { border-top: 8px solid #F1F6F3; padding: 6px 0; }
  .lg-tbl tbody tr:first-child { border-top: 0; }
  .lg-tbl tbody th, .lg-tbl tbody td { border-top: 0; padding: 10px 18px; }
  .lg-tbl tbody td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #8A5F00; margin-bottom: 4px; }
  .lg-tbl tbody th, .lg-tbl tbody td:nth-child(3) { min-width: 0; }
  .lg-tbl tbody td .gh-btn { width: auto; max-width: 100%; white-space: normal; }
  .lg-pill { white-space: normal; }
}

@media (max-width: 900px) {
  .lg-tbl tbody th, .lg-tbl tbody td:nth-child(3) { min-width: 0; }
  .lg-tbl tbody td .gh-btn { width: 100%; justify-content: center; white-space: normal; }
  .lg-pill { white-space: normal; }
}
@media (max-width: 768px) {
  .lg-disclaimer { padding: 18px 18px; }
  .lg-disclaimer p { font-size: 16px; }
  .lg-tools .gh-chips-label { min-width: 64px; flex: none; }
  .lg-report h2 { font-size: 23px; }
}
