p, h1, h2, h3, h4, h5, h6, button {
    font-family: "Roboto", serif;
}

body {
    background-color: #f5f5f9;
    background-size: cover;
    width: auto; 
    overflow-x: hidden;
    font-family: "Roboto", serif;
    margin: 0px;
}

a {
    color: #1C539F;
}

.nav-bar {
    width: 100%;
    display: block;
    background-color: #1C539F;
    font-family: "Roboto", serif;
    font-weight: 700 !important;
    padding: 10px 0;
}

.nav-content {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-content .logo-touch-target {
    display: inline-flex;
    width: 220px;
    text-decoration: none;
}

.nav-content .nav-logo {
    height: 60px;
    margin: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    width: 200px;
}

.nav-content nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    text-align: right;
}

.nav-link {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    background-color: white;
    color: #1C539F;
}

.profile {
    background-color: #1d539f !important;
    text-align: center;
    min-height: 360px;
    height: auto;
    margin-bottom: 50px;
    padding-bottom: 24px;
}

.profile h1 {
        font-size: 50px;
        font-weight: 700;
        color: white;
        margin: 0;
}

.profile p {
        color: white;
        font-size: 18px;
        margin: 8px auto 0;
        max-width: 640px;
        padding: 0 16px;
}

.profile img {
        border-radius: 50%;
        max-width: 100%;
        max-height: 100%;
        margin-left: auto;
        margin-right: auto;
        display: block;        
        padding: 20px;
        object-fit: cover;
}

.profile .profile-picture {
    margin-bottom: 30px;
    height: 200px;
}

.page-content {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto 64px;
}

.section {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 28px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading h2 {
    color: #1C539F;
    font-size: 28px;
    margin: 0;
}

.section-heading a,
.social-links a,
.link-row a {
    font-weight: 700;
    text-decoration: none;
}

.section p {
    color: #334155;
    font-size: 16px;
    line-height: 1.6;
}

.social-links,
.link-row,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links {
    margin-top: 18px;
}

.social-links a,
.link-row a,
.tag-list span {
    background-color: #eef4ff;
    border: 1px solid #d7e4fb;
    border-radius: 4px;
    color: #1C539F;
    padding: 7px 10px;
}

.timeline-list {
    display: grid;
    gap: 16px;
}

.timeline-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: start;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
}

.timeline-logo {
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.timeline-logo img {
    max-height: 52px;
    max-width: 52px;
    object-fit: contain;
}

.timeline-card h3,
.feature-card h3,
.mini-card h3 {
    color: #0f172a;
    margin: 0;
}

.timeline-card p,
.feature-card p,
.mini-card p {
    margin-bottom: 0;
}

.eyebrow {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.subtle-link {
    color: #1C539F;
    display: inline-block;
    font-weight: 700;
    margin-top: 4px;
    text-decoration: none;
}

.card-grid {
    display: grid;
    gap: 18px;
}

.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.mini-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.feature-card > img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.feature-card > div,
.mini-card {
    padding: 18px;
}

.mini-card img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    display: block;
    margin-bottom: 14px;
    object-fit: cover;
    width: 100%;
}

.tag-list {
    margin: 16px 0;
}

.tag-list span {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.map-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}

.map-layout iframe {
    border: 0;
    border-radius: 8px;
    min-height: 360px;
    width: 100%;
}

.location-list {
    display: grid;
    gap: 12px;
}

.location-list a {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 16px;
    text-decoration: none;
}

.location-list strong {
    color: #0f172a;
}

.location-list span {
    color: #475569;
}

@media (max-width: 780px) {
    .nav-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-content nav {
        justify-content: flex-start;
        text-align: left;
    }

    .profile h1 {
        font-size: 38px;
    }

    .section {
        padding: 20px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .timeline-card,
    .map-layout,
    .two-column,
    .three-column {
        grid-template-columns: 1fr;
    }
}

.banner {
    padding: 20px 0px 50px 0px;
    height: 150px;
    background-color: #1d539f;
}

.banner .logo {
    max-width:180px;
    max-height:60px;
    width: auto;
    height: auto;
}

.banner .title {
    color: white;
    font-size: 50px;
    font-weight: 700;
}

/* Community timeline */
.community-timeline {
    --ink: #10213d;
    --muted: #66758c;
    --blue: #1c539f;
    --blue-dark: #153c71;
    --paper: #fffdf8;
    --line: #d8dfeb;
    background:
        linear-gradient(rgba(28, 83, 159, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 83, 159, 0.04) 1px, transparent 1px),
        var(--paper);
    background-size: 24px 24px;
    border: 1px solid #d9e1ec;
    border-radius: 2px;
    box-shadow: 12px 12px 0 #dce6f5;
    color: var(--ink);
    overflow: hidden;
}

.timeline-intro {
    border-bottom: 1px solid var(--line);
    padding: 42px 48px 36px;
}

.timeline-kicker,
.composer-heading p,
.dispatches-heading p {
    color: var(--blue);
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.timeline-title-row {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.timeline-title-row h2 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 6vw, 66px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.98;
    margin: 0;
    max-width: 760px;
}

.timeline-intro > p:last-child {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
    margin: 18px 0 0;
    max-width: 670px;
}

.live-marker {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #c9d8ee;
    border-radius: 999px;
    color: var(--blue-dark);
    display: inline-flex;
    flex: 0 0 auto;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    padding: 8px 12px;
}

.live-marker i {
    animation: timeline-pulse 1.8s ease-out infinite;
    background: #2eae69;
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.timeline-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.35fr);
}

.timeline-composer {
    align-self: start;
    border-right: 1px solid var(--line);
    padding: 36px;
    position: sticky;
    top: 20px;
}

.composer-heading {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    margin-bottom: 26px;
}

.composer-heading > span {
    color: #d27a24;
    font-size: 24px;
    line-height: 1;
}

.composer-heading h3,
.dispatches-heading h3 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 400;
    margin: 0;
}

.field-group {
    margin-bottom: 19px;
}

.field-group label,
.field-label-row span {
    color: #253a59;
    display: block;
    font-family: "Roboto", sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
}

.field-label-row span {
    color: #8692a5;
    font-weight: 500;
}

.field-group input,
.field-group textarea {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #cbd4e1;
    border-radius: 2px;
    box-sizing: border-box;
    color: var(--ink);
    font: 16px/1.5 "Roboto", sans-serif;
    outline: none;
    padding: 12px 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
    width: 100%;
}

.field-group textarea {
    min-height: 144px;
    resize: vertical;
}

.field-group input:focus,
.field-group textarea:focus {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 4px 4px 0 #cedcf1;
}

.field-group small {
    color: #78869a;
    display: block;
    font: 12px/1.4 "Roboto", sans-serif;
    margin-top: 6px;
}

.timeline-submit {
    align-items: center;
    background: var(--blue);
    border: 0;
    border-radius: 2px;
    box-shadow: 4px 4px 0 #0f2f60;
    color: white;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0.03em;
    padding: 14px 16px;
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
    width: 100%;
}

.timeline-submit:hover:not(:disabled) {
    box-shadow: 2px 2px 0 #0f2f60;
    transform: translate(2px, 2px);
}

.timeline-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.form-status {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin: 12px 0 0;
    min-height: 18px;
}

.form-status.success { color: #237548; }
.form-status.error { color: #b23a33; }

.dispatches {
    min-width: 0;
    padding: 36px 42px 48px;
}

.dispatches-heading {
    align-items: end;
    border-bottom: 2px solid var(--ink);
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-bottom: 16px;
}

#post-count {
    color: var(--muted);
    font: 700 12px/1 "Roboto", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dispatch-card {
    animation: dispatch-arrive 460ms both;
    animation-delay: calc(var(--dispatch-index, 0) * 55ms);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    padding: 25px 0;
}

.dispatch-rail {
    display: flex;
    justify-content: flex-start;
    padding-top: 19px;
}

.dispatch-rail span {
    background: #d27a24;
    border: 3px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1px #d27a24;
    height: 7px;
    width: 7px;
}

.dispatch-body header {
    align-items: center;
    display: flex;
    gap: 13px;
}

.dispatch-avatar {
    background: #d8e5ff;
    border: 1px solid #c2cee0;
    border-radius: 50%;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.dispatch-author {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}

.dispatch-time {
    color: #77859a;
    font: 12px/1.3 "Roboto", sans-serif;
}

.dispatch-content {
    color: #35465e;
    font: 16px/1.65 "Roboto", sans-serif;
    margin: 15px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.timeline-loading,
.timeline-empty,
.timeline-error {
    color: var(--muted);
    font-family: "Roboto", sans-serif;
    padding: 52px 18px;
    text-align: center;
}

.timeline-loading span {
    animation: timeline-spin 800ms linear infinite;
    border: 2px solid #c8d3e2;
    border-radius: 50%;
    border-top-color: var(--blue);
    display: inline-block;
    height: 15px;
    margin-right: 8px;
    vertical-align: -3px;
    width: 15px;
}

.timeline-empty > span {
    color: #d27a24;
    font-size: 32px;
}

.timeline-empty h4,
.timeline-error h4 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    margin: 8px 0 4px;
}

.timeline-empty p,
.timeline-error p {
    margin: 0;
}

.timeline-error {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    text-align: left;
}

.timeline-error > span {
    align-items: center;
    background: #f8e4df;
    border-radius: 50%;
    color: #a4342e;
    display: flex;
    flex: 0 0 auto;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

@keyframes timeline-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 174, 105, 0.45); }
    70% { box-shadow: 0 0 0 7px rgba(46, 174, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 174, 105, 0); }
}

@keyframes timeline-spin {
    to { transform: rotate(360deg); }
}

@keyframes dispatch-arrive {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
    .timeline-layout { grid-template-columns: 1fr; }
    .timeline-composer {
        border-bottom: 1px solid var(--line);
        border-right: 0;
        position: static;
    }
}

@media (max-width: 600px) {
    .community-timeline { box-shadow: 7px 7px 0 #dce6f5; }
    .timeline-intro { padding: 30px 22px 26px; }
    .timeline-title-row { align-items: flex-start; flex-direction: column; gap: 18px; }
    .timeline-title-row h2 { font-size: 40px; }
    .timeline-composer,
    .dispatches { padding: 28px 22px 36px; }
    .dispatches-heading { align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .live-marker i,
    .timeline-loading span,
    .dispatch-card { animation: none; }
    .timeline-submit { transition: none; }
}
