:root {
  color-scheme: light;
  --ink: #10141b;
  --muted: #68707c;
  --line: #dfe4ea;
  --soft: #f5f7f9;
  --paper: #ffffff;
  --navy: #0d2c49;
  --teal: #0a7c86;
  --red: #c43e3e;
  --shadow: 0 18px 45px rgba(16, 20, 27, 0.08);
  --page-max: 1600px;
  --page-gutter: clamp(28px, 4vw, 72px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Inter",
    "Pretendard",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.utility {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.utility__inner,
.masthead,
.category-nav,
main {
  width: min(var(--page-max), calc(100% - var(--page-gutter)));
  margin: 0 auto;
}

.utility__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  scrollbar-width: none;
}

.utility__inner span + span {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.text-button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.utility-action {
  min-height: 24px;
  flex: 0 0 auto;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  padding: 0 9px;
  background: #fff;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.utility-action.is-hidden {
  display: none;
}

.masthead {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 720px) minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 58px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--navy);
}

.brand__mark svg {
  width: 54px;
  height: 54px;
  overflow: visible;
}

.brand__q,
.brand__tail,
.brand__line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__q {
  stroke: #fff;
  stroke-width: 8;
}

.brand__tail {
  stroke: var(--teal);
  stroke-width: 8;
}

.brand__line {
  stroke: #9bd9de;
  stroke-width: 5;
}

.brand__text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.search {
  justify-self: center;
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  height: 46px;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  padding: 0 16px;
  outline: 0;
}

.search button {
  width: 48px;
  height: 100%;
  border: 0;
  background: var(--teal);
  color: #fff;
}

.search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.quick-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.quick-links button,
.quick-links a,
.category-nav a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.quick-links button,
.quick-links a {
  min-width: 58px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.category-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}

.category-nav a {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-color: transparent;
  background: transparent;
}

.category-nav a.active {
  background: var(--navy);
  color: #fff;
}

.site-header .category-nav > a,
.site-header .category-nav > a:visited {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.site-header .category-nav > a:hover,
.site-header .category-nav > a:focus-visible {
  background: #eef3f7;
  outline: none;
}

.site-header .category-nav > a.active,
.site-header .category-nav > a.active:visited {
  background: var(--navy);
  color: #fff;
}

main {
  padding: 28px 0 64px;
}

.utility__inner::-webkit-scrollbar,
.category-nav::-webkit-scrollbar {
  display: none;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.82fr) minmax(320px, 0.58fr);
  gap: 30px;
  margin-top: 12px;
}

.news-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.news-card:hover {
  transform: translateY(-2px);
}

.lead-card {
  border-bottom: 2px solid var(--ink);
}

.lead-card.is-clickable,
.news-card[href] {
  cursor: pointer;
}

.news-card[href],
.latest-panel a {
  color: inherit;
  text-decoration: none;
}

.photo {
  min-height: 150px;
  background-image: url("./assets/news-collage.png");
  background-size: 360%;
  background-repeat: no-repeat;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.photo--lead {
  min-height: 430px;
  background-position: 50% 8%;
  background-size: 118%;
}

.photo--assembly {
  background-position: 3% 92%;
}

.photo--chip {
  background-position: 33% 92%;
}

.photo--rain {
  background-position: 66% 92%;
}

.photo--sports {
  background-position: 98% 92%;
}

.photo--uploaded {
  background-size: cover;
  background-position: center;
}

.kicker {
  display: inline-flex;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.lead-card__copy {
  padding: 18px 0 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 940px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06;
  margin-top: 10px;
  letter-spacing: 0;
}

.lead-card p {
  max-width: 690px;
  margin-top: 12px;
  color: #43505e;
  font-size: 17px;
  line-height: 1.65;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.meta span + span::before {
  content: "/";
  margin-right: 10px;
  color: #a3abb4;
}

.story-column {
  display: grid;
  gap: 20px;
}

.compact-story {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.compact-story .photo {
  min-height: 122px;
}

.compact-story h2 {
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.35;
}

.compact-story p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.right-rail {
  display: grid;
  align-content: start;
  gap: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 {
  font-size: 18px;
}

.panel__head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.panel ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.panel li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f4;
}

.panel li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel time,
.ranking-panel b,
.latest-panel b {
  color: var(--teal);
  font-weight: 800;
  font-size: 13px;
}

.panel button,
.panel a {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  line-height: 1.45;
  text-decoration: none;
}

.ad-slot {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  color: var(--muted);
}

.ad-slot[hidden] {
  display: none;
}

.ad-slot:empty {
  display: none;
}

.ad-slot a {
  width: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.ad-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ad-slot iframe {
  width: 100%;
  min-height: 100%;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ad-slot--wide {
  min-height: 96px;
  margin-top: 28px;
}

.ad-slot--rail {
  min-height: 180px;
}

.topic-band,
.digest {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 24px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.5;
}

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

.topic-card {
  min-height: 102px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.topic-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.topic-card strong {
  display: block;
  margin-top: 18px;
  font-size: 20px;
}

.topic-card.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.topic-card.active span {
  color: #9bd9de;
}

.digest-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.digest-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.digest-item .photo {
  min-height: 84px;
}

.digest-item h3 {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.38;
}

.digest-item p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer {
  margin-top: 46px;
  color: #eef6f7;
  background: #0b2026;
}

.site-footer__inner {
  width: min(var(--page-max), calc(100% - var(--page-gutter)));
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: 38px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.footer-brand__mark {
  width: 42px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--navy);
}

.footer-brand__mark svg {
  width: 40px;
  height: 40px;
  overflow: visible;
}

.site-footer .footer-brand strong {
  display: block;
  margin: 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.company-info {
  max-width: 980px;
  margin: 8px 0 0;
  color: rgba(216, 229, 231, 0.82);
  font-size: 12px;
  line-height: 1.65;
}

.company-info--spaced {
  margin-top: 18px;
}

.footer-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(216, 229, 231, 0.16);
  color: #9fb4b8;
  font-size: 13px;
  font-weight: 800;
}

.footer-policy-links a {
  color: #d8e5e7;
  text-decoration: none;
}

.footer-policy-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #d8e5e7;
  font: inherit;
  font-weight: inherit;
}

.footer-policy-links a:hover,
.footer-policy-links button:hover,
.footer-policy-links button:focus-visible {
  color: #9bd9de;
  outline: none;
}

.footer-admin-link {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: #102024 !important;
  background: #9bd9de;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.page-shell {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
}

.article-layout {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 44px;
  align-items: start;
}

.masthead--simple {
  grid-template-columns: 1fr;
}

.public-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.public-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.public-form input,
.public-form select,
.public-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

.public-form textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}

.primary-action,
.button-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  border: 0;
  background: var(--navy);
  color: #fff;
}

.button-link {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.notice {
  border: 1px solid #bee4e7;
  border-radius: 8px;
  padding: 12px 14px;
  background: #eefafa;
  color: var(--teal);
  font-weight: 800;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 7, 12, 0.68);
  backdrop-filter: blur(8px);
}

.policy-panel[hidden] {
  display: none;
}

.policy-card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 34px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.policy-card .eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.policy-card h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 38px);
}

.policy-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 22px;
}

.policy-close:hover,
.policy-close:focus-visible {
  color: #fff;
  background: var(--teal);
  outline: none;
}

.article-breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.article-breadcrumb a {
  color: var(--teal);
  text-decoration: none;
}

.article-breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: #b5bdc6;
}

.article-head {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.article-summary {
  margin-top: 14px;
  color: #43505e;
  font-size: 18px;
  line-height: 1.7;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-tools {
  display: flex;
  gap: 8px;
}

.article-tools a,
.article-tools button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.article-media {
  margin: 24px 0 0;
}

.article-photo {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-image: url("./assets/news-collage.png");
  background-size: cover;
  background-position: center;
}

.article-media figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.article-ad,
.article-side-ad {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  color: #9aa4af;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.article-ad {
  min-height: 84px;
  margin-top: 24px;
}

.article-body {
  margin-top: 28px;
  color: #202833;
  font-size: 18px;
  line-height: 1.85;
}

.comments {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.article-side .panel li {
  grid-template-columns: 42px 1fr;
}

.article-side .panel a {
  color: var(--ink);
  text-decoration: none;
}

.article-side-ad {
  min-height: 250px;
}

.comment-form textarea {
  min-height: 110px;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.comment-item time,
.empty-text {
  color: var(--muted);
  font-size: 13px;
}

.comment-item p {
  margin-top: 8px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .masthead {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .quick-links {
    justify-content: flex-start;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .right-rail {
    grid-template-columns: 1fr 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .topic-grid,
  .digest-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1440px) {
  .lead-card p {
    max-width: 820px;
  }

  .panel li {
    padding: 14px 0;
  }
}

@media (max-width: 640px) {
  .utility__inner,
  .masthead,
  .category-nav,
  main,
  .site-footer__inner {
    width: min(100% - 24px, var(--page-max));
  }

  .utility__inner {
    overflow-x: auto;
    white-space: nowrap;
  }

  .brand__text {
    font-size: 30px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .home-grid {
    gap: 24px;
  }

  .photo--lead {
    min-height: 230px;
  }

  h1 {
    font-size: 34px;
  }

  .compact-story,
  .digest-item {
    grid-template-columns: 96px 1fr;
  }

  .right-rail,
  .article-side,
  .topic-grid,
  .digest-list {
    grid-template-columns: 1fr;
  }

  .article-meta-row {
    display: grid;
  }

  .article-photo {
    min-height: 260px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 6px;
  }
}
