/* Policy, help, forms and search pages (DBIM 3.0, BPR&D look). Key colour #162F6A, #214AAB, #5279D7, #A3BBF3, #D2DFFF. */

.w7 { font-family: "Noto Sans", sans-serif; color: #150202; }
.w7 p, .w7 li, .w7 td, .w7 th, .w7 dd, .w7 dt { font-size: 16px; line-height: 1.5; text-align: left; }
.w7 p, .w7 li, .w7 dd { text-align: justify; }
.w7 h2 { font-size: 24px; line-height: 1.3; margin: 24px 0 12px; color: #162F6A; text-align: left; }
.w7 h2:first-child { margin-top: 0; }
.w7 h3 { font-size: 20px; line-height: 1.3; margin: 20px 0 10px; color: #162F6A; text-align: left; }
.w7 .small, .w7 small, .w7 .w7-note { font-size: 14px; }
.w7 a { color: #0D6EFD; }
.w7 a:hover, .w7 a:focus { color: #214AAB; }
.w7 .w7-lead { font-size: 16px; margin-bottom: 20px; }

/* tables: left-aligned text, centred column names, right-aligned numbers */
.w7 table.w7-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; }
.w7 table.w7-table caption { caption-side: top; font-size: 14px; color: #606060; text-align: left; padding: 0 0 8px; }
.w7 table.w7-table th, .w7 table.w7-table td { border: 1px solid #C6C6C6; padding: 10px 12px; vertical-align: top; }
.w7 table.w7-table thead th { background: #162F6A; color: #fff; text-align: center; font-weight: 600; }
.w7 table.w7-table tbody th { background: #D2DFFF; color: #150202; text-align: left; font-weight: 600; }
.w7 table.w7-table tbody tr:nth-child(even) td { background: #EBEAEA; }
.w7 table.w7-table td.num { text-align: right; }
.w7 .w7-tablewrap { overflow-x: auto; }

/* contact cards */
.w7-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 12px 0 24px; }
.w7-card { background: #EBEAEA; border-left: 4px solid #162F6A; border-radius: 4px; padding: 16px; }
.w7-card h3 { margin-top: 0; }
.w7-card p { margin: 0 0 8px; }
.w7-card i { color: #162F6A; margin-right: 8px; }

/* link lists */
.w7-links { list-style: none; margin: 0 0 24px; padding: 0; }
.w7-links li { border-bottom: 1px solid #C6C6C6; }
.w7-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px; text-decoration: none; color: #162F6A; font-size: 16px; }
.w7-links a:hover, .w7-links a:focus { background: #D2DFFF; color: #162F6A; }
.w7-links a:focus-visible { outline: 3px solid #5279D7; outline-offset: -3px; }
.w7-links a i { color: #162F6A; }

/* sitemap */
.w7-sitemapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.w7-sitemapcard { background: #fff; border: 1px solid #C6C6C6; border-top: 4px solid #162F6A; border-radius: 4px; padding: 16px; }
.w7-sitemapcard h2 { font-size: 20px; margin: 0 0 10px; }
.w7-sitemapcard ul { margin: 0; padding-left: 18px; }
.w7-sitemapcard ul ul { margin-top: 4px; }
.w7-sitemapcard li { margin-bottom: 6px; font-size: 16px; }

/* FAQ accordion */
.w7-faq .accordion-item { border: 1px solid #C6C6C6; border-radius: 4px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.w7-faq .accordion-button { font-size: 16px; font-weight: 600; color: #162F6A; background: #fff; text-align: left; white-space: normal; }
.w7-faq .accordion-button:not(.collapsed) { background: #D2DFFF; color: #162F6A; box-shadow: none; }
.w7-faq .accordion-button:focus { box-shadow: 0 0 0 3px #A3BBF3; border-color: #5279D7; }
.w7-faq .accordion-body p { margin: 0; overflow-wrap: anywhere; }

/* forms: instructions first, one field per line, required marked * */
.w7-form { max-width: 720px; }
.w7-instructions { background: #D2DFFF; border-left: 4px solid #162F6A; padding: 12px 16px; margin: 0 0 20px; border-radius: 4px; }
.w7-form .w7-field { margin-bottom: 18px; }
.w7-form label, .w7-form legend { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; color: #150202; }
.w7-form .w7-req { color: #DC3545; margin-left: 2px; }
.w7-form input[type="text"], .w7-form input[type="email"], .w7-form input[type="password"], .w7-form textarea, .w7-form select {
  width: 100%; font-size: 16px; line-height: 1.5; padding: 10px 12px; border: 1px solid #606060; border-radius: 4px; background: #fff; color: #150202; font-family: inherit;
}
.w7-form input:focus, .w7-form textarea:focus, .w7-form select:focus { outline: 3px solid #A3BBF3; border-color: #214AAB; }
.w7-form input[aria-invalid="true"], .w7-form textarea[aria-invalid="true"] { border-color: #DC3545; }
.w7-form .w7-help { font-size: 14px; color: #606060; margin: 4px 0 0; }
.w7-form .w7-error { font-size: 14px; color: #DC3545; margin: 4px 0 0; }
.w7-alert { padding: 12px 16px; border-radius: 4px; margin: 0 0 20px; font-size: 16px; border: 1px solid; }
.w7-alert ul { margin: 0; padding-left: 20px; }
.w7-alert-success { background: #e8f5ee; color: #0f5132; border-color: #198754; }
.w7-alert-error { background: #fbeaec; color: #842029; border-color: #DC3545; }

/* search results */
.w7-search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 720px; margin: 0 0 24px; }
.w7-search input { flex: 1 1 240px; font-size: 16px; padding: 10px 12px; border: 1px solid #606060; border-radius: 4px; }
.w7-search input:focus { outline: 3px solid #A3BBF3; border-color: #214AAB; }
.w7-results { list-style: none; margin: 0 0 20px; padding: 0; }
.w7-results li { padding: 8px 0; border-bottom: 1px solid #C6C6C6; }

/* login (BRO staff) */
.w7-login { max-width: 480px; background: #EBEAEA; border: 1px solid #C6C6C6; border-radius: 4px; padding: 24px; }
.w7-login h2 { margin-top: 0; }
.w7-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; margin: 12px 0 24px; }
.w7-tiles .bro-btn { display: block; width: 100%; }

/* archives */
.w7 .pagination { flex-wrap: wrap; justify-content: flex-start; }

@media (max-width: 767px) {
  .w7 h2 { font-size: 20px; }
  .w7 h3 { font-size: 16px; }
  .w7 p, .w7 li, .w7 td, .w7 th { font-size: 14px; }
  .w7-links a, .w7-form label, .w7-form legend, .w7-form input, .w7-form textarea { font-size: 14px; }
  .w7 table.w7-table { display: block; overflow-x: auto; }
}
.w7 .w7-note { margin-top: 16px; }
