/* Reset some default browser styles */
* {
    xmargin: 0;
    xpadding: 0;
    box-sizing: border-box;
}

/* Set a base font size and family for the whole document */

body {
	font-family: Georgia, "Times New Roman", serif;
    font-size: 1.14rem;
    line-height: 1.72;
    color: #18232c;
    background-color: #ffffff;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(14px, 3vw, 32px);
    box-shadow: 0 0 70px rgba(30, 43, 36, 0.08);
}

html {
    background: #f4efe5;
}

p {
	font-family: Georgia, "Times New Roman", serif;
	font-style: normal; 
    font-size: inherit;
	font-weight: 400;
    line-height: inherit;
    color: inherit;
    background-color: #ffffff;
    xpadding: 20px;
}

/* Style for main content wrapper */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header styles */
header {
    background: linear-gradient(135deg, #08243f, #1d608f);
    color: white;
    padding: 28px 22px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(8, 36, 63, 0.2);
}
header h1 {
	margin: 0;
    font-size: 2em;
    color: #ffffff;
}

header a{
	color: #fafafa;
}
header a:hover{
	color: #00fafa;
}

.research-credit {
    margin: 8px 0 16px;
    color: #d9e7f2;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.research-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 0;
    background: transparent;
}

.research-nav a {
    padding: 4px 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    text-decoration: none;
}


/* Navigation styles */
nav {
    margin: 20px 0;
    background-color: #333;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #007bff;
}

/* Main content styles */
main {
    margin: 20px 0;
}

main h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

main p {
    margin-bottom: 15px;
}

/* Footer styles */
footer {
    background-color: #f7f3ea;
    text-align: center;
    padding: 18px;
    margin-top: 40px;
    border-top: 1px solid #d8cebc;
    border-radius: 10px;
}

footer p {
    margin: 4px 0;
    color: #53615a;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #123b5c;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

li,
blockquote,
td,
th {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.65;
}

h1,
h2,
h3,
h4 {
    color: #08243f;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.22;
}

/* Older research pages often repeat the same section rule twice. */
hr + hr,
div:has(> hr:only-child) + div:has(> hr:only-child) {
    display: none;
}


.divbox {
  width: 80%; /* Resizes as screen shrinks, up to the max-width */
  max-width: 800px; /* Will not get wider than 800px */
  margin: 0 auto; /* Centers the block */
  padding:10px;
  background-color: #DBB39F;
  color: #000000;
  box-sizing: border-box;
}

.divbox2 {
  width: 80%; /* Resizes as screen shrinks, up to the max-width */
  max-width: 800px; /* Will not get wider than 800px */
  margin: 0 auto; /* Centers the block */
  padding:10px;
  background-color: #ffeeb9;
  color: #000000;
  box-sizing: border-box;
}

/* Long-form research reading experience */
.research-article,
.article-long {
    max-width: 980px;
}

.article-kicker,
.article-byline,
.article-toc,
.article-quicknav,
.article-notes > summary {
    font-family: Arial, Helvetica, sans-serif;
}

.article-kicker {
    margin: 1.8rem 0 0.55rem;
    color: #8a4b18;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.article-byline {
    margin: 0.65rem 0 1.5rem;
    color: #59645f;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.55;
}

.article-toc {
    margin: 1.8rem 0 2.5rem;
    padding: 18px;
    background: #f7f3ea;
    border: 1px solid #d8cebc;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(30, 43, 36, 0.06);
}

.article-toc-label {
    margin: 0 0 12px;
    color: #1d608f;
    background: transparent;
    font: 800 0.72rem/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.article-toc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.article-toc-grid > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 9px 11px;
    color: #123b5c;
    background: #fffdfa;
    border: 1px solid #ddd4c4;
    border-radius: 8px;
    font: 700 0.86rem/1.3 Arial, Helvetica, sans-serif;
    text-decoration: none;
}

.article-toc-grid > a:hover,
.article-toc-grid > a:focus-visible {
    background: #eaf3f8;
    border-color: #9bbbd2;
    outline: none;
}

.article-toc-grid .article-offpage {
    color: #5b361c;
    background: #fff5e6;
    border-color: #e3bf86;
}

.article-offpage small {
    margin-left: 12px;
    color: #8a4b18;
    font: 800 0.63rem/1.15 Arial, Helvetica, sans-serif;
    letter-spacing: 0.05em;
    text-align: right;
    text-transform: uppercase;
}

.article-long h3,
.article-long h4:not(.article-byline),
.research-article h3,
.research-article h4:not(.article-byline) {
    margin: 3.2rem 0 1rem;
    padding: 0 0 0.65rem;
    color: #08243f;
    border-bottom: 1px solid #d8cebc;
    scroll-margin-top: calc(var(--global-nav-height, 0px) + 70px);
    text-align: left;
}

.article-long h3,
.research-article h3 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.article-long h4:not(.article-byline),
.research-article h4:not(.article-byline) {
    font-size: clamp(1.15rem, 2.4vw, 1.45rem);
    letter-spacing: 0.025em;
}

.comparison-source-editions {
    margin: 28px auto 38px;
    padding: clamp(20px, 3vw, 30px);
    background: linear-gradient(135deg, #f7f2e7, #eef3ee);
    border: 1px solid #d8ceba;
    border-left: 4px solid #b98236;
    border-radius: 10px;
}

.comparison-source-heading span,
.comparison-source-editions .source-role {
    display: block;
    color: #8b5a22;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.comparison-source-heading h2 {
    margin: 5px 0 6px;
    color: #08243f;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    text-align: left;
}

.comparison-source-heading p {
    margin: 0;
    color: #52605a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
}

.comparison-source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 19px;
}

.comparison-source-grid article {
    padding: 17px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #ddd5c6;
    border-radius: 7px;
}

.comparison-source-grid h3 {
    margin: 9px 0 6px;
    padding: 0;
    color: #08243f;
    border: 0;
    font-size: 1.08rem;
    line-height: 1.3;
    text-align: left;
}

.comparison-source-grid p {
    margin: 0 0 9px;
    color: #263b4c;
    font: 0.82rem/1.45 Arial, Helvetica, sans-serif;
}

.comparison-source-grid small {
    display: block;
    color: #5e6863;
    font: 0.76rem/1.48 Arial, Helvetica, sans-serif;
}

.source-edition-provenance {
    padding: 13px 16px;
    background: #f5f1e7;
    border-left: 3px solid #b98236;
}

.article-reading-progress {
    position: fixed;
    z-index: 1200;
    top: var(--global-nav-height, 0px);
    left: 0;
    width: var(--article-progress, 0%);
    height: 3px;
    background: linear-gradient(90deg, #1d608f, #c2853d);
    box-shadow: 0 1px 4px rgba(29, 96, 143, 0.22);
    pointer-events: none;
}

.article-quicknav {
    position: fixed;
    z-index: 850;
    right: max(16px, calc((100vw - 980px) / 2 - 150px));
    bottom: 24px;
    display: flex;
    gap: 5px;
    padding: 5px;
    background: rgba(8, 36, 63, 0.96);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(8, 36, 63, 0.22);
    backdrop-filter: blur(10px);
}

.article-quicknav a {
    padding: 8px 10px;
    color: white;
    border-radius: 7px;
    font: 800 0.72rem/1 Arial, Helvetica, sans-serif;
    text-decoration: none;
}

.article-quicknav a:hover,
.article-quicknav a:focus-visible {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.article-notes {
    margin: 3rem 0 1.5rem;
    padding: 0;
    background: #f8f4ec;
    border: 1px solid #d8cebc;
    border-radius: 12px;
}

.article-notes > summary {
    padding: 14px 17px;
    color: #123b5c;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 800;
}

.article-notes[open] > summary {
    border-bottom: 1px solid #d8cebc;
}

.article-notes-content {
    padding: 8px 20px 20px;
}

.article-notes-content p {
    font-size: 0.96rem;
    line-height: 1.58;
}

.article-notes-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}



/* Responsive design for smaller screens */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 1.55em;
    }

    body {
        font-size: 1.04rem;
    }

    .research-nav {
        gap: 5px 14px;
    }

    .article-toc-grid {
        grid-template-columns: 1fr;
    }

    .comparison-source-grid {
        grid-template-columns: 1fr;
    }

    .article-quicknav {
        right: 12px;
        bottom: 12px;
    }
}
