:root {
    --bg: #ffffff;
    --text: #1b1b1b;
    --muted: #666;
    --rule: #e7e7e7;
    --link: #0b57d0;
    --max: 120ch;
    --paper: #ffffff;
    --seam-gutter: 22px;
    --seam-strip: 46px;
    --seam-overlap: -10px;
    --spiral-opacity: 0.9;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-family: Georgia, "Times New Roman", Times, serif;
}

a {
    color: var(--link);
    text-decoration-thickness: .08em;
    text-underline-offset: .18em;
}

a:hover {
    text-decoration-thickness: .12em;
}

.wrap {
    max-width: calc(var(--max) + 2rem);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 24px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    max-width: 1200px;
}

.container{
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.brand-name {
    font-weight: 600;
}

.brand-tagline {
    font-size: 13px;
    color: var(--muted);
}

.top-nav a {
    margin-left: 18px;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
}

.top-nav a:hover {
    color: var(--text);
}

.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}


.doc-post {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 56px 48px;
    margin: 0;
    /* important: remove auto-centering */
}

/* Stop Google doc wrapper from shrinking width */
.doc-content,
.c21.doc-content,
.c21 {
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.doc-post {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 48px 32px 48px 72px;
    /* extra left space for binding */
    margin: 0;
    /* align with top of grid */
    overflow: hidden;
}

.doc-post .doc-content {
    max-width: 860px;
}

.doc-content,
.c21.doc-content,
.c21 {
    max-width: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.blog-rail{
  position: sticky;
  top: 0px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
    padding: 16px 16px;
}

.rail-title {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.rail-nav a,
.rail-list a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #111827;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.3;
}

.rail-nav a:hover,
.rail-list a:hover {
    background: rgba(17, 24, 39, .05);
}

/* Limit sidebar height and allow internal scroll */
.rail-nav {
    max-height: 45vh;
    overflow: auto;
    padding-right: 4px;
}

/* Images */
.doc-post img {
    display: block;
    margin: 32px auto;
    max-width: 100%;
    height: auto;
}

.doc-post span[style*="overflow: hidden"] {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 1) Make the exported Google Doc title look like the big headline */
.doc-post .title {
    margin: 0 0 .6rem !important;
    padding: 0 !important;
    text-align: left !important;
    font-family: ui-serif, Georgia, "Times New Roman", Times, serif !important;
    font-weight: 800 !important;
    font-size: clamp(2.1rem, 3.2vw, 3.1rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
}

.doc-post .subtitle p {
    display: inline;
    margin: 0;
}

.doc-post .subtitle p+p::before {
    content: " · ";
    color: var(--muted);
    padding: 0 .25rem;
}

.doc-post .subtitle {
    margin: 0 0 1.2rem !important;
    padding: 0 !important;
    text-align: left !important;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    font-size: 1.05rem !important;
    line-height: 1.45 !important;
    color: var(--muted) !important;
}

.doc-post .subtitle .subhead {
    display: block;
    margin-top: .2rem;
    font-weight: 500;
    color: blue;
}

.doc-post .c69 {
  color: #188038 !important;  
  font-weight: 1000 !important;
}

@media (max-width: 980px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-rail {
        position: static;
        order: 2;
    }

    .doc-post {
        padding: 36px 22px;
    }
}
