/* Global Styles */
body {
  font-family: "Merriweather", Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

a {
  color: #003366;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.5rem;
  background-color: #00264d;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

header h1 {
  font-size: 2.2rem;
  margin: 0;
  text-align: center;
  flex: 0 1 auto;
  color: white;
}

/* Back Links */
.back-link {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  position: absolute;
  left: 1.5rem;
  display: flex;
  align-items: center;
  height: 100%;
}

.back-link a:hover {
  text-decoration: underline;
}

header .back-link a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
}

/* Next Links */
.next-link {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  position: absolute;
  right: 1.5rem;
  display: flex;
  align-items: center;
  height: 100%;
}

.next-link a:hover {
  text-decoration: underline;
}

header .next-link a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
}

/* Content Container */
.container {
  width: min(960px, 90%);
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}

/* Headings */
h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #00264d;
}

h2 {
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #003366;
}

/* Paragraphs and Lists */
p {
  margin-bottom: 1rem;
}

ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Inline code styling */
code {
  font-family: "Courier New", Courier, monospace;
  background-color: #f4f4f4;
  color: #c7254e;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.95em;
  white-space: nowrap;
}

/* Block code */
pre {
  background-color: #f4f4f4;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  overflow-x: auto;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95em;
  line-height: 1.4;
  color: #333;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  white-space: pre-wrap;
}

pre {
  border: 1px solid #ddd;
}

code:hover {
  background-color: #e8e8e8;
  cursor: text;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.95rem;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.table thead {
  background-color: #003366;
  color: #fff;
}

.table th {
  font-weight: bold;
}

.table tbody tr:nth-child(even) {
  background-color: #f7f9fb;
}

.table a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
}

.table a:hover {
  text-decoration: underline;
}
