/* okssam.com 대입 정보(2026-10-26 옥쌤 「진학사처럼 … 메인페이지에 연결해서 보여주고싶음」) — 메인 #info(시안 C, 옥쌤 「숏폼 두줄로 해서 채워줘」) · /info 공용.
   칸을 채우는 건 assets/feed.js(재료 /api/feed). 시안 = 홍보\okssam사이트\_preview_feed\_make_mock.py */
.feed { padding: 88px 0 96px; background: var(--white); }
.feed[hidden] { display: none; }
.feed .sec-title { margin-bottom: 10px; }
.f-row { margin-top: 48px; }
.f-rh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.f-rh h2, .f-rh h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 21px; line-height: 28px; font-weight: 900; letter-spacing: -0.02em; }
.f-rh svg { display: block; flex: none; }
.f-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 800; color: var(--red); text-decoration: none; }
.f-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-grid { display: grid; gap: 16px; }
.f-card { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
          transition: border-color .15s, transform .15s; }
.f-card:hover { border-color: var(--red); transform: translateY(-2px); }
.f-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--warm); }   /* 블로그 커버 = 정사각 카드 */
.f-card .t { padding: 14px 16px 16px; }
.f-card .c { font-size: 12.5px; line-height: 18px; font-weight: 800; color: var(--red); }
.f-card h4 { margin: 6px 0 8px; font-size: 16px; line-height: 24px; font-weight: 800; letter-spacing: -0.01em; word-break: keep-all;
             display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.f-card .d { font-size: 13px; line-height: 18px; color: var(--sub); font-variant-numeric: tabular-nums; }
.f-short { position: relative; display: block; overflow: hidden; background: var(--ink); text-decoration: none; transition: transform .15s; }
.f-short:hover { transform: translateY(-2px); }
.f-short img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.f-short span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; color: #fff; font-size: 14px; line-height: 20px; font-weight: 800;
                background: linear-gradient(to top, rgba(23,18,18,.86), rgba(23,18,18,0)); word-break: keep-all;
                display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.f-ig { display: block; overflow: hidden; background: var(--warm); transition: transform .15s; }
.f-ig:hover { transform: translateY(-2px); }
.f-ig img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.f-blog { grid-template-columns: repeat(4, 1fr); }
.f-shorts, .f-igs { grid-template-columns: repeat(6, 1fr); }

/* 메인 = 매거진(왼쪽 최신 글 크게 + 목록, 오른쪽 숏폼 3×2) */
.f-mag { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 32px; margin-top: 36px; }
.f-lead .f-card { flex-direction: row; }
.f-lead .f-card img { width: 46%; flex: none; }
.f-lead .f-card .t { align-self: center; padding: 20px 24px; }
.f-lead .f-card h4 { font-size: 21px; line-height: 30px; -webkit-line-clamp: 3; }
.f-list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.f-list a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--ink);
            text-decoration: none; font-size: 15px; line-height: 22px; font-weight: 700; }
.f-list a:hover { color: var(--red); }
.f-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.f-list i { flex: none; font-style: normal; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.f-side .f-shorts { grid-template-columns: repeat(3, 1fr); gap: 12px; }

@media (max-width: 1100px) {
  .f-mag { grid-template-columns: minmax(0, 1fr); }
  .f-blog { grid-template-columns: repeat(3, 1fr); }
  .f-shorts, .f-igs { grid-template-columns: repeat(4, 1fr); }
  .f-side .f-shorts { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 720px) {
  .feed { padding: 64px 0 72px; }
  .f-grid { gap: 8px; }
  .f-blog { grid-template-columns: repeat(2, 1fr); }
  .f-shorts, .f-igs, .f-side .f-shorts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .f-lead .f-card { flex-direction: column; }
  .f-lead .f-card img { width: 100%; }
  .f-lead .f-card .t { padding: 14px 16px 16px; }
  .f-lead .f-card h4 { font-size: 18px; line-height: 26px; }
  .f-short span { padding: 28px 8px 8px; font-size: 12.5px; line-height: 17px; }
  .f-card h4 { font-size: 15px; line-height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .f-card, .f-short, .f-ig { transition: none; } }

/* 모서리 = 메인 규칙(2026-11-04 옥쌤 「옥쌤닷컴 모든 ui의 모서리를 메인페이지 규칙 따라서 바꿔」 — 메인 home.css 의 #info 전용 줄을 여기로 옮겨 메인 · /info 가 같이 쓴다).
   8px + 네이버 둘레 선, 카드의 1px 선도 둘레 선으로(마우스 올림 = 둘레 선만 빨강). 깎은 칸 밑에 다른 색 바탕을 깔면 모서리에 테두리가 생겨 자리 색은 사진에 */
.f-card, .f-ig, .f-short { border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.04); }
.f-card { border: 0; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.f-card:hover { box-shadow: 0 0 0 1px var(--red), 0 1px 2px rgba(0,0,0,.04); }
.f-short, .f-ig { background: none; }
.f-short img { background: var(--ink); }
.f-ig img { background: var(--warm); }
@media (prefers-reduced-motion: reduce) { .f-card { transition: none; } }
/* ── 스쿼클(스무스 코너) ── _squircle.py가 만든 구간, 손으로 고치지 않는다(반경 규칙을 고치면 python _squircle.py)
   원호 r → 스쿼클 2r(겉보기 크기 그대로), 알약 · 원 · 0은 그대로. 안 되는 브라우저는 위의 원호. */
@supports (corner-shape: squircle) {
  .f-card, .f-ig, .f-short { border-radius: 16px; corner-shape: squircle; }
}
/* ── 스쿼클 끝 ── */
