/* 시운논술 메인 홈페이지 — 남색 중심, 빨간색은 첨삭 강조에만 */
body:has(.swh) { overflow-x: clip; }
.swh {
	--n: #23407A; --nd: #14234A; --ns: #E3EAF7; --r: #C8402F; --ink: #1B2433; --body: #3C4759; --mute: #5E6A7D;
	--line: #E1E5EC; --soft: #EEF1F5; --bg2: #F6F7F9;
	--serif: 'Nanum Myeongjo', 'AppleMyungjo', serif;
	--sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
	max-width: none !important;
	font-family: var(--sans); color: var(--ink); font-size: 16px; line-height: 1.6;
	background: #fff;
}
.swh *, .swh *::before, .swh *::after { box-sizing: border-box; }
.swh h1, .swh h2, .swh h3, .swh p, .swh ul, .swh ol, .swh dl, .swh dd { margin: 0; }
.swh a { text-decoration: none; }
.swh-in { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.swh-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.swh-muted { color: var(--mute); font-size: 14px; }
.swh-navy { color: var(--n); }
.swh-red { color: var(--r) !important; }
.swh-serif { font-family: var(--serif); font-weight: 800; }
.swh-eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: #AEBBD6; }
.swh-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 22px; }
.swh h2 { font-size: 28px; letter-spacing: -.01em; line-height: 1.3; text-wrap: balance; }
.swh-big { font-size: 34px !important; margin: 6px 0 28px !important; }

/* 버튼 */
.swh-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.swh-btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 8px; font-weight: 700; font-size: 16px; }
.swh-btn-light { background: #fff; color: var(--nd) !important; }
.swh-btn-line { border: 1px solid rgba(255,255,255,.45); color: #fff !important; }
.swh-btn:focus-visible, .swh a:focus-visible { outline: 2px solid #9FC0FF; outline-offset: 2px; }

/* 첫 화면 */
.swh-hero { background-color: var(--nd); color: #fff;
	background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 28px 28px; }
.swh-hero-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.swh-hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.swh-hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(38px, 5.4vw, 56px); line-height: 1.22; letter-spacing: -.01em; color: #fff; }
.swh-lead { font-size: 18px; color: #C9D3E8; max-width: 30em; }
.swh-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 14px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; line-height: 1.4; color: #AEBBD6; }
.swh-facts strong { display: block; color: #fff; }
.swh-hero-graph { flex: 1 1 460px; min-width: 0; position: relative; padding-bottom: 24px; }
.swh-hero-graph svg { display: block; width: 100%; height: auto; overflow: visible; }
.swh-hero-graph .ax { stroke: #7F8DAD; stroke-width: 1.2; }
.swh-hero-graph .axl { fill: #7F8DAD; font: 14px var(--mono); }
.swh-hero-graph .area { fill: #E0533F; fill-opacity: .22; animation: swhFade .8s ease-out 1.5s both; }
.swh-hero-graph .curve { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1400; animation: swhDraw 2.4s cubic-bezier(.3,.7,.2,1) both; }
.swh-hero-graph .tan { stroke: #AEBBD6; stroke-width: 1.4; stroke-dasharray: 6 6; animation: swhFade .8s ease-out 1.7s both; }
.swh-hero-graph .pt { fill: #fff; animation: swhFade .8s ease-out 1.7s both; }
.swh-hero-graph .lbl { fill: #FF9A88; font: 14px var(--mono); animation: swhFade .8s ease-out 1.5s both; }
.swh-hero-graph .fx { fill: #C9D3E8; font: 17px var(--mono); animation: swhFade .8s ease-out 1.5s both; }
.swh-note { position: absolute; left: 0; bottom: -20px; width: 250px; max-width: 70%; background-color: #fff; color: var(--ink); border-radius: 6px; padding: 14px 16px;
	box-shadow: 0 16px 32px rgba(0,0,0,.3); transform: rotate(-2deg); display: flex; flex-direction: column; gap: 4px; font-size: 13px;
	background-image: linear-gradient(rgba(35,64,122,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(35,64,122,.06) 1px, transparent 1px); background-size: 14px 14px; }
.swh-note-h { font: 11px var(--mono); color: var(--mute); }
.swh-note .swh-red { font-family: var(--serif); font-weight: 700; font-size: 14px; }
@keyframes swhDraw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes swhFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .swh-hero-graph * { animation: none !important; } }

/* 이번 주 */
.swh-week { padding-top: 80px; padding-bottom: 24px; }
.swh-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.swh-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.swh-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.swh-card-h { display: flex; align-items: center; justify-content: space-between; }
.swh-card-h h3 { font-size: 18px; }
.swh-card-h a { font-size: 14px; font-weight: 600; color: var(--n); }
.swh-line { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--soft); color: var(--ink) !important; }
.swh-line .swh-mono { width: 48px; flex: none; font-size: 15px; }
.swh-grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swh-line.is-cancel .swh-grow { color: var(--r); }
.swh-dday { display: flex; align-items: flex-end; gap: 12px; padding: 2px 0 6px; }
.swh-dday b { font: 500 44px/1 var(--mono); color: var(--n); }
.swh-dday span { font-size: 13px; color: var(--mute); padding-bottom: 4px; }

/* 답안지 + 첨삭 포인트 */
.swh-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.swh-paper { flex: 1 1 440px; min-width: 0; border: 1px solid #D6DCE5; border-radius: 4px; padding: 32px 34px; box-shadow: 0 10px 30px rgba(20,35,74,.08); display: flex; flex-direction: column; gap: 15px; font-size: 15px; background-color: #fff;
	background-image: linear-gradient(rgba(35,64,122,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(35,64,122,.05) 1px, transparent 1px); background-size: 20px 20px; }
.swh-paper-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.swh-paper p { display: flex; gap: 12px; }
.swh-paper p b { font-family: var(--mono); font-weight: 500; color: var(--r); flex: none; }
.swh-paper-c { border-top: 1px dashed #E6C2BB; padding-top: 12px; color: var(--r); font-family: var(--serif); font-weight: 700; font-size: 16px; }
.swh-points { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.swh-points h2 { font-size: 34px; }
.swh-points dl { display: grid; grid-template-columns: 28px 1fr; gap: 12px 8px; }
.swh-points dt { font-family: var(--mono); color: var(--r); }
.swh-points dd span { color: var(--mute); }

/* 회색 띠 */
.swh-band { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.swh-band > .swh-in { padding-top: 72px; padding-bottom: 72px; }
.swh-band h2 + .swh-muted { margin: 8px 0 30px; font-size: 16px; }
.swh-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--nd); }
.swh-steps li { padding: 20px 20px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.swh-steps span { font: 13px var(--mono); color: var(--n); }
.swh-steps strong { font-size: 18px; }
.swh-steps em { font-style: normal; color: var(--body); font-size: 15px; }

/* 커리큘럼 */
.swh-curri { padding-top: 80px; }
.swh-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.swh-gantt { min-width: 760px; display: grid; grid-template-columns: 130px repeat(10, minmax(0, 1fr)); row-gap: 12px; align-items: center; }
.swh-mon { font: 12px var(--mono); color: var(--mute); text-align: center; }
.swh-row { font-size: 14px; font-weight: 600; grid-column: 1; }
.swh-bar { height: 26px; border-radius: 5px; font-size: 12px; font-weight: 600; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; }
.swh-bar.b1 { background: var(--ns); color: var(--n); }
.swh-bar.b2 { background: #B9C9EA; color: var(--nd); }
.swh-bar.b3 { background: #6E8CC9; color: #fff; }
.swh-bar.b4 { background: var(--n); color: #fff; }

/* 수업 안내 */
.swh-classes { padding-top: 72px; padding-bottom: 80px; }
.swh-class { border: 1px solid var(--line); border-radius: 12px; padding: 0 26px 26px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.swh-class-graph { margin: 0 -26px 4px; height: 56px; border-bottom: 1px solid var(--soft); background-color: #FAFBFC;
	background-image: linear-gradient(rgba(35,64,122,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(35,64,122,.06) 1px, transparent 1px); background-size: 12px 12px; }
.swh-class-graph svg { display: block; width: 100%; height: 56px; }
.swh-class-graph path { fill: none; stroke: var(--n); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.swh-class-graph .dash { stroke: var(--n); stroke-opacity: .4; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.swh-class-graph circle { fill: var(--r); }
.swh-class-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.swh-badge { font-size: 13px; font-weight: 600; color: var(--n); }
.swh-formula { font: 13px var(--mono); color: var(--mute); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.swh-class h3 { font-family: var(--serif); font-weight: 800; font-size: 26px; }
.swh-class p { color: var(--body); font-size: 15px; }
.swh-class dl { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--soft); display: grid; grid-template-columns: 64px 1fr; gap: 6px 10px; font-size: 14px; }
.swh-class dt { color: var(--mute); }

/* 강사 */
.swh-teacher { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 8px 8px 0 var(--ns); padding: 26px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.swh-teacher img { flex: 0 0 170px; width: 170px; height: 230px; object-fit: cover; object-position: center top; border-radius: 10px; background: #D9DCE0; max-width: 100%; }
.swh-teacher > div { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.swh-role { font-size: 13px; font-weight: 600; color: var(--r); }
.swh-teacher h3 { font-family: var(--serif); font-weight: 800; font-size: 28px; }
.swh-quote { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.5; color: var(--n); }
.swh-teacher ul { padding-left: 18px; color: var(--body); font-size: 15px; }

/* 상담 */
.swh-cta { background: var(--nd); color: #fff; }
.swh-cta-in { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.swh-cta h2 { font-size: 26px; color: #fff; }
.swh-cta p { color: #C9D3E8; margin-top: 6px; }
.swh-small { font-size: 13px; color: #AEBBD6 !important; }
.swh-phone { font: 600 22px var(--mono); color: #fff !important; }

@media (max-width: 600px) {
	.swh h2 { font-size: 24px; }
	.swh-hero-in { padding-top: 56px; padding-bottom: 72px; gap: 32px; }
	.swh-paper { padding: 24px 20px; }
	.swh-teacher img { flex-basis: 100%; width: 100%; height: 320px; }
	.swh-grid2, .swh-grid3 { grid-template-columns: 1fr; }
}
.swh-line.is-cancel { flex-wrap: wrap; row-gap: 2px; }
.swh-line.is-cancel .swh-muted { flex-basis: 100%; padding-left: 62px; font-size: 13px; }
.swh [id] { scroll-margin-top: 24px; }
.swh, .swn, .swf { word-break: keep-all; overflow-wrap: anywhere; }
