/* ==========================================================================
   FORMAL -- 격식형
   담묵색(짙은 먹) 배경에 밝은 글씨. 유일한 다크 테마.
   중앙정렬, 금색 구분선, 한지 질감 미세 텍스처, 넓은 자간.

   skin/board/funeral/templates/formal.css
   ========================================================================== */

/* ── 색상 변수 ──────────────────────────────────────────────────── */
.memorial-sheet--formal {
    --sheet-bg: #2a2520;
    --sheet-bg-alt: #302b25;
    --sheet-ink: #e8e2d8;
    --sheet-muted: #9e958a;
    --sheet-accent: #c4a86c;
    --sheet-accent-soft: rgba(196, 168, 108, 0.12);
    --sheet-panel-bg: rgba(232, 226, 216, 0.05);
    --sheet-panel-border: rgba(196, 168, 108, 0.25);
    --sheet-line: rgba(196, 168, 108, 0.18);
    --sheet-aura-one: rgba(196, 168, 108, 0.10);
    --sheet-aura-two: rgba(42, 37, 32, 0.35);
    --sheet-shadow: 0 28px 64px rgba(10, 8, 6, 0.50);
}

/* ── 레이아웃 오버라이드 ────────────────────────────────────────── */
.memorial-sheet--formal .memorial-stack {
    padding: 52px 20px;
    gap: 0;
    text-align: left;
    border-radius: 4px;
    /* 한지 질감: 미세한 가로 섬유 줄 */
    background:
        repeating-linear-gradient(
            180deg,
            transparent,
            transparent 2px,
            rgba(196, 168, 108, 0.02) 2px,
            rgba(196, 168, 108, 0.02) 3px
        ),
        linear-gradient(180deg, var(--sheet-bg-alt) 0%, var(--sheet-bg) 100%);
    /* 얇은 단선 테두리 */
    border: 1px solid rgba(196, 168, 108, 0.35);
    box-shadow: var(--sheet-shadow);
    color: var(--sheet-ink);
}

.memorial-sheet--formal .memorial-stack::before,
.memorial-sheet--formal .memorial-stack::after {
    display: none;
}

.memorial-sheet--formal .memorial-headbar {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    padding-bottom: 28px;
    margin-bottom: 0;
}

.memorial-sheet--formal .memorial-eyebrow {
    font-size: 12px;
    font-family: var(--funeral-font-serif);
    letter-spacing: 0.55em;
    margin-bottom: 16px;
    font-weight: 400;
    color: var(--sheet-accent);
    opacity: 0.85;
}

.memorial-sheet--formal .memorial-hall {
    font-size: clamp(22px, 2.4vw, 26px);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--sheet-ink);
}

.memorial-sheet--formal .memorial-tags {
    justify-content: flex-start;
    margin-top: 12px;
}

.memorial-sheet--formal .memorial-tag {
    border-radius: 0;
    background: rgba(196, 168, 108, 0.08);
    border: 1px solid rgba(196, 168, 108, 0.30);
    color: var(--sheet-accent);
    letter-spacing: 0.12em;
}

/* 금색 구분선으로 섹션 분리 — 카드 배경 없음 */
.memorial-sheet--formal .memorial-summary-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
    padding: 36px 12px;
    margin: 0;
    background: transparent;
    border: none;
    border-top: 1px solid var(--sheet-line);
    border-bottom: 1px solid var(--sheet-line);
    border-radius: 0;
    box-shadow: none;
}

.memorial-sheet--formal .memorial-summary-meta {
    font-size: 13px;
    font-family: var(--funeral-font-serif);
    letter-spacing: 0.20em;
    font-weight: 400;
    color: var(--sheet-accent);
}

.memorial-sheet--formal .memorial-summary-name {
    font-size: clamp(36px, 4.5vw, 48px);
    letter-spacing: 0.08em;
    color: var(--sheet-ink);
}

.memorial-sheet--formal .memorial-summary-inline {
    display: block;
    margin-left: 0;
    margin-top: 10px;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--sheet-muted);
}

.memorial-sheet--formal .memorial-summary-status,
.memorial-sheet--formal .memorial-summary-sub {
    letter-spacing: 0.04em;
    color: var(--sheet-muted);
}

.memorial-sheet--formal .memorial-summary-photo {
    margin: 12px auto 0;
    border-radius: 0;
    border: 1px solid rgba(196, 168, 108, 0.30);
}

.memorial-sheet--formal .memorial-info-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sheet-line);
    border-radius: 0;
    box-shadow: none;
    padding: 30px 12px;
}

.memorial-sheet--formal .memorial-info-card:last-child {
    border-bottom: none;
}

/* 라벨/제목: 넓은 자간, 세리프, 금색 액센트 */
.memorial-sheet--formal .memorial-card-title {
    text-align: left;
    font-family: var(--funeral-font-serif);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.30em;
    margin-bottom: 22px;
    color: var(--sheet-accent);
}

.memorial-sheet--formal .memorial-card-title::before {
    display: none;
}

.memorial-sheet--formal .memorial-card-title::after {
    content: '\2014';
    font-size: 12px;
    vertical-align: middle;
    margin-left: 10px;
    opacity: 0.35;
    color: var(--sheet-accent);
}

.memorial-sheet--formal .memorial-family-list li,
.memorial-sheet--formal .memorial-detail-list div {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 14px;
    border-bottom-color: rgba(196, 168, 108, 0.10);
    color: var(--sheet-ink);
}

.memorial-sheet--formal .memorial-family-list span,
.memorial-sheet--formal .memorial-detail-list dt {
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--sheet-muted);
}

.memorial-sheet--formal .memorial-message-copy {
    text-align: left;
    font-family: var(--funeral-font-serif);
    font-size: 15px;
    line-height: 2.2;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--sheet-ink);
}

.memorial-sheet--formal .memorial-location-line {
    justify-content: flex-start;
    color: var(--sheet-ink);
}

.memorial-sheet--formal .memorial-location-actions {
    justify-content: flex-start;
}

/* 버튼: 금색 테두리, 투명 배경 */
.memorial-sheet--formal .memorial-location-link {
    border-radius: 0;
    letter-spacing: 0.08em;
    background: transparent;
    border: 1px solid rgba(196, 168, 108, 0.35);
    color: var(--sheet-accent);
}

.memorial-sheet--formal .memorial-location-link:hover {
    background: rgba(196, 168, 108, 0.12);
}

.memorial-sheet--formal .memorial-copy-btn {
    border-radius: 0;
    letter-spacing: 0.06em;
    background: transparent;
    border: 1px solid rgba(196, 168, 108, 0.30);
    color: var(--sheet-accent);
}

.memorial-sheet--formal .memorial-copy-btn:hover {
    background: rgba(196, 168, 108, 0.15);
    border-color: rgba(196, 168, 108, 0.50);
    color: var(--sheet-accent);
}

/* formal 텍스트 공통 색상 오버라이드 */
.memorial-sheet--formal .memorial-hall-label,
.memorial-sheet--formal .memorial-location-name,
.memorial-sheet--formal .memorial-location-addr {
    color: var(--sheet-ink);
}

.memorial-sheet--formal .memorial-family-list dd,
.memorial-sheet--formal .memorial-detail-list dd {
    color: var(--sheet-ink);
}

.memorial-sheet--formal .memorial-route-label {
    color: var(--sheet-muted);
}

.memorial-sheet--formal .memorial-route-text {
    color: var(--sheet-ink);
}
