/* Default element styling for accessibility and responsiveness */

html {
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  font-size: 16px;
  color: #222;
  background: #f8f9fa;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.7;
  background: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 1.2em 0 0.5em 0;
  line-height: 1.2;
  color: #1a2a3a;
}
h1 { font-size: 2.1em; }
h2 { font-size: 1.7em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.1em; }
h5 { font-size: 1em; }
h6 { font-size: 0.95em; }

p {
  margin: 0 0 1em 0;
  color: #222;
}

a {

  outline: none;
}


img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0px;
  margin: 0.5em 0;
}

button, input[type="submit"], input[type="button"] {
  font-family: inherit;
  font-size: 1em;
  padding: 0.5em 1.2em;
  border-radius: 4px;
  border: none;
  background: #0078d4;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
button:focus, input[type="submit"]:focus, input[type="button"]:focus {
  outline: 2px solid #005fa3;
  outline-offset: 2px;
}
button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background: #005fa3;
}

ul, ol {
  margin: 1em 0 1em 2em;
  padding: 0;
}
li {
  margin-bottom: 0.4em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
th, td {
  padding: 0.7em 1em;
  border-bottom: 1px solid #e2e2e2;
  text-align: left;
}
th {
  background: #f2f4f8;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

blockquote {
  margin: 1em 0;
  padding: 1em 1.5em;
  background: #f6f8fa;
  border-left: 4px solid #0078d4;
  color: #444;
  border-radius: 6px;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1em;
  padding: 0.5em;
  border-radius: 4px;
  border: 1px solid #cfd8dc;
  margin-bottom: 1em;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0078d4;
}

hr {
  border: none;
  border-top: 1px solid #e2e2e2;
  margin: 2em 0;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  html { font-size: 15px; }
  h1 { font-size: 1.5em; }
  h2 { font-size: 1.2em; }
  h3 { font-size: 1.08em; }
  h4, h5, h6 { font-size: 1em; }
  table, th, td { font-size: 0.97em; }
}
@media (max-width: 500px) {
  html { font-size: 14px; }
  h1 { font-size: 1.2em; }
  h2 { font-size: 1.08em; }
  h3, h4, h5, h6 { font-size: 1em; }
  table, th, td { font-size: 0.95em; }
  button, input, textarea, select { font-size: 0.97em; }
}