/* ---------- Design Tokens ---------- */
:root {
  /* Base colors */
  --bg: #f7f7f7;
  --text: #111827;

  /* Header */
  --header-bg: #1f2937;
  --header-fg: #ffffff;

  /* Footer */
  --footer-bg: #0f172a;
  --footer-fg: #e5e7eb;

  /* Links */
  --link: #1d4ed8;
  --link-visited: #ff6a00;
  --link-hover: #f5a666;

  /* Font */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial,
               "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  padding: 1.5rem 1rem;
}

/* ---------- Header ---------- */
header {
  background: var(--header-bg);
  color: var(--header-fg);
  padding: 1rem 1rem;
}

/* Header links */
header a { color: inherit; text-decoration: none; }
header a:hover { text-decoration: underline; }

/* Header text center */
header h1 {
  text-align: center;
  margin: 0 0 0.5rem 0;
}
header p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 0.75rem auto;
}

/* Header nav */
header nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
header nav a { font-weight: 600; }

/* ---------- Footer ---------- */
footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 1rem 1rem;
}
footer a { color: #bfdbfe; }
footer a:hover { color: #93c5fd; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6, p { margin-block: 0.75rem; }
h1 { font-size: 2rem; line-height: 1.25; }
h2 { font-size: 1.5rem; line-height: 1.3; }
h3 { font-size: 1.25rem; }
p  { font-size: 1rem; }

/* ---------- Lists ---------- */
ul, ol { padding-left: 1.25rem; margin-block: 0.75rem; }

/* TOC list keeps bullets */
main nav[aria-label] ul { list-style: disc; }

/* ---------- Links ---------- */
a:link    { color: var(--link); text-decoration: underline; }
a:visited { color: var(--link-visited); }
a:hover   { color: var(--link-hover); }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ---------- Text helpers ---------- */
.lead  { font-size: 1.125rem; line-height: 1.7; }
.muted { color: #4b5563; }
.note  { font-style: italic; }

/* ---------- Header link colors ---------- */
header a:link,
header a:visited { color:#f97316; text-decoration: underline; }
header a:hover,
header a:focus  { color:#f5a666; }

/* ---------- Footer link colors ---------- */
footer a:link,
footer a:visited { color:#f97316; }
footer a:hover,
footer a:focus  { color:#f5a666; }

/* ---------- Centered images ---------- */
.centered-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem auto;
  max-width: 100%;
}
.centered-media img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
}
.caption-left {
  align-self: flex-start;
  font-size: 0.9rem;
  color: #444;
  opacity: 0.85;
  margin-left: 0.25rem;
}
/* Top nav links: force same orange as footer */
.site-nav .site-nav__link:link,
.site-nav .site-nav__link:visited {
  color: #f97316;           /* orange */
  text-decoration: none;
}
.site-nav .site-nav__link:hover,
.site-nav .site-nav__link:focus {
  color: #f5a666;           /* lighter orange */
  text-decoration: underline;
}
/* TOC links */
.toc a:link,
.toc a:visited { color: #AD0028; }
.toc a:hover,
.toc a:focus  { color: #ff5e5e; }

/* ---------- Contact us ---------- */
/* ---------- Page layout ---------- */
.intro{
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 0.5rem auto;
}
/* ---------- Form buttons ---------- */
.actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;        
  margin-top: 8px;
}

.actions input[type="submit"],
.actions input[type="reset"] {
  padding: 8px 16px;
  width: auto;              
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.25s ease, transform 0.15s ease;
  height: 40px;
}
.actions input[type="submit"] {
  background-color: #0056B3;
  color: #fff;
}
.actions input[type="submit"]:hover {
  background-color: #146fd0;
  transform: translateY(-1px);
}

.actions input[type="reset"] {
  background-color: #e5e7eb;
  color: #111;
  margin-left: 8px;
}
.actions input[type="reset"]:hover {
  background-color: #d1d5db;
  transform: translateY(-1px);
}


/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

caption {
  text-align: left;
  font-weight: bold;
  margin-bottom: 8px;
}

th, td {
  border: 1px solid #1b0202;
  padding: 8px;
  transition: background-color 0.25s ease;
}

thead th {
  background-color: #f9b58b;
}

tbody tr:nth-child(even) {
  background-color: #807e7e2f;
}

thead tr:hover th,
tbody tr:hover td {
  background-color: rgba(60, 60, 60, 0.242);
  color: #000;
  cursor: pointer;
}
.table-card,
table {
  margin-bottom: 40px;
}
/* ---------- Form controls (checkbox & radio) ---------- */
.message-type label,
.control-row label {
  display: flex;
  flex-direction: row; 
  justify-content: flex-start; 
  align-items: center; 
  gap: 8px;         
  margin-bottom: 6px;      
  width: 220px;              
  font-size: 1rem;
}

/* Radio & checkbox */
.message-type input[type="radio"],
.control-row input[type="checkbox"] {
  order: 2;
  margin-left: auto;
  margin-right: 0;
  transform: scale(1.1);
}

/* ---------- Form layout ---------- */
form label {
  display: block;
  margin-bottom: 4px; 
  font-weight: 600; 
}

label[for="message"],
#message {
  display: block;
  margin-top: 10px;
}

form input,
form select,
form textarea {
  display: block;
  width: 100%; 
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* ---------- Success page ---------- */
.success-page .back-home {
  color: #920f2e;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.success-page .back-home:hover {
  color: #ff5e5e;
  text-decoration: underline;
}
.success-page section {
  max-width: 600px;
  margin: 4rem auto 5rem auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}