/* ==========================================================================
   Dasteck Chemicals - accessibility + transparency add-on stylesheet
   --------------------------------------------------------------------------
   ADDITIVE ONLY. This file does not modify assets/css/style.css and does not
   restyle any existing component. It provides:
     1. accessibility utilities (skip link, screen-reader-only text, visible
        focus ring, reduced-motion support)
     2. layout for the new "Public Information / Transparency" page only
   Upload to:  assets/css/transparency.css
   ========================================================================== */

/* ---------- 1. Accessibility utilities ----------------------------------- */

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  z-index: 99999;
  padding: 10px 18px;
  background: #111;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus,
.skip-link:active {
  left: 0;
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus for every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Never remove the focus indicator without a replacement. */
a:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  .tp-table th, .tp-table td { border-color: #000 !important; }
  .tp-card { border-color: #000 !important; }
}

/* ---------- 1b. Contrast fixes for the transparency page ------------------ */
/* Measured, not guessed. The site link colour (#5aa6e0) reaches only 2.45:1
   against white, which fails WCAG AA (4.5:1 for body text). These rules are
   scoped to .tp-page so no existing page changes appearance.
   #1668a5 = 5.90:1 on white, 5.50:1 on the grey section background. */

.tp-page main a:not(.btn) { color: #1668a5; }
.tp-page main a:not(.btn):hover,
.tp-page main a:not(.btn):focus { color: #0d4b74; }

/* Card headings are 19px, so they need the full 4.5:1.
   #1f6ba8 = 5.63:1 on white. To apply the darker blues across the whole site,
   uncomment these two lines and re-upload this file:

.section h2 { color: #1f6ba8; }
.card h3    { color: #1f6ba8; }
*/

.tp-page .section h2,
.tp-page .card h3 { color: #1f6ba8; }

/* ---------- 2. Transparency page ----------------------------------------- */

.tp-meta {
  font-size: 13px;
  color: #5a6672;
  margin: 6px 0 0;
}
.tp-meta b { color: #2b333b; }

.tp-toc {
  background: #f5f7f9;
  border: 1px solid #e2e7ec;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 0 0 26px;
}
.tp-toc h2 { font-size: 15px; margin: 0 0 8px; }
.tp-toc ol { margin: 0; padding-left: 20px; }
.tp-toc li { margin: 2px 0; }
.tp-toc a { text-decoration: none; }
.tp-toc a:hover, .tp-toc a:focus { text-decoration: underline; }

.tp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 6px;
  font-size: 15px;
}
.tp-table caption {
  text-align: left;
  font-weight: 700;
  padding: 0 0 8px;
  color: #2b333b;
}
.tp-table th, .tp-table td {
  border: 1px solid #e2e7ec;
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.tp-table thead th {
  background: #f5f7f9;
  font-weight: 700;
  white-space: nowrap;
}
.tp-table tbody th {
  background: #fafbfc;
  font-weight: 600;
  width: 34%;
}
.tp-table td.num { font-variant-numeric: tabular-nums; }

.tp-keyfact {
  font-weight: 700;
  color: #0b5ea8;
}

.tp-card {
  border: 1px solid #e2e7ec;
  border-left: 4px solid #0b5ea8;
  border-radius: 6px;
  background: #fbfcfd;
  padding: 16px 18px;
  margin: 18px 0;
}
.tp-card h3 { margin: 0 0 6px; font-size: 16px; }
.tp-card p:last-child { margin-bottom: 0; }

.tp-qa { margin: 0 0 18px; }
.tp-qa dt { font-weight: 700; margin: 16px 0 4px; }
.tp-qa dd { margin: 0 0 0 0; }

.tp-badges { list-style: none; margin: 12px 0; padding: 0; }
.tp-badges li {
  display: inline-block;
  border: 1px solid #cfd8e0;
  border-radius: 20px;
  padding: 4px 12px;
  margin: 0 6px 8px 0;
  font-size: 13px;
  background: #fff;
}

.tp-source {
  font-size: 13px;
  color: #5a6672;
  border-top: 1px solid #e2e7ec;
  padding-top: 10px;
  margin-top: 22px;
}
.tp-source a { color: inherit; }

.tp-notice {
  background: #fff8e5;
  border: 1px solid #f0dca6;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 16px 0;
}

@media (max-width: 760px) {
  .tp-table { font-size: 14px; }
  .tp-table th, .tp-table td { padding: 8px 9px; }
  .tp-table tbody th { width: 40%; }
  .tp-table thead { display: none; }
  .tp-table tr { display: block; border-bottom: 1px solid #e2e7ec; padding: 6px 0; }
  .tp-table th, .tp-table td { display: block; width: auto !important; border: 0; padding: 3px 0; }
  .tp-table tbody th { background: transparent; }
}

@media print {
  .skip-link, .tp-toc { display: none; }
  .tp-table th, .tp-table td { border: 1px solid #999; }
}
