:root {
  --color-primary: #1B3A57;
  --color-secondary: #2E6F6D;
  --color-accent: #C86B2B;
  --color-bg: #F6F4EF;
  --color-surface: #FFFFFF;
  --color-text: #111827;
  --color-muted: #4B5563;
  --color-border: #D1D5DB;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
  --maxw: 1120px;
  --font-base: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography - Swiss Style */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  margin-top: 2rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(200, 107, 43, 0.2);
  border-radius: 2px;
}

/* Header */
.site-header {
  background-color: var(--color-primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .site-header .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  font-weight: 700;
  color: var(--color-surface);
  letter-spacing: -0.01em;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.primary-nav a {
  color: var(--color-surface);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

.primary-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  box-shadow: none;
}

/* Page Header */
.page-header {
  background-color: var(--color-surface);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.page-header h1 {
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  background-color: var(--color-surface);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 0.5rem;
  color: var(--color-muted);
}

.breadcrumb a {
  color: var(--color-secondary);
}

.breadcrumb [aria-current="page"] {
  color: var(--color-muted);
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
}

article {
  padding-bottom: 3rem;
}

.content-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Section Navigation */
.section-nav {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.section-nav h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .section-nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* Blockquote */
blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

blockquote p {
  margin-bottom: 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.6;
}

/* Aside */
aside,
.checklist-aside,
.info-aside {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

aside h3,
.checklist-aside h3,
.info-aside h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.5rem;
}

aside ul,
.checklist-aside ul,
.info-aside ul {
  margin: 0;
  padding-left: 1.25rem;
}

aside li,
.checklist-aside li,
.info-aside li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

aside li:last-child,
.checklist-aside li:last-child,
.info-aside li:last-child {
  margin-bottom: 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

caption {
  padding: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
  text-align: left;
  background-color: var(--color-surface);
  border-bottom: 2px solid var(--color-primary);
}

thead {
  background-color: var(--color-primary);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-surface);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

tbody tr:nth-child(even) {
  background-color: var(--color-bg);
}

tbody tr:hover {
  background-color: rgba(46, 111, 109, 0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 767px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  th, td {
    min-width: 150px;
  }
}

/* Details/Summary Accordion */
details {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

details:hover {
  box-shadow: var(--shadow);
}

details[open] {
  box-shadow: var(--shadow);
}

summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.2s ease;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--color-secondary);
  color: var(--color-surface);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

details[open] summary::before {
  content: "−";
  background-color: var(--color-accent);
}

summary:hover {
  background-color: var(--color-bg);
}

summary:hover::before {
  background-color: var(--color-accent);
}

summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.faq-answer,
details > div,
details > p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0;
}

details > p:first-of-type {
  padding-top: 1.5rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  margin: 2rem 0;
}

.faq-section h2 {
  margin-bottom: 1.5rem;
}

/* Table Section */
.table-section {
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--color-surface);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-nav a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.copyright {
  text-align: center;
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Grid Layout for Wide Screens */
@media (min-width: 1024px) {
  .content-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  aside,
  .checklist-aside,
  .info-aside {
    max-width: 400px;
  }
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .page-header {
    padding: 4rem 0;
  }
  
  .content-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .section-nav {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  table {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  details {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  details[open] summary {
    border-bottom: 1px solid #000;
  }
}