#content { background: var(--color-white); }

.m-boardContent { padding: 12px 14px 0; }

.top-controls{
    background: rgba(246,247,251,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E5E7EB;
    margin: 0 -14px 12px;
    padding: 10px 14px 10px;
}

.search {
    display:flex;
    align-items:center;
    gap: 8px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 10px 10px;
}
.search input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 16px; /* iOS 확대 방지 */
    color: #111827;
    background: transparent;
}
.search-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.02);
    cursor: pointer;
}
.search-btn svg { color: #6b7280; }

.server-tabs {
    display:flex;
    gap: 8px;
    margin-top: 10px;
}
.tab {
    flex: 1;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #374151;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
}
.tab.active {
    background: #1D7CF2;
    border-color: #1D7CF2;
    color: #fff;
}

.search-meta {
    margin-top: 10px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(29,124,242,.18);
    background: rgba(29,124,242,.08);
}
.meta-text {
    font-size: 12px;
    font-weight: 900;
    color: #0b4fb2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.meta-clear {
    border: 1px solid rgba(29,124,242,.22);
    background: #fff;
    color: #0b4fb2;
    font-weight: 900;
    font-size: 12px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    cursor: pointer;
}

.card {
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
    margin-bottom: 12px;
    overflow: hidden;
}

.cat-head {
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #E5E7EB;
    background: linear-gradient(180deg, rgba(29,124,242,.08), transparent);
}
.cat-title {
    margin: 0;
    font-size: 14px;
    font-weight: 1000;
    color: #111827;
}
.cat-toggle {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.03);
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-size: 12px;
    font-weight: 900;
    color: #374151;
}

.cat-toggle .chev {
    display:inline-block;
    transform: translateY(-1px);
    transition: transform .15s ease;
    color: #6b7280;
}

.cat.card.is-collapsed .items {
    display: none;
}

.cat.card.is-collapsed .cat-toggle .chev{
    transform: rotate(-90deg);
}

.cat-toggle:active {
    transform: translateY(1px);
}

.items {
    padding: 12px 12px 14px;
    display:flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item {
    display:inline-flex;
    align-items:center;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    max-width: 100%;
}
.item:hover {
    border-color: rgba(29,124,242,.22);
    background: rgba(29,124,242,.12);
    color: #0b4fb2;
}
.item:active { transform: translateY(1px); }

/* empty */
.empty {
    margin-top: 10px;
    padding: 22px 16px;
    border-radius: 14px;
    border: 1px dashed #E5E7EB;
    background: #fff;
    text-align: center;
}
.empty-title { 
    font-size: 14px;
    font-weight: 1000;
    color: #111827;
}
.empty-desc {
    margin-top: 6px;
    font-size: 12px;
    color: #6B7280;
}

/* CONTENT */
.detail-head {
    background: var(--color-white);
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
    margin-bottom: 12px;
}

.title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 900;
    color: #111827;
    line-height: 1.35;
}

.meta {
    display:flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: #6B7280;
}

.dot { opacity: .6; }

.detail-body {
    padding: 1rem 10px;
}

.detail-body img, input[type="image"],
.detail-body iframe {
    max-width: 99% !important;
}

#boardPreNextWrap {
    margin-top: 1rem;
    list-style: none;
    border-top: 1px solid var(--color-lightgray);
}
#boardPreNextWrap li {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--color-lightgray);
}
#boardPreNextWrap li a {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-dark);
    text-decoration: none;
    min-width: 0;
}
#boardPreNextWrap .direction-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-lightgray);
    margin-right: 10px;
}
#boardPreNextWrap .direction-tag {
    margin-right: 20px;
}
#boardPreNextWrap .direction-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.detail-actions {
    margin-top: 2rem;
    display:flex;
    gap: 10px;
}

.detail-actions #share {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-outline {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration: none;
}

.btn-outline:active {
    transform: translateY(1px);
}

#boardBtnWrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;    
    padding: 0.5rem 1rem;
}
#boardBtnWrap #goDelete,
#boardBtnWrap #goUpdate {
    padding: 0.3rem 0.8rem;
    background: var(--color-white);
    border: 1px solid var(--color-lightgray);
}

#boardBtnWrap #goWrite {
    padding: 0.3rem 0.8rem;
    color: var(--color-white);
    background: var(--color-blue);
    border: 1px solid var(--color-blue);    
}
#boardBtnWrap #go_list {
    padding: 0.3rem 0.8rem;
    background: var(--color-white);
    border: 1px solid var(--color-lightgray);
}

/* COMMENT */
#commentTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--color-lightgray);
    border-bottom: 1px solid var(--color-lightgray);    
}

#commentRefresh {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-dark);
}

.comment-content-list {
    list-style: none;
}

.comment-content-list .comment-empty {
    padding: 1rem 2rem;
    color: var(--color-gray3);
    border-bottom: 1px solid var(--color-lightgray);
}

.comment-element {
    padding: 1rem 1.5rem;
    color: var(--color-dark);
    border-bottom: 1px solid var(--color-lightgray);
}

.comment-element .comment-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.comment-element .comment-info .comment-writer {
    color: #822D2D;
    font-weight: 600;
}
.comment-element .comment-info .comment-date {
    font-size: 13px;
    color: var(--color-gray3);
}
.comment-element .comment-info .comment-delete {    
    display: flex;
    align-items: center;
    cursor: pointer;
}
.comment-delete svg {
    width: 12px;
    color: var(--color-gray3);
}

.comment-content {
    font-size: 14px;
}

.comment-bottom {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-lightgray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.comment-page-direction {
    height: 100%;
    display: flex;
    align-items: center; 
    cursor: pointer;   
}
.comment-page-direction svg {
    width: 25px;
    height: 25px;
    color: var(--color-gray3);    
}

.comment-page {
    height: 100%;
    list-style: none;
    display: flex;
    align-items: center;    
}

.comment-page li {
    height: 100%;
    padding: 0 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--color-gray3);
}

.comment-page .active {
    font-weight: bold;
    color: var(--color-dark);
}

.comment-input {
    position: relative;
    margin-top: 3rem;
    padding-top: 1rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background: #E8EAEE;
    font-size: 16px;
}

.comment-input a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--color-dark);
}

#comment_content {
    width: 100%;
    height: 120px;
    resize: none;
    border: 1px solid var(--color-lightgray);
    outline: none;
    padding: 0.3rem;
    font-size: 16px;
}

.comment-btns {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

#comment_confirm {
    margin-left: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: #747A86;
    color: var(--color-white);
    border: none;    
}

.safe-bottom { height: 16px; }
