/* 1. Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 1.125rem; /* 18px base font size */
    line-height: 1.6;
    color: #0D0D0D; /* Almost black for high contrast */
    background-color: #FFFFFF; /* White background */
}

/* 2. Layout and Helpers */
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

/* 3. Header */
.site-header {
    background-color: #f5f5f5;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.site-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    color: #333;
}

/* 4. Main Content Sections */
main section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

main h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

main h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

main p, main li {
    margin-bottom: 1rem;
}

/* 5. Links */
a {
    color: #005A9C; /* A strong, accessible blue */
    text-decoration: underline;
}

a:hover, a:focus {
    text-decoration: none;
}

/* 6. Components */
.card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-top: 0;
}

.show-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* On larger screens, create a two-column grid */
@media (min-width: 768px) {
    .show-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 7. Footer */
.site-footer {
    background-color: #0D0D0D;
    color: #FFFFFF;
    padding: 2rem 0;
    text-align: center;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.site-footer h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: #FFFFFF;
}

.site-footer p {
    font-size: 0.9rem;
    margin-top: 1.5rem;
}
/* 8. Accordion Styles */
.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-item h2 {
    margin-bottom: 0;
}

.accordion-trigger {
    /* Reset button styles to look like a heading */
    background: none;
    border: none;
    font-family: inherit;
    font-size: 2rem; /* Matches h2 style */
    font-weight: bold; /* Matches h2 style */
    color: inherit;
    text-align: left;
    padding: 1.5rem 0;
    width: 100%;
    cursor: pointer;
    
    /* Layout for title and icon */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-trigger:hover,
.accordion-trigger:focus {
    color: #005A9C;
}

.accordion-panel {
    padding-bottom: 1.5rem;
}

/* Style for the +/- icon */
.accordion-icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    position: relative;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: currentColor;
    transition: transform 0.2s ease-in-out;
}

.accordion-icon::before {
    width: 60%;
    height: 2px;
    margin-left: -30%;
    margin-top: -1px;
}

.accordion-icon::after {
    width: 2px;
    height: 60%;
    margin-left: -1px;
    margin-top: -30%;
}

/* Rotate the vertical line to form a minus sign when expanded */
.accordion-trigger[aria-expanded='true'] .accordion-icon::after {
    transform: rotate(90deg);
}

/* Helper class to visually hide elements that should still be read by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}