/* okssam.com 메인(2026-10-27 옥쌤 「메인페이지랑 홍보페이지 구분, 메인에 홍보내용 잔뜩 = 약팔이 같음」 → 시안 A 유웨이형 「a로가자」).
   포털형: 소식 배너 + 수능 D-day · 바로가기 · 대입 정보 · 프로그램 이름 · 채널 · 상담 띠. 홍보 구역은 /consulting(consulting.html)으로 옮김.
   시안 원본 = 홍보\okssam사이트\_preview_main\_make_mock.py(a.html), 대입 정보 칸은 feed.css · feed.js 그대로. */
.m-top { padding: 28px 0 8px; }
.m-sec { padding: 52px 0; }
.m-warm { background: var(--warm); }
.feed.m-sec { padding: 52px 0; background: var(--white); }
.m-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.m-h h2 { font-size: 24px; line-height: 32px; font-weight: 900; letter-spacing: -0.02em; }
.m-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 15px; font-weight: 800; color: var(--red); }
.m-more:hover { text-decoration: underline; }

/* 소식 배너(6초마다 넘김, home.js) */
.m-car { position: relative; overflow: hidden; min-height: 340px; background: var(--ink); }
.m-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px;
           padding: 40px 48px 68px; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.m-slide.on { opacity: 1; visibility: visible; }
.m-slide.red { background: var(--red); color: #FFFDFB; }
.m-slide.ink { background: var(--ink); color: #FFFDFB; }
.m-slide.warm { background: var(--warm); color: var(--ink); }
.m-slide h3 { font-size: 36px; line-height: 1.3; font-weight: 900; letter-spacing: -0.03em; text-wrap: balance; }
.m-slide h3 .hl { background: #FFFDFB; color: var(--red); padding: 0 10px 2px; }
.m-slide.ink h3 .hl, .m-slide.warm h3 .hl { background: var(--red); color: #FFFDFB; }
.m-sub { margin-top: 14px; font-size: 17px; font-weight: 600; opacity: .88; text-wrap: balance; }
.m-slide.warm .m-sub { color: var(--sub); opacity: 1; }
.m-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 22px; min-height: 44px; padding: 0 18px;
         font-size: 15px; font-weight: 800; background: #FFFDFB; color: var(--red); }
.m-slide.warm .m-cta { background: var(--red); color: #FFFDFB; }
.m-cta:hover { transform: translateY(-1px); }
.m-big { text-align: right; }
.m-big b { display: block; font-size: 96px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.m-big span { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; opacity: .85; }
.m-ctl { position: absolute; left: 48px; bottom: 16px; display: flex; align-items: center; gap: 4px; z-index: 2; }
.m-ctl button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: rgba(23,18,18,.28); color: #FFFDFB; cursor: pointer; }
.m-ctl button:hover { background: rgba(23,18,18,.5); }
.m-cnt { min-width: 52px; text-align: center; font-size: 15px; font-weight: 800; color: #FFFDFB; font-variant-numeric: tabular-nums;
         background: rgba(23,18,18,.28); height: 44px; line-height: 44px; }

/* 수능 D-day 칸 */
.a-hero { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 16px; }
.a-side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 30px 28px; background: var(--ink); color: #FFFDFB; }
.a-side .a-dd { position: absolute; top: 26px; left: 28px; font-size: 64px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; color: #FFFDFB; font-variant-numeric: tabular-nums; }
.a-side b { font-size: 22px; font-weight: 900; }
.a-side span { font-size: 15px; opacity: .8; }
.a-side em { margin-top: 18px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-style: normal; font-size: 15px; font-weight: 800; color: #FFFDFB;
             border-top: 1px solid rgba(255,253,251,.25); padding-top: 12px; }
.a-side:hover em { text-decoration: underline; }

/* 동그란 바로가기 */
.m-quick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding: 30px 0 4px; }
.m-quick a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 2px; font-size: 15px; font-weight: 700; text-align: center; }
.m-quick i { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--warm); color: var(--red); transition: background .15s, color .15s; }
.m-quick a:hover i { background: var(--red); color: #FFFDFB; }

/* 프로그램 이름 타일 · 채널 */
.m-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.m-prog a { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 22px; background: #FFFDFB; border: 1px solid var(--line); transition: border-color .15s; }
.m-prog a:hover { border-color: var(--red); }
.m-prog b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.m-prog span { font-size: 15px; color: var(--sub); }
.m-prog a.all { background: var(--ink); border-color: var(--ink); color: #FFFDFB; }
.m-prog a.all span { color: #D9CFCB; }
.m-sns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.m-sns a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 12px; background: var(--warm); text-align: center; transition: transform .15s; }
.m-sns a:hover { transform: translateY(-2px); }
.m-sns i { color: var(--red); margin-bottom: 4px; }
.m-sns b { font-size: 17px; font-weight: 800; }
.m-sns span { font-size: 15px; color: var(--sub); }

/* 상담 문의 띠 */
.m-call { background: var(--red); color: #FFFDFB; padding: 40px 0; }
.m-call-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.m-call h2 { font-size: 19px; font-weight: 800; opacity: .85; }
.m-tel { display: inline-block; font-size: 36px; line-height: 1.2; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.m-tel-s { display: block; font-size: 15px; opacity: .8; margin-top: 4px; }

@media (max-width: 960px) {
  .a-hero { grid-template-columns: 1fr; }
  .a-side { min-height: 0; }
  .a-side .a-dd { position: static; margin-bottom: 10px; }
  .m-quick { grid-template-columns: repeat(4, 1fr); row-gap: 16px; }
  .m-prog { grid-template-columns: 1fr 1fr; }
  .m-sns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .m-car { min-height: 300px; }
  .m-slide { grid-template-columns: 1fr; padding: 28px 22px 72px; align-content: start; }
  .m-slide h3 { font-size: 27px; }
  .m-big { display: none; }
  .m-ctl { left: 22px; }
  .m-quick i { width: 56px; height: 56px; }
  .m-quick a { font-size: 14.5px; }
  .m-prog { grid-template-columns: 1fr; }
  .m-h { flex-wrap: wrap; }
  .m-tel { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .m-slide { transition: none; } }

/* 정시 모의지원 배너 = 대학 길라잡이 실제 화면 두 장(뒤 정시 판정 표 · 앞 내 모의지원), 글 오른쪽 빈자리에만(2026-10-29) */
.m-slide:has(.m-mock) .m-txt { position: relative; z-index: 1; }
.m-mock { position: absolute; inset: 0; pointer-events: none; }
.m-mock .bk { position: absolute; right: 20px; top: 30px; width: 300px; height: auto; padding: 10px; background: #FFFDFB;
  box-shadow: 0 12px 28px rgba(23,18,18,.16); }
.m-mock .fr { position: absolute; right: 40px; top: 112px; width: 300px; padding: 10px; background: #FFFDFB;
  box-shadow: 0 18px 40px rgba(23,18,18,.30); }
.m-mock .fr img { display: block; width: 100%; height: auto; }
@media (max-width: 1180px) { .m-mock .bk { width: 270px; right: 12px; } .m-mock .fr { width: 270px; right: 24px; top: 118px; } }
@media (max-width: 640px) { .m-mock { display: none; } }

/* 소식 배너 2~4장 그림 = _preview_main/_make_ira.py 시안 A 동그라미 무대 · 이라스토야(2026-10-29) */
.m-art { pointer-events: none; }
.m-art img { display: block; height: auto; }
.m-slide .m-art img { opacity: 0; translate: 0 14px; transition: opacity .5s .15s, translate .6s .15s cubic-bezier(.2,.8,.2,1); }
.m-slide.on .m-art img { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .m-slide .m-art img { transition: none; translate: none; } }

.m-art { position: relative; width: 272px; height: 272px; margin: -20px 8px -40px 0; }
.m-art::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #FFFDFB; }
.m-slide.warm .m-art::before { background: #EAE0D6; }
.m-slide.rose { background: #F4DDD9; }
.m-slide.warm.rose .m-art::before { background: #FFFDFB; }
.m-art img { position: absolute; left: 50%; bottom: -6px; width: auto; height: 236px; max-width: none; transform: translateX(-50%); }
@media (max-width: 1180px) { .m-art { width: 232px; height: 232px; } .m-art img { height: 200px; } }
@media (max-width: 640px) {
  .m-art { position: absolute; right: 18px; bottom: 18px; width: 120px; height: 120px; margin: 0; }
  .m-art img { height: 104px; bottom: -3px; }
}
/* 소식 배너 그림 끝 */

/* 메인 '3개년 추이' 넘김 구역 #slide3 = _preview_main/_make_slide.py (2026-10-29) */
.s-tabs { display: flex; gap: 16px; }
.s-tab { min-height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--sub); cursor: pointer; }
.s-tab:hover { color: var(--ink); }
.s-tab.on { color: var(--ink); font-weight: 800; border-bottom-color: var(--ink); }
.s-box { position: relative; }
.s-view { overflow: hidden; margin-top: 4px; transition: height .3s ease; }
.s-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center;
         border: 0; background: none; color: var(--sub); cursor: pointer; }
.s-nav:hover { color: var(--ink); }
.s-prev { left: -58px; }
.s-next { right: -50px; }
@media (max-width: 1160px) { .s-prev { left: -14px; } }
.s-track { display: flex; align-items: flex-start; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.s-page { flex: 0 0 100%; min-width: 0; }
.s-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.s-card { background: #FFFDFB; border: 1px solid var(--line); padding: 18px 18px 14px; }
.s-card h3 { font-size: 19px; font-weight: 900; letter-spacing: -0.02em; }
.s-meta { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--sub); min-height: 4.5em; }   /* 3줄 자리 — 전형 · 학과가 2줄/3줄로 갈려 넘길 때마다 구역 높이가 22.5px씩 바뀌던 것(10-29 옥쌤 「세로길이가 자꾸 달라짐」) */
.s-line { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.s-line line { stroke: var(--line); stroke-width: 1; }
.s-line polyline { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; }
.s-line circle { fill: #FFFDFB; stroke: var(--red); stroke-width: 2; }
.s-line circle.on { fill: var(--red); }
.s-yr { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4px; text-align: center; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.s-yr span { display: block; font-size: 14px; font-weight: 600; color: var(--sub); }
.s-yr li.on { color: var(--red); }
.s-body { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 56px; align-items: stretch; }
.s-own { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; margin-top: 4px; padding: 26px 22px 22px; background: var(--ink); color: #FFFDFB; }
.s-own dl { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.s-own dt { font-size: 15px; font-weight: 700; color: #D9CFCB; }
.s-own dd { margin: 2px 0 0; font-size: 36px; line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.s-own .cnt { display: inline-block; text-align: right; }
.s-own small { margin-left: 2px; font-size: 17px; font-weight: 800; }
.s-what { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: #FFFDFB; font-size: 15px; font-weight: 800;
          text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }   /* 10-31 옥쌤 「재구성 표본이란? 버튼」 → 「밑줄로 하자」 → /recon */
.s-what:hover { text-decoration-thickness: 2px; }
.s-what:active { transform: translateY(1px); }
.s-go { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 18px 20px 16px; background: var(--red); color: #FFFDFB;
        transition: background-color .15s, transform .15s; }
.s-go b { font-size: 24px; line-height: 32px; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }
.s-go span { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; line-height: 24px; font-weight: 800; }
.s-go svg { width: 20px; height: 20px; }
.s-go:hover { background: var(--red-deep); transform: translateY(-1px); }
.s-go:active { transform: translateY(1px); }
.m-h .s-title { min-width: 7.8em; }
.m-h:has(.s-tabs) .m-more { margin-right: auto; }
@media (min-width: 961px) {
  .m-h:has(.s-tabs) { padding-right: 304px; }
  .s-own { justify-content: center; gap: 32px; }
}
@media (min-width: 961px), (max-width: 640px) { .s-go { width: 100%; } }
@media (max-width: 960px) {
  .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .s-next { right: -14px; }
  .s-own { flex-direction: row; align-items: center; margin-top: 0; padding: 20px 24px; }
  .s-own dl { flex-direction: row; gap: 40px; }
  .s-own dd { font-size: 30px; }
}
@media (max-width: 640px) {
  .m-h:has(.s-tabs) { flex-wrap: wrap; }
  .m-h .s-tabs { flex-basis: 100%; }
  .s-card { padding: 14px 12px 10px; }
  .s-card h3 { font-size: 17px; }
  .s-yr { font-size: 15px; }
  .s-own { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 18px; }
  .s-own dl { justify-content: space-between; gap: 12px; }
  .s-own dd { font-size: 24px; }

}
@media (prefers-reduced-motion: reduce) { .s-track, .s-view { transition: none; } }

/* 전형 정보 검색창(2026-11-04 옥쌤 「메인페이지에 전형 정보 검색 검색창을 끼워넣자」) — 배너 아래 한 줄.
   /search?q=검색어#search 로 보내면 대학 길라잡이 검색 화면이 그 말로 바로 찾는다(대학서치 ui.html pubInit의 q 읽기) */
.m-srch { display: flex; align-items: center; gap: 20px; height: 72px; margin-top: 16px; padding: 0 8px 0 28px; background: var(--white); border: 2px solid var(--red); }
.m-srch:focus-within { outline: 3px solid var(--red); outline-offset: 3px; }
.m-srch label { flex: none; font-size: 18px; font-weight: 900; letter-spacing: -0.02em; color: var(--red); }
.m-srch input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); -webkit-appearance: none; appearance: none; }
.m-srch input::placeholder { color: #6E625D; font-weight: 500; }
.m-srch button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 24px; border: 0; background: var(--red); color: #FFFDFB; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.m-srch button:hover { background: var(--red-deep); }
@media (max-width: 640px) {
  .m-srch { height: 60px; gap: 10px; padding: 0 6px 0 16px; }
  .m-srch label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .m-srch input { font-size: 16px; }
  .m-srch button { height: 46px; padding: 0 16px; }
}

/* 모서리 = 네이버 그대로(2026-11-04 옥쌤 「메인화면 모서리도 네이버처럼 개살짝만」 → 8px만 = 「가위로 자른느낌」 → 14px = 「너무 둥글어졌는데」 →
   「아니 네이버 그대로 따라하면 되잖아」). naver.com 첫 화면 박스 실측 = 큰 칸 border-radius 8px + 둘레 옅은 선
   box-shadow 0 0 0 1px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.04) · 작은 요소 4px — 반경만 옮기면 안 되고 이 둘레 선이 곡선을 부드럽게 만든다.
   이미 1px 선(border)이 있는 칸(흰 카드 · 프로그램 타일 · 대입 정보 카드)은 선을 겹치지 않게 반경만. 검색창 · 바로가기는 아래 따로.
   대입 정보 칸(.f-card · .f-ig · .f-short) 규칙은 /info 페이지도 같이 쓰도록 feed.css 끝으로 옮겼다(11-04 옥쌤 「모든 ui의 모서리를 메인페이지 규칙 따라서」) */
.m-car, .a-side, .m-srch, .s-card, .s-own, .s-go, .m-prog a, .m-sns a { border-radius: 8px; }
.m-car, .a-side, .s-own, .s-go, .m-sns a, .s-card, .m-prog a { box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.04); }
/* 흰 카드 · 프로그램 타일 · 대입 정보 카드의 1px 선(border, 칸 안쪽 베이지)도 네이버 둘레 선으로(옥쌤 「네이버 테두리랑 픽셀 단위로 일치하는지」 — 안쪽 선은 위치 · 색이 달라 픽셀 불일치).
   마우스 올림 빨간 선 = 같은 둘레 선 색만 바꿈 */
.s-card, .m-prog a { border: 0; }
.m-prog a { transition: box-shadow .15s; }
.m-prog a:hover { box-shadow: 0 0 0 1px var(--red), 0 1px 2px rgba(0,0,0,.04); }
/* 깎은 칸 아래에 다른 색 바탕을 깔지 않는다(옥쌤 「확대해서 보면 네이버는 곡선이랑 직선이 자연스럽게 연결돼있는데 우리껀 경계가 뾰족하게 남아있음」) —
   검은 바탕(.m-car) 위 빨간 슬라이드 · 검은 바탕 위 사진처럼 겹치면 모서리 가장자리 픽셀에 아래 색이 섞여 테두리가 생긴다. 사진 자리 색은 사진 자체에 */
.m-car { background: none; }
.m-cta, .m-ctl button, .m-cnt, .m-srch button, .m-slide h3 .hl, .m-mock .bk, .m-mock .fr, .m-call .btn { border-radius: 4px; }
.m-mock .fr { overflow: hidden; }

/* 검색창 = 네이버처럼 알약(2026-11-04 옥쌤 「검색창도 네이버처럼 아예 둥근걸로」 — naver.com 검색창 실측 높이 60px · 반경 33px = 끝이 반원).
   안의 '검색' 단추도 알약, 칸 안 위 · 아래 · 오른쪽 간격을 같게(높이 72 · 단추 52 → 10px, 640px 이하 60 · 46 → 7px). 메뉴 쪽 검색칸(대학서치 ui.html)도 같은 값 */
.m-srch { border-radius: 999px; padding-right: 10px; }
.m-srch button { border-radius: 999px; }
@media (max-width: 640px) { .m-srch { padding-right: 7px; } }
/* 바로가기 = 네이버 바로가기처럼 탱탱한 둥근 네모(옥쌤 「밑에 동그란 버튼들도 네이버처럼 네모난데 모서리 탱탱한것들로」) —
   naver.com 바로가기 몸통(40px 그림)과 픽셀 대조해 가장 잘 맞는 값 = 반경 35%(6,400점 중 75점 차, 가장자리 반투명 점 수준). 색은 그대로 */
.m-quick i { border-radius: 35%; }
/* 3개년 카드 둘레 선 잘림(2026-11-04 옥쌤 「3개년 캐러셀 카드 모서리가 이상함」) — 둘레 선은 카드 밖 1px 그림자인데 넘김 칸(.s-view)이
   overflow: hidden 이라 칸 끝에 붙은 바깥 변이 잘려 모서리 곡선만 남았다. 칸을 사방 2px 넓히고 페이지 안쪽 2px 여백 → 카드 자리 · 아래 구역 위치는 그대로 */
.s-view { margin: 2px -2px -2px; }
.s-page { box-sizing: border-box; padding: 2px; }
/* 3개년 카드 소개 줄: 띄어쓰기 없는 긴 학과명('인공지능데이터사이언스학부/자연')이 휴대폰 폭에서 카드 밖으로 나가던 것 → 줄 안에서 끊는다(11-04) */
.s-meta { overflow-wrap: anywhere; }
/* 넘길 때 구역 높이가 출렁이지 않게 소개 줄 자리 = 후보 풀 전체(173개)의 최대 줄 수(11-04 실측: 390px 이상 3줄 · 360 · 375px 4줄 — 위 4.5em 은 3줄) */
@media (max-width: 389px) { .s-meta { min-height: 6em; } }
/* ── 스쿼클(스무스 코너) ── _squircle.py가 만든 구간, 손으로 고치지 않는다(반경 규칙을 고치면 python _squircle.py)
   원호 r → 스쿼클 2r(겉보기 크기 그대로), 알약 · 원 · 0은 그대로. 안 되는 브라우저는 위의 원호. */
@supports (corner-shape: squircle) {
  .m-quick i { border-radius: 50%; corner-shape: round; }
  .m-art::before { border-radius: 50%; corner-shape: round; }
  .m-car, .a-side, .m-srch, .s-card, .s-own, .s-go, .m-prog a, .m-sns a { border-radius: 16px; corner-shape: squircle; }
  .m-cta, .m-ctl button, .m-cnt, .m-srch button, .m-slide h3 .hl, .m-mock .bk, .m-mock .fr, .m-call .btn { border-radius: 8px; corner-shape: squircle; }
  .m-srch { border-radius: 999px; corner-shape: round; }
  .m-srch button { border-radius: 999px; corner-shape: round; }
  .m-quick i { border-radius: 35%; corner-shape: round; }
}
/* ── 스쿼클 끝 ── */
