@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700;900&display=swap');
/* === maeilcare.com — 매일케어 · 하루 한 장 건강 습관 (2026-12-05 신설) ===
   은유: 찢어 넘기는 일력. 토마토(#E2553F) 띠 · 종이색 바탕 · 짙은 갈색 글자. 큰 날짜 숫자, 요일 띠, 달력 칸 그리드.
   글꼴은 Layout 이 싣는 Pretendard 를 쓰고, Noto Sans KR 은 대체 글꼴이다. */
.skin-maeil {
    --ml-red: #e2553f;
    --ml-red-d: #b93a26;
    --ml-red-l: #fde6e1;
    --ml-blue: #2f6db5;
    --ml-ink: #2b211e;
    --ml-sub: #6e605b;
    --ml-line: #e7dcd3;
    --ml-paper: #fbf7f2;
    --ml-font: "Pretendard Variable", Pretendard, 'Noto Sans KR', sans-serif;
    background: var(--ml-paper);
    color: var(--ml-ink);
    font-family: var(--ml-font);
}
.skin-maeil a { text-decoration: none; color: inherit; }
.skin-maeil .ml-sun { color: var(--ml-red) !important; }
.skin-maeil .ml-sat { color: var(--ml-blue) !important; }

/* 머리 — 흰 띠 + 작은 일력 로고 */
.skin-maeil .main-header { background: #fff; border-bottom: 4px solid var(--ml-red); padding: 12px 0; }
.skin-maeil .containerHeader { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; gap: 20px; }
.skin-maeil .main-header .brand-logo,
.skin-maeil .main-header .brand-logo a { font-size: 1.5rem; margin: 0; color: var(--ml-ink); font-weight: 900; letter-spacing: -0.8px; display: flex; align-items: center; }
.skin-maeil .main-header .brand-logo a::before {
    content: ''; flex: 0 0 auto; width: 28px; height: 30px; margin-right: 10px; border-radius: 5px;
    background: linear-gradient(var(--ml-red) 0 34%, #fff 34%);
    box-shadow: inset 0 0 0 2px var(--ml-red), 3px 3px 0 var(--ml-line);
}
.skin-maeil .main-header nav { width: auto; border-top: 0; padding-top: 0; }
.skin-maeil .main-header nav ul { justify-content: flex-end; gap: 6px 18px; }
.skin-maeil header nav ul li a { color: var(--ml-ink); font-size: .9rem; }
.skin-maeil header nav ul li a:hover { color: var(--ml-red); }

.skin-maeil .menu-toggle, .skin-maeil .close-menu { background: var(--ml-red); color: #fff; border-radius: 6px; }
.skin-maeil .mobile-menu-header .logo { color: var(--ml-ink); }
.skin-maeil .mobile-menu-overlay a:hover { color: var(--ml-red-d); }

/* 첫 화면 — 글 + 일력 한 장 */
.skin-maeil .ml-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; margin: 26px 0 0; padding: 48px 48px 40px; background: #fff; border: 1px solid var(--ml-line); border-radius: 20px; }
.skin-maeil .ml-hero-text { min-width: 0; }
.skin-maeil .ml-kicker { display: inline-block; font-size: .82rem; font-weight: 800; color: var(--ml-red-d); letter-spacing: .04em; border-bottom: 2px solid var(--ml-red); padding-bottom: 3px; }
.skin-maeil .ml-hero h2 { font-size: 2.55rem; line-height: 1.3; letter-spacing: -1.6px; font-weight: 900; margin: 18px 0 16px; }
.skin-maeil .ml-hero-text p { font-size: 1.02rem; line-height: 1.75; color: var(--ml-sub); margin: 0; }

.skin-maeil .ml-pad { position: relative; justify-self: center; width: 100%; max-width: 380px; padding: 24px 0 16px; }
.skin-maeil .ml-pad-under { position: absolute; left: 10px; right: 10px; top: 46px; bottom: 4px; background: #fff; border: 1px solid var(--ml-line); border-radius: 0 0 14px 14px; box-shadow: 0 6px 0 -1px #f3ebe3, 0 12px 0 -2px #ece1d7; }
.skin-maeil .ml-pad-flying {
    position: absolute; right: -18px; top: -4px; width: 120px; height: 104px; background: #fff; border: 1px solid var(--ml-line);
    transform: rotate(16deg); box-shadow: 0 8px 18px rgba(60, 30, 20, .14);
    clip-path: polygon(0 0, 100% 0, 100% 86%, 90% 100%, 80% 86%, 70% 100%, 60% 86%, 50% 100%, 40% 86%, 30% 100%, 20% 86%, 10% 100%, 0 86%);
    background-image: linear-gradient(var(--ml-red) 0 24%, transparent 24%);
}
.skin-maeil .ml-pad-sheet { position: relative; background: #fff; border-radius: 14px; box-shadow: 0 14px 30px rgba(60, 30, 20, .16); border: 1px solid var(--ml-line); overflow: visible; }
.skin-maeil .ml-rings { position: absolute; left: 0; right: 0; top: -18px; width: 100%; height: 36px; }
.skin-maeil .ml-pad-band { display: flex; justify-content: space-between; gap: 10px; background: var(--ml-red); color: #fff; padding: 22px 22px 12px; border-radius: 14px 14px 0 0; font-weight: 800; font-size: .9rem; }
.skin-maeil .ml-pad-band span:last-child { opacity: .9; font-weight: 600; }
.skin-maeil .ml-pad-body { padding: 14px 24px 24px; text-align: center; border-top: 2px dashed #f2b8ac; }
.skin-maeil .ml-pad-wd { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ml-sub); }
.skin-maeil .ml-pad-day { display: block; font-size: 7.6rem; line-height: 1; font-weight: 900; letter-spacing: -6px; color: var(--ml-ink); margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.skin-maeil .ml-pad-post { display: block; text-align: left; border-top: 1px solid var(--ml-line); padding-top: 14px; }
.skin-maeil .ml-pad-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.08rem; line-height: 1.5; font-weight: 800; margin: 8px 0 10px; word-break: keep-all; }
.skin-maeil .ml-pad-go { font-size: .86rem; font-weight: 800; color: var(--ml-red-d); }
.skin-maeil .ml-pad-go::after { content: ' →'; }
.skin-maeil .ml-pad-post:hover .ml-pad-title { color: var(--ml-red-d); }
.skin-maeil .ml-pad-wait { margin: 0; color: var(--ml-sub); font-size: .95rem; }
.skin-maeil .ml-tag { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--ml-red-d); background: var(--ml-red-l); padding: 3px 10px; border-radius: 4px; }

/* 요일 띠 */
.skin-maeil .ml-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 22px 0 0; background: #fff; border: 1px solid var(--ml-line); border-radius: 14px; overflow: hidden; }
.skin-maeil .ml-week-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 16px; min-width: 0; border-left: 1px solid var(--ml-line); color: var(--ml-ink); transition: background .15s; }
.skin-maeil .ml-week-day:first-child { border-left: 0; }
.skin-maeil .ml-week-day b { font-size: 1.4rem; font-weight: 900; }
.skin-maeil .ml-week-day span { font-size: .84rem; color: var(--ml-sub); font-weight: 600; text-align: center; word-break: keep-all; }
.skin-maeil .ml-week-short { display: none; }
.skin-maeil .ml-week-day:hover, .skin-maeil .ml-week-day.ml-on { background: var(--ml-red-l); }
.skin-maeil .ml-week-day.ml-on b { text-decoration: underline 3px var(--ml-red); text-underline-offset: 6px; }

/* 목록 — 달력 칸 그리드 */
.skin-maeil .ml-list { margin: 44px 0 40px; }
.skin-maeil .ml-h { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.8px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.skin-maeil .ml-h::before { content: ''; flex: 0 0 auto; width: 14px; height: 18px; border-radius: 3px; background: linear-gradient(var(--ml-red) 0 40%, #fff 40%); box-shadow: inset 0 0 0 2px var(--ml-red); }
.skin-maeil .ml-empty { background: #fff; border: 1px dashed var(--ml-line); border-radius: 14px; padding: 30px; text-align: center; color: var(--ml-sub); }
.skin-maeil .ml-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ml-line); border-left: 1px solid var(--ml-line); background: #fff; }
.skin-maeil .ml-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skin-maeil .ml-cell { min-width: 0; border-right: 1px solid var(--ml-line); border-bottom: 1px solid var(--ml-line); }
.skin-maeil .ml-cell a { display: flex; flex-direction: column; height: 100%; padding: 14px 16px 18px; box-sizing: border-box; transition: background .15s; }
.skin-maeil .ml-cell a:hover { background: #fff8f5; }
.skin-maeil .ml-cell-date { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; color: var(--ml-ink); }
.skin-maeil .ml-cell-date strong { font-size: 2rem; font-weight: 900; line-height: 1; letter-spacing: -1px; color: inherit; }
.skin-maeil .ml-cell-date span { font-size: .8rem; font-weight: 700; color: var(--ml-sub); }
.skin-maeil .ml-cell.ml-sun .ml-cell-date, .skin-maeil .ml-cell.ml-sat .ml-cell-date { color: inherit; }
.skin-maeil .ml-cell.ml-sun, .skin-maeil .ml-cell.ml-sat { color: var(--ml-ink) !important; }
.skin-maeil .ml-cell.ml-sun .ml-cell-date strong { color: var(--ml-red); }
.skin-maeil .ml-cell.ml-sat .ml-cell-date strong { color: var(--ml-blue); }
.skin-maeil .ml-cell-thumb { aspect-ratio: 4 / 3; background-size: cover; background-position: center; background-color: var(--ml-red-l); border-radius: 6px; }
.skin-maeil .ml-cell-cat { font-size: .76rem; font-weight: 800; color: var(--ml-red-d); margin: 12px 0 4px; }
.skin-maeil .ml-cell h3 { font-size: 1rem; line-height: 1.45; margin: 0 0 10px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skin-maeil .ml-cell a:hover h3 { color: var(--ml-red-d); }
.skin-maeil .ml-cell time { margin-top: auto; }
.skin-maeil time { font-size: .8rem; color: #9a8b84; font-variant-numeric: tabular-nums; }

.skin-maeil .ml-official { margin: 0 0 48px; }
.skin-maeil .ml-official-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.skin-maeil .ml-official-row a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid var(--ml-line); border-top: 5px solid var(--ml-red); border-radius: 4px 4px 10px 10px; min-width: 0; }
.skin-maeil .ml-official-row a:hover { background: #fff8f5; }
.skin-maeil .ml-official-row strong { font-size: .98rem; }
.skin-maeil .ml-official-row span { font-size: .84rem; color: var(--ml-sub); }

/* 분류 머리 */
.skin-maeil .ml-cat-head { display: flex; align-items: center; gap: 22px; margin: 26px 0 0; padding: 28px 32px; background: #fff; border: 1px solid var(--ml-line); border-radius: 18px; }
.skin-maeil .ml-cat-head.ml-sun { color: var(--ml-ink) !important; }
.skin-maeil .ml-cat-day { flex: 0 0 auto; width: 84px; height: 92px; border-radius: 10px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; box-sizing: border-box; font-size: 2.4rem; font-weight: 900; color: var(--ml-ink); background: linear-gradient(var(--ml-red) 0 28%, #fff 28%); box-shadow: inset 0 0 0 2px var(--ml-red), 4px 4px 0 var(--ml-line); }
.skin-maeil .ml-cat-head h1 { margin: 8px 0 6px; font-size: 1.95rem; letter-spacing: -1px; font-weight: 900; }
.skin-maeil .ml-cat-head p { margin: 0; color: var(--ml-sub); }

/* 글 화면 */
.skin-maeil .ml-post-top { max-width: 860px; margin: 30px auto 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 26px; align-items: center; }
.skin-maeil .ml-mini { display: flex; flex-direction: column; align-items: center; background: #fff; border: 1px solid var(--ml-line); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 0 -1px #f3ebe3; }
.skin-maeil .ml-mini-band { width: 100%; text-align: center; background: var(--ml-red); color: #fff; font-weight: 800; font-size: .86rem; padding: 6px 0; }
.skin-maeil .ml-mini strong { font-size: 3.2rem; font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-top: 4px; }
.skin-maeil .ml-mini-wd { font-size: .82rem; font-weight: 700; color: var(--ml-sub); padding-bottom: 10px; }
.skin-maeil .ml-post-head { min-width: 0; }
.skin-maeil .ml-post-head h1 { font-size: 2.05rem; line-height: 1.36; letter-spacing: -1.1px; font-weight: 900; margin: 12px 0 8px; }
.skin-maeil .ml-post { max-width: 860px; margin: 26px auto 36px; box-sizing: border-box; border: 1px solid var(--ml-line); border-radius: 16px; box-shadow: none; min-width: 0; }
.skin-maeil .ml-post .post-thumb-full { border-radius: 10px; margin: 0 0 32px; }
.skin-maeil .ml-post .post-body { font-size: 1.06rem; line-height: 1.88; color: #33292a; }
.skin-maeil .ml-post .post-body h2 { font-size: 1.36rem; letter-spacing: -0.6px; margin-top: 2em; padding-left: 14px; border-left: 5px solid var(--ml-red); }
.skin-maeil .ml-post .post-body h3 { font-size: 1.14rem; color: var(--ml-red-d); }
.skin-maeil .ml-post .post-body a { color: var(--ml-red-d); text-decoration: underline; border-bottom: 0; }
.skin-maeil .ml-post .post-body th, .skin-maeil .ml-post .post-body td { border: 1px solid var(--ml-line); padding: 8px 10px; }
.skin-maeil .ml-post .post-body th { background: var(--ml-red-l); }
.skin-maeil .ml-notice { margin: 34px 0 0; padding: 16px 20px 6px; background: #fffbea; border: 1px solid #f1e3a6; border-radius: 4px; box-shadow: 3px 3px 0 #f1e3a6; }
.skin-maeil .ml-notice strong { font-size: .86rem; color: #8a6d00; }
.skin-maeil .ml-notice p { margin: 6px 0 10px; font-size: .9rem; line-height: 1.65; color: #5c4f2a; }
.skin-maeil .ml-related { max-width: 860px; margin: 0 auto 44px; }

.skin-maeil footer { background: #2b211e; color: #d8cbc4; border-top: 6px solid var(--ml-red); }
.skin-maeil h1, .skin-maeil h2, .skin-maeil h3, .skin-maeil p, .skin-maeil li { word-break: keep-all; overflow-wrap: break-word; }
.skin-maeil .post-body { width: 100%; min-width: 0; box-sizing: border-box; }
.skin-maeil .post-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.skin-maeil .post-body img { max-width: 100%; height: auto; }
.skin-maeil .post-body pre { max-width: 100%; overflow-x: auto; }

@media (max-width: 1100px) {
    .skin-maeil .main-header nav ul { gap: 6px 12px; }
    .skin-maeil header nav ul li a { font-size: .84rem; }
}
@media (max-width: 960px) {
    .skin-maeil .ml-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .skin-maeil .ml-hero { padding: 36px 30px 30px; gap: 26px; }
    .skin-maeil .ml-hero h2 { font-size: 2.1rem; }
}
@media (max-width: 768px) {
    .skin-maeil .main-header { padding: 10px 0; }
    .skin-maeil .main-header .brand-logo, .skin-maeil .main-header .brand-logo a { font-size: 1.25rem; }
    .skin-maeil .main-header .brand-logo a::before { width: 24px; height: 26px; }
    .skin-maeil .ml-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 18px 22px; margin-top: 16px; gap: 20px; border-radius: 16px; }
    .skin-maeil .ml-hero h2 { font-size: 1.7rem; letter-spacing: -1px; margin: 12px 0 10px; }
    .skin-maeil .ml-hero-text p { font-size: .93rem; }
    .skin-maeil .ml-pad { max-width: 320px; padding-top: 20px; }
    .skin-maeil .ml-pad-flying { right: -6px; width: 90px; height: 80px; }
    .skin-maeil .ml-pad-day { font-size: 6rem; }
    .skin-maeil .ml-week { margin-top: 14px; border-radius: 12px; }
    .skin-maeil .ml-week-day { padding: 10px 2px 12px; gap: 2px; }
    .skin-maeil .ml-week-day b { font-size: 1.15rem; }
    .skin-maeil .ml-week-full { display: none; }
    .skin-maeil .ml-week-short { display: block; font-size: .74rem !important; }
    .skin-maeil .ml-list { margin: 32px 0 30px; }
    .skin-maeil .ml-h { font-size: 1.3rem; }
    .skin-maeil .ml-grid, .skin-maeil .ml-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .skin-maeil .ml-cell a { padding: 10px 10px 14px; }
    .skin-maeil .ml-cell-date strong { font-size: 1.6rem; }
    .skin-maeil .ml-cell-date span { font-size: .72rem; }
    .skin-maeil .ml-cell h3 { font-size: .92rem; }
    .skin-maeil .ml-official-row { grid-template-columns: minmax(0, 1fr); }
    .skin-maeil .ml-cat-head { padding: 20px 16px; gap: 14px; margin-top: 16px; }
    .skin-maeil .ml-cat-day { width: 62px; height: 70px; font-size: 1.8rem; padding-bottom: 6px; }
    .skin-maeil .ml-cat-head h1 { font-size: 1.45rem; }
    .skin-maeil .ml-post-top { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; margin-top: 18px; align-items: start; }
    .skin-maeil .ml-mini strong { font-size: 2.3rem; }
    .skin-maeil .ml-mini-band { font-size: .76rem; }
    .skin-maeil .ml-mini-wd { font-size: .72rem; }
    .skin-maeil .ml-post-head h1 { font-size: 1.36rem; margin: 8px 0 6px; }
    .skin-maeil .ml-post { margin: 18px auto 24px; border-radius: 12px; }
    .skin-maeil .ml-post .post-thumb-full { margin: 0 0 22px; border-radius: 8px; height: 220px; }
}
