body {
    background-color: #FFFFFF;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 20px;
    padding-bottom: 60px;
    color: #000000;
    font-family: 'Trebuchet MS', Helvetica, Arial, sans-serif;
    font-weight: 150;
    max-width: 1300px;
    margin: 0 auto;
}

a:link    { color: #1C71C7; }
a:active  { color: #1C71C7; }
a:visited { color: #11467A; }
a:hover   { color: #238EFA; }

/* ── LAYOUT ── */
div {
    display: inline-block;
    vertical-align: top;
}

.photo {
    width: 20vw;
    max-width: 300px;
    border-radius: 9999px;
    display: block;
    margin: 0 auto;
}

.photo-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    float: right;
    display: block;
    background: #F6F7FA;
    border: 2px solid #567696;
}

.contact {
    width: 27%;
    float: right;
    display: block;
    text-align: center;
}

.contactlist {
    list-style: none;
    margin: 5px 0 3px 0;
}

.contactlist li {
    margin: 3px 0;
}

#bio {
    width: 65%;
    float: left;
    text-align: justify;
}

#bio div {
    display: block;
}

#bio .cert-grid {
    display: flex;
}

/* ── BOXES ── */
.box {
    border: 2px solid #567696;
    margin-top: 10px;
    padding: 3px 15px 15px 15px;
    border-radius: 10px;
    background-color: #F6F7FA;
}

.left {
    width: 47%;
    margin-right: 20px;
}

.right {
    float: right;
    width: 47%;
}

.middle {
    display: inline-flex;
    width: 100%;
}

#misc {
    margin-top: 40px;
    width: 97.5%;
}


/* ── SHOW/HIDE (pure CSS :target trick) ── */
.off { display: none; }
.on  { display: block; }

#showtalks div        { display: none; }
#showtalks:target div,
#showtalks:target .off { display: block; }
#showtalks:target .on  { display: none; }

/* ── LISTS ── */
li {
    margin: 5px 0 3px 0;
}

/* ── SINGLE POST ── */
.post-body {
    text-align: justify;
    line-height: 1.7;
}

.post-body h2, .post-body h3 {
    margin: 1.4em 0 0.4em;
}

.post-body p {
    margin: 0.8em 0;
}

.post-body code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.9em;
    background: #F6F7FA;
    padding: 1px 5px;
    border-radius: 3px;
}

.post-body pre {
    background: #F6F7FA;
    border: 1px solid #c5cfe0;
    border-radius: 6px;
    padding: 12px 16px;
    overflow-x: auto;
    margin: 1em 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    font-size: 0.88em;
    line-height: 1.55;
}

.post-body ul, .post-body ol {
    padding-left: 1.4em;
    margin: 0.7em 0;
}

.post-body blockquote {
    border-left: 3px solid #567696;
    padding-left: 1em;
    color: #555;
    margin: 1em 0;
}

.post-body img {
    max-width: 100%;
    border-radius: 4px;
}

.post-body hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.5em 0;
}

/* ── SOCIAL ICONS ── */
.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.social-links a {
    display: flex;
    align-items: center;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.social-links a:hover {
    opacity: 0.7;
    transform: scale(1.15);
}

.social-icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* ── CERT BADGES ── */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 8px 4px 4px;
}

.cert-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: transform 0.18s ease, filter 0.18s ease;
    text-decoration: none;
}

.cert-grid a:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 8px rgba(28, 113, 199, 0.25));
}

.cert {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ── TAGS ── */
.tag {
    font-size: 0.78em;
    color: #567696;
    background: #eef2f7;
    padding: 1px 7px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
}

.tag:link, .tag:visited { color: #567696; }
.tag:hover { color: #238EFA; }

/* ── CLEARFIX ── */
.cf::after {
    content: "";
    display: table;
    clear: both;
}

[style*="clear:both"] {
    display: block !important;
}

/* ── FOOTER ── */
footer {
    margin-top: 50px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-size: 0.82em;
    color: #999;
}

@media (max-width: 700px) {
    #bio       { width: 100%; float: none; }
    .contact   { width: 100%; float: none; max-width: 100%; margin-bottom: 16px; }
    .left, .right { width: 100%; float: none; }
    .middle    { display: block; }
    .photo-placeholder { float: none; margin-bottom: 12px; }
}
