/* ===== detail page (work / news / faq / topic) - shares tokens with site.css ===== */

/* ---- simplified header ---- */
.dt-head { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid #e8ecf2; box-shadow: 0 2px 12px rgba(15,23,42,0.05); }
.dt-head-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 66px; }
.dt-logo { display: flex; align-items: center; gap: 8px; flex: none; color: var(--primary); font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.dt-logo-ico { font-size: 19px; line-height: 1; }
.dt-logo em { font-style: normal; color: var(--accent); }
.dt-nav { min-width: 0; }
.dt-menu { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; font-size: 14px; }
.dt-menu a { color: #444; }
.dt-menu a:hover { color: var(--accent); }
.dt-back { flex: none; padding: 7px 16px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 13px; }
.dt-back:hover { background: var(--accent); color: #fff; }

/* ---- layout ---- */
.detail-main { padding: 30px 0 56px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 32px; align-items: start; }
.detail-article { min-width: 0; padding: 34px 36px; background: #fff; border: 1px solid #e8ecf2; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-title { margin-bottom: 14px; font-size: 27px; line-height: 1.45; color: var(--primary); }
.detail-metas { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #eef1f6; font-size: 13px; color: #777; }
.detail-article p { margin-bottom: 16px; color: #3c3c3c; line-height: 1.95; }
.detail-article p:last-child { margin-bottom: 0; }

/* ---- blocks ---- */
.dt-figure { margin: 0 0 22px; overflow: hidden; background: var(--secondary); border-radius: var(--radius); }
.dt-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dt-figure figcaption { padding: 9px 14px; background: #f7f8fa; font-size: 12px; color: var(--gray); }
.dt-lead { padding: 16px 20px; border-left: 4px solid var(--accent); border-radius: 0 calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0; background: #f7f8fa; font-size: 16px !important; color: #333 !important; }
.dt-h2 { margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); font-size: 21px; line-height: 1.4; color: var(--primary); }
.dt-h2:first-child { margin-top: 0; }
.dt-points { display: grid; gap: 10px; margin: 0 0 6px; list-style: none; }
.dt-points li { position: relative; padding: 11px 16px 11px 34px; background: #f7f8fa; border-radius: calc(var(--radius) - 4px); font-size: 14px; line-height: 1.75; color: #444; }
.dt-points li::before { content: ''; position: absolute; left: 15px; top: 20px; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.dt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0 0 6px; }
.dt-facts > div { display: flex; gap: 10px; padding: 10px 14px; background: #f7f8fa; border-radius: calc(var(--radius) - 4px); font-size: 14px; }
.dt-facts dt { flex: none; width: 74px; color: var(--gray); }
.dt-facts dd { min-width: 0; font-weight: 600; color: #333; }
.dt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; list-style: none; }
.dt-cards a { display: block; padding: 14px 16px; border: 1px solid #e8ecf2; border-radius: calc(var(--radius) - 4px); background: #fff; transition: border-color var(--transition), transform var(--transition); }
.dt-cards a:hover { border-color: var(--accent); transform: translateY(-3px); }
.dt-card-title { display: block; font-size: 15px; font-weight: 700; color: var(--primary); }
.dt-cards a:hover .dt-card-title { color: var(--accent); }
.dt-card-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--gray); }

/* ---- aside ---- */
.detail-aside { position: sticky; top: 84px; padding: 24px; background: #fff; border: 1px solid #e8ecf2; border-radius: var(--radius); box-shadow: var(--shadow); }
.aside-title { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #eef1f6; font-size: 16px; color: var(--primary); }
.aside-list { list-style: none; }
.aside-list li { border-bottom: 1px dashed #eef1f6; }
.aside-list li:last-child { border-bottom: none; }
.aside-list a { display: block; padding: 10px 0; font-size: 14px; line-height: 1.6; color: #444; }
.aside-list a:hover { color: var(--accent); }

/* ---- simplified footer ---- */
.dt-foot { padding: 22px 0; background: var(--primary); border-top: 3px solid var(--accent); }
.dt-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dt-foot-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 16px; font-weight: 800; }
.dt-foot-logo em { font-style: normal; color: var(--gold); }
.dt-foot-copy { font-size: 12px; color: rgba(255,255,255,0.58); }
.dt-foot-copy b { font-weight: 600; color: var(--gold); letter-spacing: 1px; }

@media (max-width: 960px) {
    .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .detail-aside { position: static; }
}
@media (max-width: 768px) {
    .detail-main { padding: 20px 0 40px; }
    .detail-article { padding: 20px 16px; }
    .detail-title { font-size: 21px; }
    .dt-h2 { margin: 24px 0 12px; font-size: 18px; }
    .dt-facts { grid-template-columns: minmax(0, 1fr); }
    .dt-cards { grid-template-columns: minmax(0, 1fr); }
    .dt-menu { gap: 4px 12px; font-size: 13px; }
    .dt-head-in { min-height: 58px; gap: 10px; }
    .dt-logo { font-size: 15px; }
    .dt-back { padding: 6px 12px; font-size: 12px; }
    .detail-aside { padding: 18px; }
}
