/* Brightpath Community Services — ACCESSIBLE ("after") version stylesheet.
   This is the remediated counterpart to the demo training site: visible focus,
   sufficient contrast, links distinguished by more than color. */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #2a2a2a;
  background: #ffffff;
  line-height: 1.5;
}

/* FIX: a clearly visible focus indicator for all interactive elements */
a:focus, button:focus, input:focus, textarea:focus, select:focus,
a.card:focus {
  outline: 3px solid #b8860b;
  outline-offset: 2px;
}
a:focus:not(:focus-visible) { } /* keep default; modern browsers refine via :focus-visible */

/* FIX: skip link — hidden until focused, then visible */
.skip {
  position: absolute; left: 8px; top: -48px;
  background: #0b3c5d; color: #ffffff; padding: 10px 16px;
  z-index: 100; transition: top 0.15s ease;
}
.skip:focus { top: 8px; }

header.site {
  background: #0b3c5d;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .name { color: #ffffff; font-size: 22px; font-weight: bold; }

nav ul { list-style: none; display: flex; gap: 22px; }
/* FIX: nav links light enough for 4.5:1 on navy; underline on hover/focus */
nav a, .download { color: #e6eef3; text-decoration: none; font-size: 16px; }
nav a, .download:hover, nav a, .download:focus { color: #ffffff; text-decoration: underline; }
nav a[aria-current="page"] { text-decoration: underline; font-weight: bold; }

.container { max-width: 960px; margin: 0 auto; padding: 32px 24px; }

/* Hero */
.hero { background: #e8eef2; padding: 48px 24px; text-align: center; }
.hero .headline { font-size: 34px; color: #0b3c5d; font-weight: bold; margin-bottom: 10px; }
/* FIX: hero subtext dark enough for strong contrast */
.hero .subtext { font-size: 18px; color: #33434d; }

/* FIX: links in body underlined and high-contrast */
.content a { color: #0b3c5d; text-decoration: underline; }
.content a:hover, .content a:focus { color: #082e47; }

/* FIX: accessible primary button (teal bg, white text) */
.btn {
  display: inline-block;
  background: #0f6e56; color: #ffffff;
  padding: 10px 20px; border: none; font-size: 16px;
  cursor: pointer; margin-top: 12px; text-decoration: none;
}
.btn:hover, .btn:focus { background: #0b5745; text-decoration: underline; }

/* Service cards — now real links */
.cards { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
a.card {
  flex: 1 1 260px;
  border: 1px solid #c4ccd2; padding: 20px;
  text-decoration: none; color: #2a2a2a; display: block;
}
a.card:hover { border-color: #0b3c5d; background: #f4f8fb; }
.card .icon { font-size: 30px; }
.card h3 { margin: 10px 0 6px; color: #0b3c5d; }

/* Data table */
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
td, th { border: 1px solid #bcc4ca; padding: 10px; text-align: left; }
th { background: #eef3f6; }

/* Forms */
form { margin-top: 16px; max-width: 520px; }
.field { margin-bottom: 18px; }
label { display: block; font-weight: bold; margin-bottom: 4px; color: #1a1a1a; }
.req { color: #b03021; }
input, textarea, select {
  width: 100%; padding: 10px; font-size: 16px; border: 1px solid #8a8a8a;
}
fieldset { border: 1px solid #c4ccd2; padding: 12px 16px; }
legend { font-weight: bold; padding: 0 6px; }
.radio-row label { display: inline; font-weight: normal; margin-right: 18px; }
/* FIX: error conveyed by text + icon, not color alone; still visually red */
.field.has-error input { border: 2px solid #b03021; }
.error-msg { color: #b03021; font-size: 14px; margin-top: 4px; font-weight: bold; }
button.submit {
  background: #0b3c5d; color: #ffffff; padding: 12px 26px;
  font-size: 16px; border: none; cursor: pointer; margin-top: 8px;
}
button.submit:hover, button.submit:focus { background: #082e47; }

footer.site {
  background: #07293d; color: #dbe6ee; padding: 24px; text-align: center;
  font-size: 14px; margin-top: 40px;
}
img { max-width: 100%; height: auto; }
details { margin-top: 10px; }
summary { cursor: pointer; color: #0b3c5d; font-weight: bold; }

/* Visually-hidden but available to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Radios/checkboxes should not be full width */
input[type="radio"], input[type="checkbox"] { width: auto; margin-right: 6px; }
.radio-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
