﻿/* ============================================================
   개인 블로그 - 2026년 10월 모양 (시안 B: 메뉴 칸이 블로그 색)
   ------------------------------------------------------------
   Laid over Blog.css / BlogHeader.css / BlogBanner.css, which stay: the markup and the
   scripts (BlogBoard.js - writing, comments, likes) are the old ones, only the look
   changes. The colours come from the blog's theme (Core/BlogTheme, chosen by the owner
   in 블로그 설정) as --bt-* variables, written into the page by TorontoBlogHeader;
   the defaults below are the "blue" theme.
   ============================================================ */
:root { --bt-deep: #0f2b4a; --bt-dark: #17406b; --bt-main: #1f6fb2; --bt-soft: #e7f0f9; --bt-page: #eef3f8;
        --bt-line: #e3e8ef; --bt-text: #1f2430; --bt-muted: #6b7280; }

body.boxed { background: #fff !important; font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; color: var(--bt-text); }

/* ---------- the top bar: ahaidea's links on the left, sign in / the owner's links on the right ---------- */
/* The whole blog is one framed page as wide as its content (the header no longer runs edge to edge). */
.TopFrame > .BlogBackground { max-width: 1320px; margin: 16px auto 0; border-radius: 16px 16px 0 0; background: var(--bt-dark); }
.BlogBackground .BlogHeaderTop { min-height: 48px; padding: 0 22px; border-radius: 16px 16px 0 0; background: var(--bt-deep); flex-wrap: nowrap; }
#BlogTopMenuContainer { display: flex; align-items: center; gap: 2px; padding: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#BlogTopMenuContainer::-webkit-scrollbar { display: none; }
#BlogTopMenuContainer a { padding: 6px 11px; border-radius: 8px; color: #cfe0f3; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
#BlogTopMenuContainer a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
/* the site's own logo (red "aha", purple "idea") on a small white plate - its colours are lost on the dark bar */
#BlogTopMenuContainer a.bv2-aha { display: inline-flex; align-items: center; margin-right: 12px; padding: 5px 10px; border-radius: 8px; background: #fff; }
#BlogTopMenuContainer a.bv2-aha img { display: block; height: 18px; width: auto; }
#BlogTopMenuContainer a.bv2-aha:hover { background: #fff; opacity: .92; }
.BlogBackground #LogoFrame { flex: 0 0 auto; gap: 8px; padding: 0; }
.BlogBackground #LogoFrame .HeaderColumn { margin-left: 0; }
.BlogBackground .fontIcon { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.BlogBackground .fontIcon:hover { background: rgba(255, 255, 255, .1); }
.BlogBackground .fontIcon i { font-size: 13px; }
.HeaderColumn .InnerContainer { border: 1px solid var(--bt-line); border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .14); padding: 8px; }
.HeaderColumn .InnerContainer a { padding: 7px 10px; border-radius: 8px; color: var(--bt-text); font-size: 13px; text-decoration: none; }
.HeaderColumn .InnerContainer a:hover { background: var(--bt-soft); text-decoration: none; }
/* signed out: two buttons instead of the id / password boxes (the form stays in the page, hidden) */
.BlogHeaderTop .TopLoginContainer { display: none !important; }
.bv2-auth { display: flex; gap: 8px; }
.bv2-auth a { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bv2-auth a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.bv2-auth a.is-on { background: #fff; border-color: #fff; color: var(--bt-deep); }

/* ---------- the masthead: the blogger's banner whole, then the name and the search ---------- */
.bv2-mast { padding: 18px 22px 0; }
.bv2-mast .BlogBannerStrip { margin: 0; }
.bv2-mast .BlogBannerImage { border-radius: 14px 14px 0 0; }
.BlogBackground .BlogTitleRow { justify-content: space-between; gap: 16px; padding: 14px 4px 16px; }
.BlogBackground .BlogTitleRow h1.TopTitle { margin: 0; color: #fff; text-align: left; font-size: 22px; font-weight: 900; letter-spacing: -.3px; line-height: 1.3; }
.BlogBackground #SearchContainer { margin-left: auto; padding: 0; }
#SearchContainer > div { display: flex; width: 320px; max-width: 100%; border-radius: 999px; overflow: hidden; background: #fff; }
#SearchContainer input { flex: 1; min-width: 0; padding: 9px 16px; border: 0 !important; outline: 0; font: inherit; font-size: 13px; }
#SearchContainer .SearchButton { display: flex; align-items: center; padding: 0 18px !important; border: 0 !important; border-radius: 0 !important; background: var(--bt-main) !important;
    box-shadow: none !important; text-shadow: none !important; color: #fff !important; font-size: 13px; font-weight: 800; text-decoration: none; }

/* ---------- the page: the menu column on the left, the posts on the right ---------- */
.BlogBackground.BlogContentWrapper { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start;
    max-width: 1320px; margin: 0 auto 32px; padding: 24px 22px 40px; border: 1px solid var(--bt-line); border-top: 0; border-radius: 0 0 16px 16px; background: var(--bt-page); }
.BlogBackground.BlogContentWrapper.BlogContentWrapperClose { margin-left: auto; }
.BlogContentWrapper > .clearBoth { display: none; }
#BlogMenuCloseButton, #BlogMenuOpenButton { display: none !important; }
#BlogMenuContainer { min-width: 0; }
#BlogContentContainer { margin-left: 0; min-width: 0; }

/* the menu column, in the blog's colour */
#BlogMenu { float: none; width: auto; padding: 14px; border-radius: 16px; background: var(--bt-dark); white-space: normal; }
#BlogMenu > a > img { display: block; width: 100%; height: 250px; object-fit: cover; object-position: center 20%; border-radius: 12px; }
#BlogIntroContainer { margin-top: 12px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); box-shadow: none; color: #d5e2f1; font-size: 13px; line-height: 1.6; }
#BlogIntroContainer a { color: #fff; }
#VisitInfo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
#VisitInfo .Today, #VisitInfo .Total { padding: 9px 6px; border-radius: 10px; background: rgba(255, 255, 255, .1); text-align: center; font-size: 11.5px; color: #d5e2f1; }
#VisitInfo b { display: block; font-size: 16px; font-weight: 900; color: #fff; }
.bv2-intro { overflow-wrap: anywhere; }
#adminMenuList { margin-top: 12px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); box-shadow: none; list-style: none; }
#adminMenuList li div { padding: 4px 8px 8px; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, .6); }
#adminMenuList li a { display: block; padding: 7px 10px; border-radius: 9px; color: #fff; font-size: 13px; text-decoration: none; }
#adminMenuList li a:hover, #adminMenuList li a.selected { background: #fff; color: var(--bt-dark); }
#BlogMenuList { margin: 12px 0 0; padding: 0; list-style: none; }
#BlogMenuList li a, #BlogMenuList .BlogMenuListSelected { display: block; padding: 8px 10px; border-radius: 9px; color: #e3eefa; font-size: 13.5px; line-height: 1.45; text-decoration: none; }
#BlogMenuList li a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
#BlogMenuList .BlogMenuListSelected { background: #fff; color: var(--bt-dark); font-weight: 700; }

/* the posts: each a white card */
#BlogInnerContentWrapper { padding: 0; background: none; }
.BlogInnerContentContainer { padding: 26px 30px; border: 1px solid var(--bt-line); border-radius: 16px; background: #fff; }
[id$="_BlogInnerContentContainer"] { padding: 0; border: 0; background: none; }
.BlogBoardContainer { position: relative; min-height: 0; margin-bottom: 18px; padding: 28px 34px 26px; border: 1px solid var(--bt-line); border-radius: 16px; background: #fff; }
.BlogBoardContainer .BlogBoardImageContainer { display: block !important; float: none; width: auto; margin-bottom: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--bt-line); }
.BlogBoardContainer .ImageContainer { display: flex; align-items: flex-start; gap: 12px; z-index: auto; }
.BlogBoardContainer .ImageContainer img { width: 46px; height: 46px; border-radius: 50% !important; object-fit: cover; }
.BlogBoardContainer .ImageContainer .UserName { margin-top: 3px; padding: 0; text-align: left; font-size: 14px; font-weight: 800; color: var(--bt-text); }
.BlogBoardContainer .BlogBoardContentContainer .PostedDate { position: absolute; top: 54px; left: 92px; font-size: 12.5px; color: var(--bt-muted); }
.BlogBoardContainer .BlogBoardContentContainer .BoardSubject { margin: 20px 0 0; padding: 0; font-size: 26px; font-weight: 900; line-height: 1.38; letter-spacing: -.4px; color: var(--bt-deep); }
.BlogBoardContainer .BlogBoardContentContainer .BoardSubject:empty { display: none; }
.BlogBoardContainer .BlogBoardContentContainer .BlogContent { max-width: 780px; margin-top: 18px; font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif; font-size: 16.5px; line-height: 1.9; letter-spacing: 0; color: #2c3140; }
.BlogBoardContainer .BoardContent img { border-radius: 10px; }
/* What bloggers paste (tables, fixed-width boxes, YouTube) keeps to the card - it was cut off at the edge. */
.BlogBoardContainer .BlogContent { overflow-wrap: anywhere; }
.BlogBoardContainer .BlogContent * { max-width: 100% !important; box-sizing: border-box; }
.BlogBoardContainer .BlogContent img, .BlogBoardContainer .BlogContent video { height: auto !important; }
.BlogBoardContainer .BlogContent iframe { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
.BlogBoardContainer .BlogContent table { display: block; overflow-x: auto; }
.EditContainer { display: flex; gap: 6px; justify-content: flex-end; margin-top: 14px; }
.EditContainer .EditButton, .EditContainer .DeleteButton { padding: 6px 14px; border: 1px solid var(--bt-line); border-radius: 999px; background: #fff; font-size: 12.5px; cursor: pointer; }
.LikeButton { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--bt-line); border-radius: 999px !important; background: #fff; font-size: 13px; color: var(--bt-text); }
.LikeButton:hover { border-color: var(--bt-main); color: var(--bt-main); }
.LikeButton img { width: 16px; height: auto; }
.BlogCommentContainer { margin-top: 18px; border: 1px solid var(--bt-line); border-bottom-width: 0; border-radius: 12px; overflow: hidden; }
.BlogCommentContainer:empty, .BlogCommentContainer:not(:has(*)) { display: none; }
.BlogCommentContainer .CommentContainer { border-bottom: 1px solid var(--bt-line); font-size: 14px; }
.BlogCommentContainer .evenComment { background: #f8f9fb; }
.CommentButton, .CommentSave, .CommentCancel { border-radius: 999px !important; }
.CommentButton { display: inline-block; padding: 7px 16px; background: var(--bt-soft) !important; color: var(--bt-main) !important; font-size: 13px; font-weight: 700; cursor: pointer; }
.BoardButton { display: flex; justify-content: center; gap: 10px; margin-top: 6px; }

/* One post at a time (JS/BlogV2.js): the others wait hidden; under the post, the posts before and after it. */
.BlogBoardContainer.bv2-hidden { display: none; }
body.bv2-paged .BoardButton { display: none; }
.bv2-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--bt-line); }
.bv2-postnav a { display: block; min-width: 0; padding: 14px 16px; border: 1px solid var(--bt-line); border-radius: 12px; color: var(--bt-text); text-decoration: none; cursor: pointer; }
.bv2-postnav a:hover { border-color: var(--bt-main); color: var(--bt-main); text-decoration: none; }
.bv2-postnav a small { display: block; margin-bottom: 3px; font-size: 11.5px; color: var(--bt-muted); }
.bv2-postnav a b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; font-weight: 700; }
.bv2-postnav a.is-next { grid-column: 2; text-align: right; }
.bv2-postnav a.is-off { visibility: hidden; }
.MoreButton { width: auto; padding: 10px 26px; border-radius: 999px !important; background: var(--bt-main); color: #fff; font-size: 14px; font-weight: 700; }
.MoreButton:hover { background: var(--bt-dark); }
.BlogButton { border-radius: 999px !important; }
#WirteButton { background: var(--bt-main); color: #fff; font-weight: 800; }
.WriteButtonContainer { margin-bottom: 16px; }

/* the owner's settings (블로그 설정, 메뉴관리, 배너 관리 ...): a white card with tidy fields */
.BlogInnerContentContainer dl { margin: 0 0 16px; }
.BlogInnerContentContainer dl dt { margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--bt-text); }
.BlogInnerContentContainer dl dd { margin: 0; }
.BlogInnerContentContainer dl dd input[type=text], .BlogInnerContentContainer dl dd textarea { width: 100%; max-width: 640px; padding: 9px 12px; border: 1px solid #cfd6e1; border-radius: 10px; font: inherit; }
.BlogAdminTitle { display: block; margin-bottom: 14px; font-size: 18px; font-weight: 900; color: var(--bt-deep); }

/* the colour picker (Core/BlogTheme.Picker) */
.bt-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 120px)); gap: 10px; }
.bt-swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border: 2px solid transparent; border-radius: 12px; cursor: pointer; }
.bt-swatch input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.bt-chip { display: flex; align-items: flex-end; gap: 4px; width: 100%; height: 52px; padding: 8px; border-radius: 10px; }
.bt-chip i { flex: 1; height: 14px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .35); }
.bt-swatch b { font-size: 12.5px; font-weight: 700; color: var(--bt-text); }
.bt-swatch:hover { border-color: var(--bt-line); }
.bt-swatch:has(input:checked) { border-color: var(--bt-main); background: var(--bt-soft); }

/* ---------- phones ---------- */
@media (max-width: 760px) {
    .TopFrame > .BlogBackground, .BlogBackground .BlogHeaderTop { margin-top: 0; border-radius: 0; }
    .BlogBackground .BlogHeaderTop { padding: 0 12px; }
    #BlogTopMenuContainer a:not(.bv2-aha) { display: none; }
    .bv2-auth a:not(.is-on) { display: none; }
    .BlogBackground .fontIcon { padding: 5px 11px; }
    .bv2-mast { padding: 10px 10px 0; }
    .bv2-mast .BlogBannerImage { border-radius: 10px 10px 0 0; }
    .BlogBackground .BlogTitleRow { flex-wrap: wrap; gap: 10px; padding: 12px 2px 14px; }
    .BlogBackground .BlogTitleRow h1.TopTitle { font-size: 18px; }
    .BlogBackground #SearchContainer { width: 100%; margin: 0; }
    #SearchContainer > div { width: 100%; }

    .BlogBackground.BlogContentWrapper, .BlogBackground.BlogContentWrapper.BlogContentWrapperClose { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 12px 10px 28px; border: 0; border-radius: 0; }
    /* the menu column becomes a short card: the photo beside the counts, the menu sliding sideways */
    #BlogMenu { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px; }
    #BlogMenu > a { grid-row: 1; }
    #BlogMenu > a > img { height: 100%; min-height: 110px; max-height: 140px; }
    #BlogIntroContainer { grid-row: 1; margin: 0; padding: 10px; }
    .bv2-intro { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
    #adminMenu, #BlogMenuList { grid-column: 1 / -1; }
    #adminMenuList { margin: 0; }
    #BlogMenuList { display: flex; gap: 6px; margin: 0; overflow-x: auto; scrollbar-width: none; }
    #BlogMenuList::-webkit-scrollbar { display: none; }
    #BlogMenuList li { flex: 0 0 auto; }
    #BlogMenuList li a, #BlogMenuList .BlogMenuListSelected { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; white-space: nowrap; font-size: 13px; }

    .BlogBoardContainer { padding: 18px 16px; }
    .BlogBoardContainer .BlogBoardContentContainer .PostedDate { top: 44px; left: 74px; }
    .BlogBoardContainer .BlogBoardContentContainer .BoardSubject { font-size: 21px; }
    .BlogBoardContainer .BlogBoardContentContainer .BlogContent { font-size: 15px; line-height: 1.85; }
    .BlogInnerContentContainer:not([id$="_BlogInnerContentContainer"]) { padding: 18px 16px; }
    .bt-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .bt-chip { height: 40px; padding: 6px; }
}
