/* --------------------------------------------------------- */
/* Base layout                                                */
/* --------------------------------------------------------- */

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

/* Centered content wrapper */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* --------------------------------------------------------- */
/* Header                                                    */
/* --------------------------------------------------------- */

header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 1.5rem 0;
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
}

.pullquote {
  font-size: 1.3em;
  font-style: italic;
  margin: 1.5em 0;
  /* padding-left: 1em; */
  /* border-left: 3px solid #ccc; */
}


/* --------------------------------------------------------- */
/* Navigation                                                */
/* --------------------------------------------------------- */

.navbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 1.2rem;
    flex-wrap: wrap;
}

.logo-link {
    flex-shrink: 0;
}

/* Logo in navbar */
.nav-logo {
    height: 40px;
    width: auto;
    transition: transform 0.15s ease;
}

/* Hover enlargement */
.nav-logo:hover {
    transform: scale(2.2);
    transform-origin: center;
    z-index: 999;
}

.navbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    margin: 0;
    flex: 1;
    justify-content: center;
}

.navbar a {
    text-decoration: none;
    color: #005bbb;
    font-weight: 500;
}

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

/* --------------------------------------------------------- */
/* Main content                                               */
/* --------------------------------------------------------- */

main {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------- */
/* Footer                                                     */
/* --------------------------------------------------------- */

footer {
    background: #ffffff;
    border-top: 1px solid #ddd;
    padding: 1.5rem 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.mws-logo {
    width: 120px;
    height: 120px;
    display: block;
    margin: 1rem auto;
}

.site-header .mws-logo {
    width: 80px;
    height: 80px;
    float: left;
    margin-right: 1rem;
}

/* --------------------------------------------------------- */
/* Responsive adjustments                                     */
/* --------------------------------------------------------- */

@media (max-width: 768px) {
    .nav-logo {
        height: 32px;
    }

    .navbar nav {
        justify-content: flex-start;
        gap: 0.5rem;
    }
}

/* --------------------------------------------------------- */
/* RFC-SPECIFIC STYLING                                      */
/* --------------------------------------------------------- */

.rfc {
    font-family: ui-monospace, "Cascadia Mono", "Liberation Mono", monospace;
    white-space: pre-wrap;      /* preserve spacing for diagrams */
    font-size: 0.95rem;
    line-height: 1.45;
    color: #111;
}

.rfc h1, .rfc h2, .rfc h3, .rfc h4 {
    font-family: inherit;
    font-weight: bold;
    white-space: normal;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Table of contents indentation */
.rfc .toc-level-1 { margin-left: 0; }
.rfc .toc-level-2 { margin-left: 1.5rem; }
.rfc .toc-level-3 { margin-left: 3rem; }

.rfc a {
    color: #005bbb;
    text-decoration: none;
}

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

pre { 
    font-family: monospace; 
    white-space: pre; 
    overflow-x: auto; 
}



/* --------------------------------------------------------- */
/*  Figures						     */
/* --------------------------------------------------------- */


figure {
  text-align: center;
  margin: 2rem auto;
}

figure img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
  font-style: italic;
}

