: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: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 24px;
    overflow: hidden;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.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;
}

.site-auth-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #cfe0da;
    border-radius: 8px;
    background: #eef7f3;
    color: #0f4d37;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.site-auth-badge[data-role="admin"] {
    border-color: #0b5d52;
    background: #0b5d52;
    color: #fff;
}

.site-logout-button {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #cfe0da;
    border-radius: 8px;
    background: #fff;
    color: #31443b;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.site-logout-button:hover,
.site-logout-button:focus-visible {
    background: #fff5f2;
    border-color: #d9a79c;
    color: #9c3b2f;
    outline: none;
}

.top-nav a.auth-link-ready {
    background: #e8f2ed;
    color: #0f4d37;
}

.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;
}

.public-sample-notice {
    border-color: #e7c0b9;
    background: #fff7f5;
    color: #2f241f;
    font-size: 16px;
    line-height: 1.75;
}

.public-sample-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
    color: #16231f;
}

.public-sample-notice strong span {
    color: #b63b32;
}

.member-access-notice {
    border-color: #b7d9cc;
    background: #f0f8f4;
}

.member-access-notice strong {
    color: #0b5d52;
}

.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;
}

.learn-main {
    width: min(860px, 88vw);
}

.learn-grid {
    display: grid;
    gap: 10px;
}

.featured-learn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.learn-card {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.learn-card:hover,
.learn-card:focus-visible {
    border-color: rgba(20, 108, 75, 0.48);
    background: #fbfefd;
    outline: none;
}

.learn-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 900;
}

.learn-card strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.38;
}

.learn-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.learn-category-section {
    padding: 30px 0;
}

.learn-category-section .section-heading {
    margin-bottom: 12px;
}

.learn-category-section .section-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.learn-grid.compact {
    gap: 8px;
}

.learn-grid.compact .learn-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    padding: 12px 0;
    border-width: 1px 0 0;
    border-radius: 0;
    background: transparent;
}

.learn-grid.compact .learn-card span {
    grid-row: 1 / span 2;
    margin: 0;
    color: #0b5d52;
}

.learn-grid.compact .learn-card strong {
    font-size: 16px;
}

.learn-grid.compact .learn-card p {
    margin-top: 2px;
    font-size: 13px;
}

.clean-channel-section {
    grid-template-columns: 0.72fr 1.28fr;
}

.clean-channel-list a {
    align-items: center;
    min-height: 72px;
}

.clean-channel-list strong {
    color: var(--green-deep);
}

.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;
    }

    .featured-learn-grid,
    .clean-channel-section {
        grid-template-columns: 1fr;
    }

    .learn-grid.compact .learn-card {
        grid-template-columns: 1fr;
    }

    .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;
}
.audience-compare-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid #cfe0da;
  border-radius: 8px;
  background: #f7fbf9;
}
.audience-compare-panel div {
  min-width: 0;
}
.audience-compare-panel span {
  display: block;
  margin-bottom: 6px;
  color: #607169;
  font-size: 12px;
  font-weight: 800;
}
.audience-compare-panel strong {
  display: block;
  margin-bottom: 7px;
  color: #102c25;
  font-size: 15px;
}
.audience-compare-panel p {
  margin: 0;
  color: #3e5148;
  font-size: 13px;
  line-height: 1.6;
}
.audience-compare-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}
.audience-compare-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #0b5d52;
  border-radius: 8px;
  background: #0b5d52;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.audience-compare-actions a + a {
  background: #fff;
  color: #0b5d52;
}
.public-question-table {
  table-layout: fixed;
  min-width: 1160px;
  font-size: 12px;
}
.public-question-table.is-public {
  min-width: 900px;
}
.public-question-table th,
.public-question-table td {
  padding: 8px 7px;
  line-height: 1.45;
}
.public-question-table .col-no { width: 44px; }
.public-question-table .col-type { width: 74px; }
.public-question-table .col-source { width: 84px; }
.public-question-table .col-variation { width: 88px; }
.public-question-table .col-points { width: 54px; }
.public-question-table .col-difficulty { width: 54px; }
.public-question-table .col-key { width: 170px; }
.public-question-table.is-public .col-key { width: auto; }
.public-question-table .col-character { width: 280px; }
.public-question-table .col-strategy { width: auto; }
.public-question-table th:nth-child(-n+6),
.public-question-table td:nth-child(-n+6) {
  white-space: nowrap;
  word-break: keep-all;
  text-align: center;
}
.public-question-table th:nth-child(7),
.public-question-table td:nth-child(7),
.public-question-table th:nth-child(8),
.public-question-table td:nth-child(8),
.public-question-table th:nth-child(9),
.public-question-table td:nth-child(9) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .public-summary-grid,
  .audience-compare-panel,
  .analysis-bar {
    grid-template-columns: 1fr;
  }
  .audience-compare-actions {
    grid-column: auto;
  }
  .analysis-bar em {
    text-align: left;
  }
  .analysis-table-wrap {
    margin-inline: -4px;
  }
  .public-question-table {
    min-width: 1040px;
    font-size: 11.5px;
  }
  .public-question-table.is-public {
    min-width: 760px;
  }
  .public-question-table th,
  .public-question-table td {
    padding: 7px 6px;
  }
  .public-question-table .col-key { width: 150px; }
  .public-question-table .col-character { width: 250px; }
}

.member-detail-panel {
  border: 1px solid #b8d5cb;
  border-radius: 8px;
  padding: 16px;
  background: #fbfefd;
}
.member-detail-panel .member-detail-status {
  padding: 12px 14px;
  border: 1px solid #d5e6df;
  border-radius: 8px;
  background: #f2f8f5;
  color: #31443b;
  line-height: 1.6;
}
.member-table-wrap {
  margin-top: 12px;
}
.member-question-table {
  table-layout: fixed;
  min-width: 980px;
  font-size: 12px;
}
.member-question-table th,
.member-question-table td {
  padding: 8px 7px;
  line-height: 1.45;
}
.member-question-table .col-member-no { width: 44px; }
.member-question-table .col-member-type { width: 72px; }
.member-question-table .col-member-source { width: 94px; }
.member-question-table .col-member-variation { width: 92px; }
.member-question-table .col-member-points { width: 54px; }
.member-question-table .col-member-difficulty { width: 56px; }
.member-question-table .col-member-key { width: auto; }
.member-question-table td:nth-child(-n+6),
.member-question-table th:nth-child(-n+6) {
  text-align: center;
  white-space: nowrap;
}
.member-question-cards {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.member-question-card {
  border: 1px solid #cfe4dc;
  border-radius: 8px;
  background: #fbfffd;
  padding: 14px;
}
.member-question-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.member-question-card-head strong {
  color: #063f37;
  font-size: 15px;
  margin-right: 2px;
}
.member-question-card-head span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf7f3;
  color: #0c4d43;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.member-question-key {
  border: 1px solid #d8e9e2;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.member-question-key strong {
  display: block;
  color: #0b5d52;
  margin-bottom: 4px;
}
.member-question-key p,
.member-detail-empty {
  margin: 0;
  line-height: 1.65;
}
.member-card-detail {
  margin-top: 10px;
}
.member-card-detail > summary {
  list-style-position: inside;
}
.member-detail-row td {
  background: #f8fbfa;
  padding: 0;
  text-align: left !important;
  white-space: normal !important;
}
.member-detail-row details {
  padding: 10px 12px;
}
.source-compare-details {
  border: 1px solid #cfe4dc;
  border-radius: 8px;
  background: #f7fcfa;
}
.member-detail-row summary {
  cursor: pointer;
  color: #0b5d52;
  font-weight: 900;
  font-size: 13px;
  text-align: left;
}
.source-compare-details[open] summary {
  padding-bottom: 10px;
  border-bottom: 1px solid #dcebe6;
}
.diff-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
}
.diff-legend span {
  border-radius: 999px;
  padding: 4px 8px;
}
.legend-change {
  background: #fff1ad;
}
.legend-added {
  background: #dff5e9;
}
.legend-removed {
  background: #ffd9d9;
}
.source-detail-grid,
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.source-highlight-panel {
  background: #fffef7;
}
.source-highlight-text {
  line-height: 1.8;
  word-break: keep-all;
}
.source-highlight {
  background: #fff176;
  border-radius: 3px;
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.source-highlight-help {
  margin: 0 0 10px;
  color: #7a5a08;
  font-size: 12px;
  font-weight: 800;
}
.source-detail-single {
  margin-top: 10px;
}
.member-guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}
.member-guidance-grid article {
  min-width: 0;
  border: 1px solid #d5e6df;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  text-align: left;
}
.member-guidance-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #0b5d52;
  font-size: 12px;
  font-weight: 900;
}
.member-guidance-grid p {
  margin: 0;
  color: #293f37;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.source-detail-grid article,
.diff-grid article,
.source-detail-single article {
  min-width: 0;
  border: 1px solid #d5e6df;
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
  text-align: left;
}
.source-detail-grid h4,
.diff-grid h4,
.source-detail-single h4 {
  margin: 0 0 8px;
  color: #102c25;
  font-size: 13px;
}
.exam-original-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.exam-original-head h4 {
  margin: 0;
  font-size: 14px;
}
.exam-original-head span {
  border: 1px solid #cfe4dc;
  border-radius: 999px;
  background: #f1f8f5;
  color: #0b5d52;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  padding: 4px 9px;
  text-align: right;
  max-width: 70%;
}
.exam-original-section {
  border-top: 1px solid #e5f0eb;
  padding-top: 10px;
  margin-top: 10px;
}
.exam-original-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.exam-original-section strong {
  display: block;
  margin-bottom: 7px;
  color: #17685d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
}
.source-detail-grid p,
.diff-grid p,
.source-detail-single p {
  margin: 0;
  color: #293f37;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: left;
}
.exam-choice-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #293f37;
  line-height: 1.65;
  text-align: left;
}
.exam-choice-list li + li {
  margin-top: 4px;
}
.source-score {
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  background: #eef5f2;
  padding: 2px 7px;
  color: #61756d;
  font-size: 11px;
  font-weight: 800;
}
.source-caution,
.source-detail-grid .source-caution {
  margin-top: 8px;
  color: #9a5b00;
  font-size: 12px;
  font-weight: 800;
}
.source-unmatched-note {
  margin-top: 12px;
  border: 1px solid #eadfc4;
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
  color: #7a4b00;
  font-size: 13px;
  font-weight: 800;
}
.diff-added {
  background: #dff5e9;
  border-radius: 3px;
  padding: 0 2px;
}
.diff-change {
  background: #fff1ad;
  border-radius: 3px;
  padding: 0 2px;
}
.diff-removed {
  background: #ffd9d9;
  border-radius: 3px;
  padding: 0 2px;
  text-decoration: line-through;
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.portal-card {
  display: block;
  min-height: 150px;
  text-decoration: none;
}
.portal-card span {
  display: block;
  margin-bottom: 10px;
  color: #0b735d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.portal-card strong {
  display: block;
  margin-bottom: 10px;
  color: #10231c;
  font-size: 22px;
}
.portal-card p {
  margin: 0;
  color: #586f66;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .member-question-table {
    min-width: 900px;
    font-size: 11px;
  }
  .member-question-table .col-member-key { width: auto; }
  .member-question-card {
    padding: 12px;
  }
  .member-question-card-head {
    gap: 6px;
  }
  .member-question-card-head span {
    font-size: 11px;
    padding: 4px 7px;
  }
  .member-guidance-grid,
  .source-detail-grid,
  .diff-grid {
    grid-template-columns: 1fr;
  }
  .exam-original-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .exam-original-head span {
    max-width: none;
    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;
  }
}
