:root,:root[data-nb-theme=dark]{color-scheme:light;--bg:#fff;--card:#fff;--ink:#222;--muted:#5c5c58;--line:#e4e4e1;--accent:#222;--pale:#f4f4f2;--signal:#222;--soft:#f4f4f2}body{background:#fff;color:#222;font-family:'IBM Plex Sans KR',sans-serif;font-size:16px;line-height:1.6}header,main{max-width:1168px;padding-left:24px;padding-right:24px}a{color:#222}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #222;outline-offset:3px}.nuguna-header{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid #e4e4e1;padding-top:18px;padding-bottom:18px}.brand-link{display:flex;align-items:center}.brand-link img{height:32px;width:auto}.site-nav{margin:0;padding:0;border:0;display:flex;align-items:center;gap:24px;overflow:visible}.site-nav a,.learn-menu summary{font-size:15px;font-weight:600;color:#222;text-decoration:none;padding:5px 0;cursor:pointer}.learn-menu{position:relative}.learn-menu summary{list-style:none}.learn-menu summary::-webkit-details-marker{display:none}.learn-menu div{position:absolute;right:0;top:100%;z-index:5;background:#fff;border:1px solid #e4e4e1;min-width:210px;padding:10px 16px}.learn-menu div a{display:block;padding:9px 0;white-space:nowrap}.service-home{padding:0}.service-hero{padding:56px 0 40px;display:flex;flex-wrap:wrap;gap:40px;align-items:flex-end;border:0}.hero-copy{flex:1 1 380px;min-width:0}.hero-copy h1{font-size:clamp(36px,5vw,52px);line-height:1.15;letter-spacing:-.035em;margin:12px 0 18px}.hero-copy p{color:#5c5c58;margin:0}.hero-copy p:last-child{font-size:18px;max-width:30em}.service-map{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:18px}.map-line{display:flex;gap:14px;align-items:center}.map-line strong{width:96px;flex:0 0 96px;font-size:13px}.map-line strong:before{content:'';display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--route);margin-right:8px}.map-stations{display:flex;flex-wrap:wrap;gap:8px 0}.map-stations a{display:flex;align-items:center;font-size:14px;font-weight:500;text-decoration:none;white-space:nowrap}.map-stations a:before{content:'';width:12px;height:12px;border-radius:50%;border:4px solid var(--route);margin-right:6px}.service-block{padding:8px 0 56px}.service-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.filter-chip{font:600 15px inherit;font-family:inherit;font-size:15px;min-height:44px;padding:0 18px;border:1px solid #d2d2ce;border-radius:999px;background:#fff;color:#222;cursor:pointer}.filter-chip[aria-pressed=true]{background:#222;color:#fff;border-color:#222}.service-rows{border-top:2px solid #222}.service-row{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;padding:20px 0;border-bottom:1px solid #e4e4e1;scroll-margin-top:20px}.service-info{flex:1 1 300px;min-width:0;display:flex;gap:14px;align-items:flex-start}.route-dot{flex:none;width:16px;height:16px;border:4px solid var(--route);border-radius:50%;margin-top:7px}.service-info details summary{font-size:20px;line-height:1.35;font-weight:700;cursor:pointer}.service-info p{margin:3px 0 0;font-size:15px;color:#5c5c58}.service-tags{flex:0 1 260px;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px}.task-tag,.price-tag{padding:3px 10px;border-radius:999px;background:#f4f4f2;font-weight:600}.price-tag{color:#14572b;background:#e6f4ea}.platform-tag{color:#5c5c58}.service-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;border-radius:8px;background:#222;color:#fff;text-decoration:none;font-size:15px;font-weight:600}.coming-label{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1.5px dashed #e8731a;border-radius:8px;color:#87400a;font-size:15px;font-weight:600}.score-section{padding:48px 0 56px;border-top:1px solid #e4e4e1;border-bottom:0}.score-heading{display:flex;flex-wrap:wrap;gap:8px 32px;justify-content:space-between;align-items:baseline;margin-bottom:28px}.score-heading h2{font-size:32px}.score-heading p,.score-row p,.score-note,.score-row small{color:#5c5c58}.score-row{display:flex;flex-wrap:wrap;gap:10px 32px;align-items:center;margin:0 0 28px}.score-row>div:first-child{flex:1 1 260px;min-width:0}.score-row p{font-size:14px;margin:0}.score-row strong{font-size:20px}.score-row small{display:block;font-size:14px}.rank-graphic{flex:2 1 420px;min-width:0}.rank-line{position:relative;height:28px}.rank-line:before,.rank-fill{content:'';position:absolute;left:0;right:0;top:12px;height:5px;background:#e4e4e1}.rank-fill{right:auto;width:var(--position);background:#222}.rank-dot{position:absolute;top:6px;left:var(--position);width:18px;height:18px;transform:translateX(-50%);border:4px solid #222;background:#fff;border-radius:50%}.rank-ends{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:#5c5c58}.score-note{font-size:14px}.nuguna-footer{background:#f4f4f2;max-width:none;border:0;padding:0;color:#45453f}.nuguna-footer>div{max-width:1168px;padding:32px 24px 40px;margin:auto;display:flex;flex-wrap:wrap;gap:16px 40px;justify-content:space-between;font-size:14px}.nuguna-footer nav{display:flex;flex-wrap:wrap;gap:8px 24px}.nuguna-footer p{margin:0}.tablewrap{max-width:100%;overflow:visible}.tablewrap th,.tablewrap td{white-space:nowrap}
.map-stations a{position:relative;padding-left:14px}.map-stations a:after{position:absolute;content:"";left:0;top:50%;width:14px;height:4px;background:var(--route);transform:translateY(-50%)}.filter-chip{font-weight:600}
/* The page scrolls; tables reflow instead of creating internal scroll areas. */
.tablewrap,.trend-table-wrap,.site-nav{overflow:visible}.trend-table-wrap table,.coverage table,main table{min-width:0;max-width:100%}main table{table-layout:auto;overflow-wrap:anywhere}main th,main td{white-space:normal;overflow-wrap:anywhere}.arena-layout{grid-template-columns:minmax(0,1fr)!important}.service-notice{font-size:14px;color:#5c5c58}.table-expand{margin:16px 0;min-height:44px;padding:0 18px;background:#fff;color:#222;border:1px solid #777;border-radius:6px;cursor:pointer;font:inherit}.table-expand:focus-visible{outline:3px solid #222;outline-offset:3px}
@media(max-width:700px){main table,main tbody,main tbody tr{display:block;width:100%;min-width:0}main thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);white-space:nowrap}main tbody tr{padding:10px 0;border-bottom:1px solid #e4e4e1}main tbody tr[hidden]{display:none!important}main tbody td,main tbody th{display:grid;grid-template-columns:minmax(75px,0.7fr) minmax(0,2fr);gap:8px;text-align:left!important;border:0;padding:4px 0;white-space:normal!important}main tbody td:before,main tbody th:before{content:attr(data-label);font-weight:600;color:#5c5c58}main tbody td[data-label=""]:before,main tbody th[data-label=""]:before{content:none}.trend-table-wrap th,.trend-table-wrap td{padding:4px 0}main caption{display:block}}
.model-maker:before{content:' · '}
@media(max-width:700px){.arena-ranking tbody tr:not(:has(.ranking-gap)){display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 10px}.arena-ranking tbody tr:not(:has(.ranking-gap)) td:nth-child(1){grid-column:1;grid-row:1;display:block;font-weight:700}.arena-ranking tbody tr:not(:has(.ranking-gap)) td:nth-child(1):before{content:none}.arena-ranking tbody tr:not(:has(.ranking-gap)) td:nth-child(2){display:contents}.arena-ranking .model-title{grid-column:2 / 4;grid-row:1;font-weight:700}.arena-ranking .model-maker{grid-column:1 / 3;grid-row:2;color:#5c5c58}.arena-ranking .model-maker:before{content:none}.arena-ranking tbody tr:not(:has(.ranking-gap)) td:nth-child(3){grid-column:3;grid-row:2;display:block;text-align:right!important}.arena-ranking tbody tr:not(:has(.ranking-gap)) td:nth-child(4){grid-column:1 / 3;grid-row:3;display:block}.arena-ranking tbody tr:not(:has(.ranking-gap)) td:nth-child(5){grid-column:3;grid-row:3;display:block;text-align:right!important}.arena-ranking tbody td:nth-child(n+3):before{display:inline;margin-right:4px}}
@media(max-width:700px){main thead{display:block;overflow:hidden;clip:rect(0,0,0,0)}.arena-ranking tbody td:nth-child(2):before{content:none}}
.table-column-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){main thead{display:none}.arena-ranking tbody td:nth-child(2):before{display:none}}
.table-column-label{display:none}@media(max-width:700px){.table-column-label{display:inline}}
@media(max-width:700px){.arena-ranking tbody tr:not(:has(.ranking-gap)){grid-template-columns:minmax(36px,auto) minmax(0,1fr) minmax(0,1fr)}.arena-ranking tbody td:nth-child(3):before{content:'발표 '}.arena-ranking tbody td:nth-child(4),.arena-ranking tbody td:nth-child(5){white-space:nowrap!important}main tbody td[data-label=""],main tbody th[data-label=""]{display:block}}
.tablewrap th,.tablewrap td{white-space:normal}.arena-ranking th:nth-child(1){width:7%}.arena-ranking th:nth-child(2){width:39%}.arena-ranking th:nth-child(3){width:23%}.arena-ranking th:nth-child(4){width:14%}.arena-ranking th:nth-child(5){width:17%}

/* Consistent alignment and table treatment across all views. */
[hidden]{display:none!important}
.service-action-wrap{flex:0 0 166px;display:flex;justify-content:flex-end;align-items:center}
.service-action,.coming-label{min-height:44px;max-width:100%;text-align:center;justify-content:center}
main tbody tr,main tbody td,main tbody th{background:transparent!important}
main tbody tr.korean,main tbody tr:has(.model-title.korean){background:#f4f4f2!important}
@media(max-width:700px){.service-action-wrap{flex:0 0 auto;margin-left:auto}.service-row{align-items:center}.service-info{flex-basis:100%}.service-tags{flex:1 1 170px;min-width:0}.coming-label{padding:0 10px;font-size:13px}}

@media(max-width:700px){.trend-axis{font-size:18px}.trend-chart svg,.arena-history-chart svg{max-width:100%;height:auto}}

/* SVG font sizes are in viewBox units and scale down on phones. */
@media(max-width:700px){.trend-chart .trend-axis,.arena-history-chart .trend-axis{font-size:32px}.map-line strong{white-space:nowrap}}
.hero-copy p:last-child{max-width:34em;word-break:keep-all}.service-description,.service-notice{word-break:keep-all;overflow-wrap:anywhere}

/* Keep the current view legible on paper without changing on-screen navigation. */
@media print {
  @page { margin: 15mm; }
  html,body { background:#fff !important; color:#111 !important; }
  body { font-size:10pt; line-height:1.45; }
  header,main,footer { max-width:none; margin:0; padding:0; }
  .nuguna-header { border:0; padding:0 0 10pt; }
  .nuguna-header .site-nav,.service-filters,.service-action-wrap,.table-expand,.nuguna-footer,button { display:none !important; }
  .brand-link img { height:22pt; }
  .view-heading,.service-hero,.trend-page,section { padding-top:10pt; padding-bottom:10pt; }
  .service-row { padding:8pt 0; break-inside:avoid; }
  .service-hero,.trend-intro,.score-row { gap:10pt; }
  .card,.trend-card,.arena-layout article { box-shadow:none; }
  h1,h2,h3 { break-after:avoid; }
  main table { display:table; width:100%; min-width:0; table-layout:auto; font-size:9pt; }
  main thead { display:table-header-group !important; position:static; width:auto; height:auto; clip:auto; clip-path:none; }
  main tbody { display:table-row-group; }
  main tbody tr,main .arena-ranking tbody tr:not(:has(.ranking-gap)) { display:table-row; break-inside:avoid; }
  main tbody td,main tbody th,main .arena-ranking tbody tr:not(:has(.ranking-gap)) td { display:table-cell; white-space:normal !important; padding:4pt; }
  main tbody td:before,main tbody th:before { content:none !important; }
  .arena-ranking .model-title,.arena-ranking .model-maker { display:inline; }
  .trend-chart,.arena-history-chart { break-inside:avoid; }
  .trend-chart svg,.arena-history-chart svg { max-width:100%; height:auto; }
  .evidence,.trend-credit { color:#222; }
  [hidden] { display:none !important; }
}

/* Give long model names more room in desktop evaluation tables. */
@media screen and (min-width:701px){
  #mathbench table th:nth-child(1),#truebench table th:nth-child(1){width:44%}
  #mathbench table th:nth-child(2),#truebench table th:nth-child(2){width:13%}
  #mathbench table th:nth-child(3),#truebench table th:nth-child(3){width:15%}
  #mathbench table th:nth-child(4),#truebench table th:nth-child(4){width:28%}
}

.arena-summary{margin:12px 0 0;color:#5c5c58;font-size:14px;line-height:1.6;word-break:keep-all}

/* Keep Arena heading, source date and context on one left edge. */
#arena .sectionhead{display:block;margin-bottom:0}
#arena .arena-meta{margin:6px 0 0;color:#5c5c58;font-size:14px}
#arena .arena-summary{margin:12px 0 0}
#arena [role="status"]{margin:8px 0 0;color:#5c5c58;font-size:14px}

/* Keep mobile table labels readable without taking space from their values. */
@media screen and (max-width:700px){main tbody td,main tbody th{grid-template-columns:minmax(100px,0.7fr) minmax(0,2fr)}}

.map-line .line-filter{width:110px;flex:0 0 110px;font-family:inherit;font-size:13px;font-weight:600;text-align:left;border:0;background:transparent;color:#222;cursor:pointer;padding:8px 0}.map-line .line-filter:before{content:"";display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--route);margin-right:8px}.line-filter[aria-pressed=true]{font-weight:700;text-decoration:underline;text-underline-offset:4px}.service-filters>.line-filter{border:1px solid #d2d2ce;background:white;border-radius:999px;font-family:inherit;font-size:15px;font-weight:600;padding:9px 18px;cursor:pointer}.site-nav summary[aria-current=page]{text-decoration:underline;text-underline-offset:6px}

.modoo-banner{margin-top:20px!important;font-size:15px!important;max-width:none!important}.modoo-banner a{display:inline-block;background:#f4f4f2;padding:10px 14px;text-decoration:none;border-left:3px solid #e8731a}.service-sort-note{font-size:14px;color:#5c5c58;margin-top:16px}.site-nav{flex-wrap:wrap;column-gap:20px;row-gap:4px}.site-nav a[aria-current=page]{text-decoration:underline;text-underline-offset:6px}

/* Shared page shell: independent pages use the same alignment as the home page. */
*,*::before,*::after{box-sizing:border-box}
body{margin:0}
.nuguna-header,main{margin-left:auto;margin-right:auto}

/* One shared selection marker for every top-level menu item. */
.site-nav>a,.site-nav>.learn-menu>summary{border-bottom:2px solid transparent;text-decoration:none;padding:5px 0}
.site-nav>a[aria-current=page],.site-nav>.learn-menu>summary[aria-current=page]{border-bottom-color:#222;text-decoration:none}

/* The first title on every page starts on the same grid line. */
.service-hero{padding-top:48px;align-items:flex-start}
.hero-copy h1,.view-heading h2,.modoo-page h1{font-size:clamp(34px,4vw,48px);line-height:1.2;letter-spacing:-.05em;margin:0 0 18px}
.hero-copy #service-count{font-size:14px;margin:0 0 10px}
.view-heading{padding-top:48px}
.modoo-page{padding-top:48px}
@media(max-width:760px){.service-hero,.view-heading,.modoo-page{padding-top:36px}}

/* Submenu selection uses one text underline, not the top-level border. */
.site-nav .learn-menu div a{border:0;text-decoration:none}
.site-nav .learn-menu div a[aria-current=page]{border:0;text-decoration:underline;text-underline-offset:4px}

/* A date is secondary text immediately following the page title. */
.hero-copy #service-count,.modoo-page .page-meta{font-family:inherit;font-size:14px;font-weight:400;line-height:1.6;color:#5c5c58;margin:0 0 10px}

@media (min-width: 1000px) { .hero-copy h1 { font-size: 42px; } }
