:root {
    --bg: #f7faf8;
    --ink: #13221c;
    --muted: #607169;
    --line: #d9e4dd;
    --green: #146c4b;
    --green-deep: #0f4d37;
    --blue: #2858bd;
    --coral: #d95c45;
    --paper: #ffffff;
    --shadow: 0 18px 50px rgba(19, 34, 28, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 6vw;
    background: rgba(247, 250, 248, 0.92);
    border-bottom: 1px solid rgba(217, 228, 221, 0.85);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
}

.top-nav a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #31443b;
}

.top-nav a:hover,
.top-nav a:focus-visible {
    background: #e8f2ed;
    outline: none;
}

.top-nav .nav-action {
    background: var(--ink);
    color: #fff;
}

.hero {
    position: relative;
    min-height: 78svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #edf6f1;
    border-bottom: 1px solid var(--line);
}

#wordScene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(237, 246, 241, 0.98) 0%, rgba(237, 246, 241, 0.78) 48%, rgba(237, 246, 241, 0.12) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1080px, 88vw);
    margin: 0 auto;
    padding: 74px 0 64px;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(46px, 7vw, 96px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    margin: 24px 0 0;
    font-size: clamp(18px, 2.1vw, 25px);
    line-height: 1.55;
    color: #2d4439;
    font-weight: 600;
}

.hero-actions,
.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.primary-link,
.secondary-link,
.intro-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 8px;
    font-weight: 800;
    border: 1px solid transparent;
}

.primary-link {
    background: var(--green);
    color: #fff;
    box-shadow: var(--shadow);
}

.secondary-link,
.intro-actions a {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--line);
    color: var(--ink);
}

.primary-link:hover,
.secondary-link:hover,
.intro-actions a:hover {
    transform: translateY(-1px);
}

.section-shell {
    width: min(1080px, 88vw);
    margin: 0 auto;
    padding: 72px 0;
}

.section-heading {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.section-heading.align-left {
    justify-items: start;
    text-align: left;
    margin-bottom: 0;
}

.section-heading h2,
.content-section h2 {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.12;
    letter-spacing: 0;
}

.section-heading p,
.page-title p,
.content-section p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.72;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-link {
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 12px 35px rgba(19, 34, 28, 0.07);
}

.service-link:hover,
.channel-list a:hover {
    border-color: rgba(20, 108, 75, 0.45);
    transform: translateY(-2px);
}

.service-link strong {
    font-size: 21px;
    line-height: 1.35;
}

.service-link span {
    color: var(--muted);
    line-height: 1.55;
    font-weight: 600;
}

.service-main {
    background: var(--green-deep);
    color: #fff;
    border-color: var(--green-deep);
}

.service-main span {
    color: #d8f0e5;
}

.split-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 48px;
    align-items: start;
    border-top: 1px solid var(--line);
}

.channel-list {
    display: grid;
    gap: 12px;
}

.channel-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(19, 34, 28, 0.06);
}

.channel-list span {
    color: var(--muted);
    font-weight: 800;
}

.channel-list strong {
    color: var(--blue);
    text-align: right;
}

.channel-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.channel-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 10px 30px rgba(19, 34, 28, 0.06);
    font-size: 12px;
    font-weight: 900;
}

.channel-icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

.channel-icon.youtube .yt-bg {
    fill: #ff0033;
}

.channel-icon.youtube .yt-play {
    fill: #fff;
}

.channel-icon.instagram .ig-outline,
.channel-icon.instagram .ig-lens,
.channel-icon.instagram .ig-dot {
    fill: none;
    stroke: #d62976;
    stroke-width: 3.4;
}

.channel-icon.naver .naver-bg {
    fill: #03c75a;
}

.channel-icon.naver .naver-n {
    fill: #fff;
}

.channel-icon:hover,
.channel-icon:focus-visible {
    border-color: rgba(20, 108, 75, 0.45);
    transform: translateY(-2px);
    outline: none;
}

.intro-links {
    border-top: 1px solid var(--line);
}

.intro-actions {
    justify-content: center;
}

.locations-section {
    border-top: 1px solid var(--line);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.location-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(19, 34, 28, 0.07);
}

.location-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 9px;
    border-radius: 8px;
    background: #e8f2ed;
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 900;
}

.location-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.3;
}

.location-card p {
    margin: 0;
    color: #34483e;
    line-height: 1.65;
    font-weight: 700;
}

.location-card .location-note {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.location-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.location-actions a + a {
    background: #e8f2ed;
    color: var(--green-deep);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 6vw;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.site-footer p {
    margin: 0;
}

.site-footer div {
    display: flex;
    gap: 16px;
    font-weight: 700;
}

.sub-page {
    background: #fff;
}

.sub-main {
    width: min(980px, 88vw);
    margin: 0 auto;
    padding: 64px 0 84px;
}

.page-title {
    padding: 48px 0;
    border-bottom: 1px solid var(--line);
}

.page-title h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: 0;
}

.content-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
}

.teacher-intro {
    padding-top: 44px;
}

.teacher-profile {
    display: grid;
    grid-template-columns: minmax(220px, 300px) 1fr;
    gap: 34px;
    align-items: center;
}

.profile-portrait {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #101413;
    box-shadow: 0 16px 42px rgba(19, 34, 28, 0.12);
}

.profile-portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.profile-portrait figcaption {
    margin-top: 10px;
    color: #dce7e1;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.profile-copy h2 {
    margin-bottom: 12px;
}

.profile-copy h3,
.portfolio-details h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.3;
}

.profile-lead {
    color: #30443a;
    font-weight: 650;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.profile-tags span {
    padding: 8px 11px;
    border-radius: 8px;
    background: #e8f2ed;
    color: var(--green-deep);
    font-size: 14px;
    font-weight: 900;
}

.portfolio-section {
    display: grid;
    gap: 24px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.proof-card {
    min-height: 154px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(19, 34, 28, 0.06);
}

.proof-link {
    display: block;
}

.proof-link:hover,
.proof-link:focus-visible {
    border-color: rgba(20, 108, 75, 0.45);
    transform: translateY(-2px);
    outline: none;
}

.proof-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--green-deep);
    font-size: 18px;
    line-height: 1.35;
}

.proof-card p,
.portfolio-details p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.portfolio-details {
    padding-top: 2px;
}

.detail-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: #34483e;
    line-height: 1.65;
}

.data-meta {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.data-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.data-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(19, 34, 28, 0.06);
}

.data-card h2,
.data-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.data-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.post-card-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card-link:hover,
.post-card-link:focus-visible {
    border-color: #9abdab;
    box-shadow: 0 16px 36px rgba(20, 46, 35, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.analysis-summary-card {
    display: grid;
    gap: 14px;
}

.post-cta {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--green-deep);
    color: #fff;
    font-weight: 900;
}

.detail-back {
    margin-bottom: 18px;
}

.detail-back a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 13px;
    border-radius: 8px;
    background: #e8f2ed;
    color: var(--green-deep);
    font-weight: 900;
}

.post-meta {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.notice-box {
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid #cfe1d8;
    border-radius: 8px;
    background: #f2f8f5;
    color: #31443b;
    line-height: 1.65;
    font-weight: 750;
}

.notice-box.compact {
    margin: 16px 0;
    padding: 12px 14px;
    font-size: 14px;
}

.analysis-card {
    display: grid;
    gap: 18px;
}

.analysis-block {
    display: grid;
    gap: 12px;
}

.analysis-block h3 {
    margin: 0;
    font-size: 20px;
}

.analysis-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.analysis-counts span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f2f7f4;
    color: #2d4439;
    font-weight: 800;
}

.analysis-counts strong {
    color: var(--green-deep);
}

.analysis-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.analysis-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14px;
}

.analysis-table th,
.analysis-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.analysis-table th {
    background: #f2f7f4;
    color: var(--green-deep);
    font-weight: 900;
}

.analysis-table tr:last-child td {
    border-bottom: 0;
}

.data-card .card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.data-card .card-actions a {
    padding: 10px 12px;
    border-radius: 8px;
    background: #e8f2ed;
    color: var(--green-deep);
    font-weight: 800;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.metric-row span {
    padding: 12px;
    border-radius: 8px;
    background: #f2f7f4;
    color: #2d4439;
    font-weight: 800;
}

.empty-state {
    padding: 28px;
    border: 1px dashed #b7c8bf;
    border-radius: 8px;
    background: #f7faf8;
    color: var(--muted);
    line-height: 1.65;
}

.content-section h2 {
    font-size: clamp(25px, 3vw, 34px);
    margin-bottom: 14px;
}

.compact {
    margin-top: 20px;
}

.policy .content-section p {
    color: #3e5148;
}

@media (max-width: 860px) {
    .site-header {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .top-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .top-nav a {
        white-space: nowrap;
    }

    .hero {
        min-height: 74svh;
    }

    .hero::after {
        background: rgba(237, 246, 241, 0.84);
    }

    .hero-inner {
        padding: 52px 0 58px;
    }

    .link-grid,
    .split-section,
    .metric-row,
    .teacher-profile,
    .proof-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .profile-portrait {
        width: min(320px, 100%);
    }

    .channel-icons {
        justify-content: flex-start;
    }

    .service-link {
        min-height: 140px;
    }

    .channel-list a,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .channel-list strong {
        text-align: left;
    }
}

.site-bottom-ad {
    width: min(100% - 32px, 970px);
    min-height: 90px;
    margin: 32px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

/* EduGenius public exam analysis additions */
.public-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.public-summary-grid article {
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #fbfdfc;
  padding: 14px;
}
.public-summary-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #12372e;
}
.public-summary-grid p {
  margin: 0;
  line-height: 1.65;
}
.analysis-bars {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #fbfdfc;
}
.analysis-bar {
  display: grid;
  grid-template-columns: 120px minmax(120px, 1fr) 90px;
  gap: 10px;
  align-items: center;
}
.analysis-bar strong,
.analysis-bar em {
  font-size: 13px;
}
.analysis-bar em {
  color: #5e7069;
  font-style: normal;
  text-align: right;
}
.analysis-bar span {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6efec;
}
.analysis-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0a6f83;
}
.public-question-table th:nth-child(5),
.public-question-table td:nth-child(5),
.public-question-table th:nth-child(6),
.public-question-table td:nth-child(6) {
  min-width: 220px;
}
@media (max-width: 760px) {
  .public-summary-grid,
  .analysis-bar {
    grid-template-columns: 1fr;
  }
  .analysis-bar em {
    text-align: left;
  }
}

/* EduGenius public content protection */
html.content-protected body {
  -webkit-user-select: none;
  user-select: none;
}
html.content-protected img,
html.content-protected a {
  -webkit-user-drag: none;
}
@media print {
  html.content-protected body::before {
    content: "저작권 보호 자료는 인쇄할 수 없습니다.";
    display: block;
    font: 700 18px/1.6 Malgun Gothic, sans-serif;
    margin: 40px;
  }
  html.content-protected body > * {
    display: none !important;
  }
}
