/* Extracted from app.css for route-specific maintainability. */
/* 기술노트 상세: 모바일 바텀시트·메타·본문 Markdown·하단 액션 */
#tech-modal.modal--technote {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 768px) {
    #tech-modal.modal--technote {
        align-items: center;
        padding: 16px;
    }
}
#tech-modal .technote-detail-sheet {
    width: 100%;
    max-width: 560px;
    max-height: min(92vh, 900px);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
}
@media (min-width: 768px) {
    #tech-modal .technote-detail-sheet {
        border-radius: 16px;
        width: 94%;
        max-height: 90vh;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
}
#tech-modal .technote-detail-handle-bar {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 10px auto 4px;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    #tech-modal .technote-detail-handle-bar {
        display: none;
    }
}
#tech-modal .technote-detail-close.close-btn {
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 400;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 50%;
    line-height: 1;
    padding: 0;
}
#tech-modal .technote-detail-hero {
    padding: 8px 18px 4px;
    flex-shrink: 0;
}
#tech-modal .technote-detail-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-right: 44px;
}
#tech-modal .technote-detail-date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}
#tech-modal .technote-detail-avatar {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#tech-modal .technote-detail-av-letter {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-transform: uppercase;
}
#tech-modal .technote-detail-title {
    margin: 10px 0 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.02em;
}
#tech-modal .technote-modal-body-scroll {
    padding: 12px 18px 18px;
    min-height: 0;
}
#tech-modal #tech-modal-body {
    font-size: 14px;
    line-height: 1.65;
    color: #334155;
}
#tech-modal #tech-modal-body h1,
#tech-modal #tech-modal-body h2,
#tech-modal #tech-modal-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 20px 0 8px;
    padding: 0 0 6px 0;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.35;
}
#tech-modal #tech-modal-body h1 { font-size: 17px; }
#tech-modal #tech-modal-body h3 { font-size: 14px; font-weight: 600; color: #334155; }
#tech-modal #tech-modal-body h1:first-child,
#tech-modal #tech-modal-body h2:first-child,
#tech-modal #tech-modal-body h3:first-child {
    margin-top: 4px;
}
#tech-modal #tech-modal-body p {
    margin: 0 0 10px;
}
#tech-modal #tech-modal-body ul,
#tech-modal #tech-modal-body ol {
    margin: 0 0 10px;
    padding-left: 1.25rem;
}
#tech-modal #tech-modal-body pre {
    background: #1e222d;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.45;
    border: none;
    margin: 12px 0;
    white-space: pre;
    word-wrap: normal;
    tab-size: 4;
}
#tech-modal #tech-modal-body pre code {
    background: transparent !important;
    color: inherit !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: inherit;
}
#tech-modal #tech-modal-body :not(pre) > code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#tech-modal #tech-modal-body blockquote {
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 3px solid #22c55e;
    background: #f0fdf4;
    color: #166534;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
}
#tech-modal #tech-modal-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 16px 0;
}
#tech-modal #tech-modal-body a {
    color: #2563eb;
    word-break: break-all;
}
#tech-modal .technote-detail-foot {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    background: #fafafa;
    flex-shrink: 0;
}
#tech-modal .technote-detail-foot-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}
#tech-modal .technote-detail-foot-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
#tech-modal .technote-detail-foot-btn--danger {
    color: #dc2626;
    border-color: #fecaca;
}
#tech-modal .technote-detail-foot-btn--danger:hover {
    background: #fef2f2;
}
#tech-modal .technote-detail-foot-del {
    flex: 1;
    min-width: 0;
}
#tech-modal .technote-detail-foot-del > div {
    width: 100%;
    height: 100%;
}
#tech-modal .technote-detail-foot-del button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}
#tech-modal .technote-detail-foot-del button:hover {
    background: #fef2f2;
}
