/* =====================================================================
   Regulatory Decoded — site-wide block style (tables + quotes)
   Paste into Appearance → Customize → Additional CSS.
   Replaces the earlier site-table-style.css (same scope plus quote rules).
   Applies to:
     - Gutenberg Table blocks      (.wp-block-table)
     - Gutenberg Quote blocks      (.wp-block-quote)
     - Gutenberg Pullquote blocks  (.wp-block-pullquote)
   No effect on TablePress, admin UI, sidebar widgets, or comments.
   ===================================================================== */


/* ---------- Tables ---------- */

.wp-block-table {
  border: 1px solid #d8e2eb;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.75rem 0;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 0;
  font-size: 15px;
  color: #374b58;
  line-height: 1.55;
}

.wp-block-table thead th {
  background: #374b58;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #2b3a44;
  letter-spacing: 0.005em;
  vertical-align: bottom;
}

.wp-block-table tbody td {
  padding: 12px 16px;
  border: none;
  border-bottom: 1px solid #eaf1f8;
  color: #374b58;
  vertical-align: top;
}

.wp-block-table tbody td:first-child {
  font-weight: 600;
  color: #374b58;
}

.wp-block-table tbody tr:last-child td {
  border-bottom: none;
}

.wp-block-table tbody tr:nth-child(even) {
  background: #f7fafd;
}

.wp-block-table tbody tr:hover {
  background: #eaf1f8;
  transition: background 0.15s ease;
}

.wp-block-table figcaption {
  font-size: 13px;
  color: #5a6b7b;
  padding: 10px 16px 4px;
  text-align: left;
  font-style: normal;
}

.wp-block-table.is-style-stripes {
  border: 1px solid #d8e2eb;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: #ffffff;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background: #f7fafd;
}


/* ---------- Quotes ----------
   The repeated class selectors (e.g. .wp-block-quote.wp-block-quote.wp-block-quote)
   are intentional: they bump CSS specificity to (0,3,x) so these rules win
   against the active theme's own quote rules, which use a chain like
   ".tdi_NN .tdb-block-inner blockquote p" with !important.
   Theme-update resistant: works even if the theme renames its internal ids.
*/

/* Standard Quote block */
.wp-block-quote.wp-block-quote.wp-block-quote {
  position: relative;
  margin: 1.75rem 0 !important;
  padding: 18px 22px 18px 28px !important;
  background: #f7fafd !important;
  border-left: 4px solid #517ead !important;
  border-radius: 0 8px 8px 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #374b58 !important;
  font-style: italic !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
  text-align: left !important;
}

.wp-block-quote.wp-block-quote.wp-block-quote p {
  margin: 0 0 8px !important;
  color: #374b58 !important;
  font-style: italic !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.wp-block-quote.wp-block-quote.wp-block-quote p:last-of-type {
  margin-bottom: 0 !important;
}

.wp-block-quote.wp-block-quote.wp-block-quote cite,
.wp-block-quote.wp-block-quote.wp-block-quote .wp-block-quote__citation {
  display: block !important;
  margin-top: 12px !important;
  font-style: normal !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #5a6b7b !important;
  letter-spacing: 0.01em !important;
}

.wp-block-quote.wp-block-quote.wp-block-quote cite::before,
.wp-block-quote.wp-block-quote.wp-block-quote .wp-block-quote__citation::before {
  content: "– ";
  color: #517ead;
}

/* Large variant */
.wp-block-quote.wp-block-quote.wp-block-quote.is-style-large {
  padding: 24px 28px 24px 32px !important;
  font-size: 19px !important;
  border-left-width: 5px !important;
}

.wp-block-quote.wp-block-quote.wp-block-quote.is-style-large p {
  font-size: 19px !important;
}

/* Plain variant: keep accent bar, drop background */
.wp-block-quote.wp-block-quote.wp-block-quote.is-style-plain {
  background: transparent !important;
}

/* Nested blockquotes (from Markdown ">>" syntax): collapse the inner one
   so the outer styling owns the look and avoids the double-frame effect */
.wp-block-quote .wp-block-quote.wp-block-quote.wp-block-quote,
.wp-block-quote blockquote {
  margin: 0 !important;
  padding: 0 !important;
  border-left: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}


/* Pullquote: decorative, centered, top + bottom borders.
   Pullquote is a FIGURE wrapper containing a BLOCKQUOTE — style both. */
.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote {
  margin: 2.25rem 0 !important;
  padding: 26px 24px !important;
  border-top: 2px solid #517ead !important;
  border-bottom: 2px solid #517ead !important;
  background: transparent !important;
  text-align: center !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote blockquote {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote p,
.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote blockquote p {
  font-size: 22px !important;
  line-height: 1.4 !important;
  color: #374b58 !important;
  margin: 0 0 14px !important;
  font-weight: 500 !important;
  font-style: italic !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote p:last-of-type,
.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote blockquote p:last-of-type {
  margin-bottom: 0 !important;
}

.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote cite,
.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote .wp-block-pullquote__citation,
.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote blockquote cite {
  display: block !important;
  margin-top: 10px !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  color: #5a6b7b !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}


/* ---------- Shared: mobile adjustments ---------- */

@media (max-width: 600px) {
  .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .wp-block-table table {
    min-width: 480px;
    font-size: 14px;
  }
  .wp-block-table thead th,
  .wp-block-table tbody td {
    padding: 10px 12px;
  }

  .wp-block-quote {
    padding: 14px 16px 14px 20px;
    font-size: 16px;
  }
  .wp-block-quote.is-style-large {
    padding: 18px 20px 18px 24px;
    font-size: 17px;
  }

  .wp-block-pullquote {
    padding: 22px 14px;
  }
  .wp-block-pullquote p {
    font-size: 19px;
  }
}