.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.logo {
    margin-right: 2rem;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* simple inline form in the topbar for location lookup */
.loc-form input {
    padding: 0.35rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.loc-form button {
    margin-left: 0.5rem;
    padding: 0.35rem 0.6rem;
    font-size: 13px;
    border: 1px solid #007bff;
    background: #007bff;
    color: white;
    border-radius: 3px;
    cursor: pointer;
}

.loc-form button:hover { background: #0056b3; border-color:#0056b3 }

/* Centered location prompt styles */
.center-search {
    max-width: 600px;
    margin: 6rem auto;
    padding: 2.5rem 2rem;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-align: center;
}

.center-search h2 {
    margin: 0 0 0.5rem 0;
    font-size: 22px;
}

.center-sub { color:#666; margin:0 0 1rem 0 }

.center-loc-form {
    display:flex;
    justify-content:center;
    gap:0.5rem;
    align-items:center;
}

.center-loc-form input {
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    width: 240px;
    margin: 0 auto;        /* center the input element within the form */
    display: block;        /* allow margin auto to take effect */
    text-align: center;    /* center the text inside the input */
}

.center-loc-form button {
    padding: 0.55rem 0.9rem;
    font-size: 15px;
    border: 1px solid #007bff;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.search-error { margin-top:1rem;color:#900 }

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

body {
    margin-top: 80px; /* Add space below the fixed topbar */
    padding: 0;
    font-family: Arial, sans-serif;
}
/* layout for page content */
.container {
    max-width: 8.5in;
    margin: 2rem auto;
    padding: 0;
}

/* Document styles */
.document {
    background: white;
    width: 8.5in;
    min-height: 11in;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
    position: relative;
    padding: 0; /* Remove padding as we'll handle it in title and content separately */
}


.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1in;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.document-title {
    font-size: 18px;
    font-weight: bold;
    text-align: left;
    margin: 0;
}

.document-filename {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.document-content {
    font-size: 13px;
    line-height: 1.5;
    padding: 2rem 1in 1in 1in;
    background: white;
}

.document-text {
    margin: 0;
    text-align: left;
}

/* Print styles for proper page sizing */
@media print {
    body {
        margin: 0;
        background: white;
    }
    
    .topbar {
        display: none;
    }
    
    .container {
        max-width: 100%;
        margin: 0;
    }
    
    .document {
        box-shadow: none;
        padding: 0.5in;
        min-height: 10in; /* Account for margins */
    }
}

