/* document.css */

:root {
  --primary-color: #333;
  --secondary-color: #555;
  --background-color: #f0f0f0;
  --note-color: #777;
  --link-color: #007bff;
  --link-hover-color: #0056b3;
  --font-family: Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--primary-color);
}

/* Responsive container with a sensible max width */
.container {
  width: min(92vw, 960px);
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  border-bottom: 1px solid #ccc;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.header h1 {
  margin: 0;
  font-size: 24px;
  color: var(--primary-color);
}

.header p {
  margin: 10px 0 0;
  color: var(--note-color);
}

/* Sections */
.section { margin-bottom: 20px; }

.section-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.section-content {
  font-size: 16px;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Lists (logical props so RTL/LTR both look right) */
.section-content ul {
  padding-inline-start: 1.5rem;
  margin-block: 10px 0;
}

.section-content ul li { margin-bottom: 0.8rem; }

/* Notes */
.note {
  font-size: 15px;
  color: var(--note-color);
  margin-top: 15px;
  font-style: italic;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
}
a:hover { text-decoration: underline; color: var(--link-hover-color); }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Images & inline icons */
img { max-width: 100%; height: auto; }
.icon { width: 24px; height: 24px; vertical-align: middle; margin-inline: .15rem; }

/* Keep the brand literal & unbroken */
.brand.notranslate[translate="no"] { white-space: nowrap; }

/* === RTL support === */
html[dir="rtl"] body { direction: rtl; }

/* Use logical alignment so both LTR/RTL look correct */
.header, .section-title, .section-content { text-align: start; }

/* Mobile tweaks */
@media (max-width: 600px) {
  .container { width: 94vw; padding: 12px; }
  .header h1 { font-size: 20px; }
  .section-title { font-size: 18px; }
  .section-content { font-size: 14px; }
}

/* Reduce motion: nothing animated here, so nothing needed */
