/* codeedog.dev custom styles -- overrides inkblotty theme */
/* Single-column layout with inline sidebar widgets */

/* -- Layout width --------------------------------------------------------- */

.wrapper,
.document-header,
.document-footer {
    max-width: 820px;
}

main {
    width: 100%;
}

/* Hide the original sidebar column */
.sidebar1.widgets {
    display: none;
}

/* Override theme flexbox so float works */
.content {
    display: block;
}

/* -- Floated sidebar ------------------------------------------------------ */

.sidebar-inline {
    float: right;
    width: 220px;
    margin: 0 0 1rem 1.5rem;
    padding-left: 1rem;
    border-left: 1px solid #d1d1d1;
}

.sidebar-inline h3 {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.4rem 0;
    color: #555;
}

.sidebar-inline ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85em;
}

.sidebar-inline li {
    margin-bottom: 0.2rem;
}

.sidebar-inline .tagcloud {
    font-size: 0.85em;
}

/* -- Typography ----------------------------------------------------------- */

/* body {
    font-size: 13px;
} */

h1 {
    font-size: 1.4em;
}

/* -- Keep theme heading accents ------------------------------------------- */

.post-content h2 {
    border-left: 6px solid #ff6347;
    border-bottom: 1px solid #d1d1d1;
    padding-left: 4px;
}

.post-content h3 {
    border-left: 4px solid #4169e1;
    border-bottom: 1px solid #d1d1d1;
    padding-left: 6px;
}

/* -- Callout boxes -------------------------------------------------------- */

.callout {
    display: table;
    margin: 1.2rem auto;
    padding: 0.4rem 1.5rem;
    font-size: 0.95em;
    text-align: center;
    font-style: italic;
}

.callout::before,
.callout::after {
    display: block;
    text-align: center;
    color: #999;
    font-style: normal;
    letter-spacing: 0.3em;
    content: "- - -";
}

.callout::before {
    margin-bottom: 0.3rem;
}

.callout::after {
    margin-top: 0.3rem;
}

.callout p:last-child {
    margin-bottom: 0;
}

/* -- Alert boxes (Obsidian-style admonitions) ----------------------------- */

.alert {
    display: block;
    margin: 1.2rem 0;
    padding: 0.8rem 1rem 0.8rem 1rem;
    border-left: 4px solid #888;
    border-radius: 4px;
    background: #f8f8f8;
    font-size: 0.92em;
}

.alert .alert-title {
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82em;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert-info {
    border-left-color: #448aff;
    background: #f0f4ff;
}
.alert-info .alert-title { color: #448aff; }

.alert-note {
    border-left-color: #448aff;
    background: #f0f4ff;
}
.alert-note .alert-title { color: #448aff; }

.alert-tip {
    border-left-color: #00c853;
    background: #f0faf0;
}
.alert-tip .alert-title { color: #00c853; }

.alert-success {
    border-left-color: #00c853;
    background: #f0faf0;
}
.alert-success .alert-title { color: #00c853; }

.alert-warning {
    border-left-color: #ff9100;
    background: #fff8f0;
}
.alert-warning .alert-title { color: #ff9100; }

.alert-danger {
    border-left-color: #ff1744;
    background: #fff0f0;
}
.alert-danger .alert-title { color: #ff1744; }

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

@media only screen and (max-width: 600px) {
    .sidebar-inline {
        float: none;
        width: 100%;
        margin: 0 0 1rem 0;
        padding-left: 0;
        border-left: none;
        border-bottom: 1px solid #d1d1d1;
        padding-bottom: 1rem;
    }
}
