/* tools/seo.py: heading tags were changed for SEO; keep the original look.
   :where() keeps the same specificity the old h1/h2 rules had, so the
   page's own Elementor rules still win exactly as before. */

/* page heading: was <h2>, now <h1> -> same theme + kit rules as h2 */
body h1:where(.octo-was-h2) { font-size: 2rem; }
:where(.elementor-kit-288) h1.octo-was-h2 {
  color: var(--e-global-color-b4f39d2);
  font-size: 36px;
  line-height: 0.2em;
}

/* footer names: were <h1>/<h2>, now <p> -> same theme + kit rules as before */
body p:where(.octo-ft) { margin-top: .5rem; margin-bottom: 1rem; font-weight: 500; line-height: 1.2; }
body p:where(.octo-ft-name) { font-size: 2.5rem; }
body p:where(.octo-ft-en) { font-size: 2rem; }
:where(.elementor-kit-288) p.octo-ft-name { color: var(--e-global-color-b4f39d2); font-size: 48px; }
:where(.elementor-kit-288) p.octo-ft-en { color: var(--e-global-color-b4f39d2); font-size: 36px; line-height: 0.2em; }

/* title added to newer news posts (they only had it inside the image) */
.elementor-kit-288 h1.octo-post-title { font-size: 24px; line-height: 1.5; font-weight: 700; color: #1e2660; margin: 0 0 .4em; }
@media (max-width: 767px) { .elementor-kit-288 h1.octo-post-title { font-size: 20px; } }

/* news tables: the Element Pack "default-responsive" mode turns the table sideways
   with a horizontal scroll on phones (max-width:40em). Keep the normal 2-column table. */
@media only screen and (max-width: 40em) {
  body .bdt-table.bdt-table-default-responsive table { display: table; width: 100%; table-layout: fixed; }
  body .bdt-table.bdt-table-default-responsive table thead { display: table-header-group; float: none; }
  body .bdt-table.bdt-table-default-responsive table tbody { display: table-row-group; white-space: normal; overflow: visible; }
  body .bdt-table.bdt-table-default-responsive table tr,
  body .bdt-table.bdt-table-default-responsive table thead tr { display: table-row; }
  body .bdt-table.bdt-table-default-responsive table th,
  body .bdt-table.bdt-table-default-responsive table td {
    display: table-cell; padding: .6em .5em !important; font-size: 14px; line-height: 1.5;
    vertical-align: middle; word-break: break-word; border: 1px solid #ccc;
  }
  body .bdt-table.bdt-table-default-responsive table th:first-child { width: 45%; }
}
