body {
    background-color: #222831;
    color: #ececec;
}

a, .toptoclink, .toclink {
    color: #f2a365;
}

.heading {
    padding-top: 0.5em;
    text-align: center;
}

.main {
    font-family: 'IBM Plex Serif', serif;
    max-width: 35em;
}

.main::before {
    content: "(Parenthetically Speaking)";
    display: block;
    background-color: #f2a365;  /* Orange background */
    color: #30475e;  /* Lighter blue-gray text to match original */
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.5em;
    font-weight: normal;  /* Original doesn't look bold */
    text-align: center;
    padding: 0.5em 0;
    margin: 1em calc(-50vw + 50%) 1em calc(-50vw + 50%);  /* Extend to viewport edges */
    width: 100vw;
}

.refelem, .refcolumn, .refcontent {
    background-color: #30475e;
    color: #ececec;
    border-color: #30475e;
    font-family: 'IBM Plex Serif', serif;
}

.RktSym, .RktPn {
    color: #c8e442;
}

.Exercise {
  padding: 0em 0em 0.5em 0em;
  border-left-style: solid;
  border-bottom-style: solid;
  border-width: 5px;
  border-color: #30475e;
}

.ExerciseHeader {
   font-weight: bold;
   background-color: #30475e;
   padding: 0.5em; /* 0px 0px 5px 10px; */
}

.ExerciseBody {
  margin-left: 0px;
  margin-right: 10px;
}

.LongMult td[data-underline="yes"] {
    border-bottom: 1px solid #f2a365;
}

.Tweet {
    border-width: .1em;
    border-style: solid;
    border-color: #55acee;
    padding: 1em 1em 2.5em 1em;
    border-radius: .5em;
    text-decoration: none;
    display: block;
}
.TweetLink {
    content: "tweet";
    float: right;
}

.QuoteBox {
    border-width: 0em 0em 0em .1em;
    border-style: solid;
    border-color: #f2a365;
    padding: 1em 1em 1em 1em;
    display: block;
}
.QuoteBoxAuthor {
    float: right;
}

.ImpCallOut {
    font-style: italic;
    font-size: large;
    display: flex;
    justify-content: center;
}

.FoldingAside {
    border-width: 0em 0em 0em .1em;
    border-style: solid;
    border-color: #f2a365;
    padding: 0.5em 0.5em 0.5em 0.5em;
    display: block;
}
.FoldingAside::before {
    content: "Aside: ";
}

.WelcomeBox {
    width: 100%;
    font-size: xx-large;
}
.WelcomeBoxParen {
    font-size: 1200%;
}
.RktVal {
    color: white;
}

/* Mobile responsive layout - remove gutter, center content */
@media screen and (max-width: 768px) {
    .maincolumn {
        width: auto !important;  /* Override Scribble's fixed 43em width */
        margin-left: auto;
        margin-right: auto;
        padding: 0 1em;
    }

    .main {
        max-width: 100%;
    }

    /* Make margin notes inline instead of in the margin */
    .refelem, .refelemleft {
        all: unset !important;
        display: block !important;
        margin: 1em 0 !important;
        padding: 0.75em !important;
        background-color: #30475e !important;
        color: #ececec !important;
        border: 1px solid #30475e !important;
        font-family: 'IBM Plex Serif', serif !important;
    }

    .refcolumn, .refcontent {
        all: unset !important;
        display: inline !important;
        color: #ececec !important;
    }
}

/* For wider screens, ensure content stays centered with balanced gutters */
@media screen and (min-width: 769px) {
    .maincolumn {
        margin-left: auto;
        margin-right: auto;
        max-width: calc(35em + 2em); /* 35em content + padding */
        padding: 0 1em;
    }
}
