* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f6f7f8;
}

html,
body {
  overflow-x: visible;
}

h1,
h2,
h3 {
    line-height: 1.25;
    margin-top: 0;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0.5rem 0 1rem;
}

.muted {
    color: #555;
}

.panel {
    background: #fff;
    margin: 1.25rem auto;
    padding: 1.5rem;
    width: min(1100px, 92%);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.siteHeader {
    margin-top: 0;
}

.headerInner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.headerActions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    border: 1px solid #ccc;
    background: #f0f0f0;
    color: #222;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn:hover {
    background: #e6e6e6;
}

.btnPrimary {
    background: #0077cc;
    color: #fff;
    border-color: #0077cc;
}

.btnPrimary:hover {
    background: #005fa3;
}

.ctaRow {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.list {
    padding-left: 1.2rem;
}

.list li {
    margin-bottom: 0.4rem;
}

.miniList {
    padding-left: 1.1rem;
    margin: 0.5rem 0 0;
}

.miniList li {
    font-size: 0.9rem;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cardTitle {
    margin-bottom: 0.25rem;
}

.cardText {
    font-size: 0.95rem;
}

.steps {
    padding-left: 1.2rem;
}

.steps li {
    margin-bottom: 0.5rem;
}

form {
    margin-top: 1rem;
}

fieldset {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 6px;
}

legend {
    padding: 0 0.4rem;
    font-weight: 600;
}

label {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.4rem;
    font-size: 0.95rem;
}

textarea {
    resize: vertical;
}

details {
    margin-bottom: 0.75rem;
}

summary {
    cursor: pointer;
    font-weight: 600;
}

.siteFooter {
    text-align: center;
}

.siteFooter a {
    color: #0077cc;
    text-decoration: none;
}

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

/* Give Intro.js room so tooltips don't get pinned/cut off at the top */
.panel {
  scroll-margin-top: 180px;
}

/* Extra room for steps that need space for the tooltip on small screens */
@media (max-width: 900px) {
  .tour-buffer {
    scroll-margin-top: 260px;   /* pushes target lower when scrolled into view */
    scroll-margin-bottom: 260px; /* gives room below too */
  }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}
