/*
  TALBERT BLOGS - DEFAULT THEME
  -----------------------------
  Everything colorful is a variable here. A user's own CSS file
  (assets/css/users/NAME.css) only needs to override the variables
  it wants to change, plus any extra rules it likes.
*/
:root {
    --page-bg: #d7e2ec;
    --page-dots: #b8c9d8;
    --page-pattern: radial-gradient(var(--page-dots) .8px, transparent .8px);
    --page-pattern-size: 8px 8px;
    --paper: #ffffff;
    --panel-bg: #ffffff;
    --ink: #344252;
    --muted: #748292;
    --line: #c5d2df;
    --dash: #cbd7e1;
    --link: #456f9a;
    --link-hover: #a54f76;
    --top-bg: #334e6b;
    --top-ink: #ffffff;
    --nav-bg: #e7eef5;
    --nav-ink: #405b78;
    --nav-hover-bg: #ffffff;
    --head-bg: #e7eef5;
    --head-ink: #405b78;
    --title-ink: #344d69;
    --shell-border: #aebfce;
    --shell-shadow: rgba(48, 72, 96, .13);
    --banner-bg: #758ba3;
    --banner-border: #b7c7d5;
    --banner-shade: rgba(22, 39, 57, .38);
    --heading-area-bg: #fbfdff;
    --avatar-border: #ffffff;
    --avatar-bg: #dce6ee;
    --status-bg: #f2faf5;
    --status-border: #d6e3dc;
    --status-ink: #527b64;
    --foot-bg: #f5f8fb;
    --font: Tahoma, Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 22px 14px 44px;
    background-color: var(--page-bg);
    background-image: var(--page-pattern);
    background-size: var(--page-pattern-size);
    color: var(--ink);
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.55;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

.site-shell {
    width: min(100%, 980px);
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--shell-border);
    box-shadow: 0 4px 18px var(--shell-shadow);
}

.site-top {
    min-height: 42px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--top-bg);
    color: var(--top-ink);
    font-size: 12px;
}
.site-top strong { letter-spacing: 1.4px; }
.site-top a { color: var(--top-ink); }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 13px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line);
}
.site-nav a {
    padding: 5px 11px;
    color: var(--nav-ink);
    font-weight: bold;
    border: 1px solid transparent;
}
.site-nav a:hover { background: var(--nav-hover-bg); border-color: var(--line); text-decoration: none; }

.page-wrap { padding: 14px; }
.profile-banner {
    height: 205px;
    position: relative;
    background-color: var(--banner-bg);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--banner-border);
}
.profile-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 39, 57, .03), var(--banner-shade));
}
.banner-label {
    position: absolute;
    z-index: 1;
    right: 13px;
    bottom: 10px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    font-size: 11px;
}

.profile-heading {
    display: flex;
    align-items: end;
    gap: 14px;
    min-height: 104px;
    padding: 0 15px 13px;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--heading-area-bg);
}
.profile-avatar {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    object-fit: cover;
    margin-top: -34px;
    position: relative;
    z-index: 2;
    border: 5px solid var(--avatar-border);
    outline: 1px solid var(--line);
    background: var(--avatar-bg);
}
.profile-title { min-width: 0; padding-bottom: 2px; }
.profile-title h1 { margin: 0; color: var(--title-ink); font-size: 25px; line-height: 1.2; }
.profile-title .handle { color: var(--muted); font-size: 12px; }
.profile-status { margin-left: auto; padding: 5px 9px; border: 1px solid var(--status-border); background: var(--status-bg); color: var(--status-ink); font-size: 11px; white-space: nowrap; }

/* Blinkie strip (hidden until a user has some) */
.blinkies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 14px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    background: var(--panel-bg);
}
.blinkies[hidden] { display: none; }
.blinkies img { display: block; width: 150px; height: 20px; image-rendering: pixelated; }

.columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 265px;
    gap: 13px;
    margin-top: 14px;
    align-items: start;
}
.panel {
    margin-bottom: 13px;
    border: 1px solid var(--line);
    background: var(--panel-bg);
}
.panel-heading {
    margin: 0;
    padding: 7px 10px;
    color: var(--head-ink);
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    letter-spacing: .2px;
}
.panel-body { padding: 11px; }
.about-text { white-space: pre-wrap; }
.profile-facts { margin: 0; display: grid; grid-template-columns: 86px 1fr; gap: 5px 8px; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; }

.friend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 7px;
}
.friend-card { min-width: 0; text-align: center; font-size: 11px; }
.friend-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); padding: 3px; background: var(--panel-bg); }
.friend-card span { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.friend-card a { font-weight: bold; }

.post-card { padding: 11px 0; border-bottom: 1px dashed var(--dash); }
.post-card:first-child { padding-top: 0; }
.post-card:last-child { padding-bottom: 0; border-bottom: 0; }
.post-meta { color: var(--muted); font-size: 10px; }
.post-card h3 { margin: 3px 0 4px; font-size: 16px; }
.post-card p { margin: 0 0 7px; }
.post-link { font-weight: bold; font-size: 11px; }
.empty-note { color: var(--muted); font-style: italic; }

.page-footer { padding: 13px; color: var(--muted); background: var(--foot-bg); border-top: 1px solid var(--line); text-align: center; font-size: 10px; }

/* Individual blog post */
.article-title { margin: 0 0 4px; color: var(--title-ink); font-size: 23px; line-height: 1.25; }
.article-body { margin-top: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.article-author { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.article-author img { width: 42px; height: 42px; object-fit: cover; border: 1px solid var(--line); padding: 2px; }
.comment-list { display: grid; gap: 10px; }
.comment-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 9px; padding-bottom: 10px; border-bottom: 1px dashed var(--dash); }
.comment-item:last-child { border-bottom: 0; padding-bottom: 0; }
.comment-avatar { width: 42px; height: 42px; object-fit: cover; border: 1px solid var(--line); padding: 2px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.comment-date { color: var(--muted); font-size: 10px; }
.comment-text { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.back-link { display: inline-block; margin: 0 0 12px; font-size: 11px; font-weight: bold; }

@media (max-width: 700px) {
    body { padding: 0; }
    .site-shell { border: 0; box-shadow: none; }
    .page-wrap { padding: 9px; }
    .columns { grid-template-columns: 1fr; }
    .columns aside { order: 2; }
    .profile-banner { height: 155px; }
    .profile-heading { align-items: center; min-height: 86px; padding: 8px 10px; gap: 10px; }
    .profile-avatar { width: 82px; height: 82px; flex-basis: 82px; margin-top: -23px; border-width: 4px; }
    .profile-title h1 { font-size: 20px; }
    .profile-status { display: none; }
    .friend-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
