/* okssam.com 휴대폰 전용 메인(2026-12-04 사용자 「모바일 전용 화면을 따로」 → 시안 「포털 1 검색형」) — 마크업 = index.html MHOME 구간
   (_build_pages.py patch_mhome). 640px 이하에서만 보이고 그때 기존 본문 section은 숨긴다. 머리 · 서랍 · 꼬리는 공용 크롬 그대로. */
.mh { display: none; }
@media (max-width: 640px) {
  #main > section { display: none; }
  .mh { display: block; background: var(--warm); padding-bottom: 8px; word-break: keep-all; }
}
.mh [hidden] { display: none !important; }
.mh svg.i { width: 26px; height: 26px; flex: none; fill: currentColor; }
.mh-blk { background: var(--white); padding: 22px 16px 18px; margin-top: 8px; }
.mh-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.mh-h h2 { margin: 0; font-size: 19px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.mh-h a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px -4px -12px 0; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: none; }

/* 검색 + 도구 8칸 */
.mh-top { background: var(--white); padding: 14px 16px 10px; }
.mh-srch { display: flex; height: 52px; margin: 0; border: 2px solid var(--red); border-radius: 8px; overflow: hidden; background: var(--white); }
.mh-srch input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font: inherit; font-size: 16px; background: none; color: var(--ink); }
.mh-srch input::placeholder { color: #8f8480; }
.mh-srch input:focus-visible { outline: none; }
.mh-srch:focus-within { box-shadow: 0 0 0 3px #F9E9E7; }
.mh-srch button { width: 52px; border: 0; background: var(--red); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.mh-srch button svg.i { width: 22px; height: 22px; }
.mh-tools { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.mh-tools a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 8px; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--ink); text-decoration: none; }
.mh-tools .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--warm); display: grid; place-items: center; color: var(--red); }

/* 입시 일정 */
.mh-sched { margin: 0; padding: 0; list-style: none; }
.mh-sched li { display: flex; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid var(--line); }
.mh-sched li:first-child { border-top: 0; }
.mh-sched .dd { flex: none; width: 56px; padding: 3px 0; border-radius: 4px; background: #F9E9E7; color: var(--red); text-align: center; font-size: 13.5px; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mh-sched .tx { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.mh-sched .tx small { display: block; font-size: 13px; font-weight: 500; color: var(--sub); }
.mh-sched .dt { flex: none; font-size: 14px; font-weight: 600; color: var(--sub); font-variant-numeric: tabular-nums; }

/* 모평 등급컷 */
.mh-cut table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.mh-cut caption { text-align: left; font-size: 13.5px; color: var(--sub); padding-bottom: 6px; }
.mh-cut th { padding: 8px 0; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; color: var(--sub); text-align: right; }
.mh-cut td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: right; font-weight: 600; }
.mh-cut th:first-child, .mh-cut td:first-child { text-align: left; }
.mh-cut td:first-child { font-weight: 700; }
.mh-cut .src { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--sub); }

/* 대입 소식 — 칸은 feed.js가 채운다(blog = .f-card, shorts = .f-short) */
.mh-posts .f-card { display: flex; flex-direction: row; gap: 12px; padding: 10px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; transform: none; }
.mh-posts .f-card:first-child { border-top: 0; padding-top: 2px; }
.mh-posts .f-card img { width: 92px; height: 69px; aspect-ratio: auto; flex: none; border-radius: 4px; }
.mh-posts .f-card .t { padding: 0; align-self: center; }
.mh-posts .f-card .c { display: none; }
.mh-posts .f-card h4 { margin: 0; font-size: 15px; line-height: 21px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mh-posts .f-card .d { margin-top: 4px; }
.mh-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 14px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.mh-rail::-webkit-scrollbar { display: none; }
.mh-rail .f-short { flex: none; width: 124px; scroll-snap-align: start; border-radius: 4px; }

/* 컨설팅 한 줄 */
.mh-consult { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; margin-top: 8px; padding: 14px 16px; background: var(--white); color: var(--ink); text-decoration: none; }
.mh-consult b { display: block; font-size: 16px; font-weight: 800; }
.mh-consult small { display: block; font-size: 13.5px; color: var(--sub); }
.mh-consult em { flex: none; font-style: normal; font-size: 14px; font-weight: 700; color: var(--red); }

@media (hover: hover) and (pointer: fine) { .mh a:hover { opacity: .85; } }
/* ── 스쿼클(스무스 코너) ── _squircle.py가 만든 구간, 손으로 고치지 않는다(반경 규칙을 고치면 python _squircle.py)
   원호 r → 스쿼클 2r(겉보기 크기 그대로), 알약 · 원 · 0은 그대로. 안 되는 브라우저는 위의 원호. */
@supports (corner-shape: squircle) {
  .mh-srch { border-radius: 16px; corner-shape: squircle; }
  .mh-tools .ic { border-radius: 28px; corner-shape: squircle; }
  .mh-sched .dd { border-radius: 8px; corner-shape: squircle; }
  .mh-posts .f-card { border-radius: 0; }
  .mh-posts .f-card img { border-radius: 8px; corner-shape: squircle; }
  .mh-rail .f-short { border-radius: 8px; corner-shape: squircle; }
}
/* ── 스쿼클 끝 ── */
