/* 정보 공간 공개 목록·상세 — flat 단색, 그라데이션·이모지 없음 */
/* 목록 히어로 = pf.css exact 패리티 (구조·수치·Aggravo SVG) */

/* ── Aggravo (pf.css L13–32 exact) ── */
@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroL.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroM.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Aggravo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/SBAggroB.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

/* list page only — rem parity with pf (2.4rem ≈ 24px) */
html:has(.info-space-list-page) {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

.info-space-page {
  background: #ffffff;
  color: #111827;
  min-height: 100vh;
}

/* list: hero top 230px clears header — main pt 0 */
.info-space-list-page .info-space-main {
  padding-top: 0;
  padding-bottom: 64px;
}

/* detail: restore top padding for fixed header */
.info-space-main {
  padding-top: 92px;
  padding-bottom: 64px;
}

.info-space-detail-page .info-space-main {
  padding-top: 92px;
  padding-bottom: 64px;
}

/* ============================================================
   HERO SECTION — pf exact values
   ============================================================ */
.info-space-hero {
  padding: 200px 0 80px;
  position: relative;
  background: #ffffff;
  border-bottom: 0;
}

/* ── Grid Background (pf: gradient commented out) ── */
.info-space-hero-grid {
  /* background-image:
    linear-gradient(to right, #eee 1px, transparent 1px),
    linear-gradient(to bottom, #eee 1px, transparent 1px); */
  background-size: 60px 60px;
}

/* pf: .pofol-hero-inner + .con-inner (header.css: max 1400, pad 0 20) */
.info-space-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ── SVG Fill Title ── */
.info-space-fill-title {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.info-space-svg-title {
  width: auto;
  height: clamp(6rem, 8vw, 11rem);
  overflow: visible;
  display: block;
}

.info-space-svg-stroke {
  font-family: 'Aggravo', sans-serif;
  font-size: 90px;
  font-weight: 500;
  fill: none;
  stroke: #333;
  stroke-width: 1.5;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-space-svg-stroke.active {
  animation: infoSpaceStrokeDraw 2.0s ease-out forwards;
}

.info-space-svg-solid {
  font-family: 'Aggravo', sans-serif;
  font-size: 90px;
  font-weight: 500;
  fill: #333;
  clip-path: inset(0 100% 0 0);
}

.info-space-svg-solid.active {
  animation: infoSpaceSolidFill 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes infoSpaceStrokeDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes infoSpaceSolidFill {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

.info-space-display-title {
  font-family: 'Aggravo', sans-serif;
  font-size: clamp(6rem, 8vw, 11rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  color: #333;
  margin: 0;
}

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

.info-space-subtitle {
  margin-top: 30px;
  margin-bottom: 0;
  font-size: 2.4rem;
  line-height: 1.6;
  color: #666;
  word-break: keep-all;
}

.info-space-search {
  position: relative;
  width: min(100%, 760px);
  margin-top: 28px;
}

.info-space-search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}

.info-space-search-box::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23919aa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  pointer-events: none;
}

.info-space-search-form { 
  border-radius: 18px;
  background: #fff;
  margin: 0;
  margin-top: 20px;
  box-sizing: border-box;
}

.info-space-search-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  white-space: normal;
}

.info-space-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-space-search-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px 0 44px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 10px;
  background: #fff;
  color: #0e0f14;
  font-size: 1.6rem;
  line-height: 1;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.info-space-search-input::placeholder {
  color: rgba(14, 15, 20, .34);
}

.info-space-search-input:focus {
  outline: none;
  border-color: rgba(91, 110, 245, .45);
}

.info-space-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #0e0f14;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
  word-break: keep-all;
  cursor: pointer;
  flex-shrink: 0;
}

.info-space-search-btn:hover,
.info-space-search-btn:focus-visible {
  background: #1a1f29;
}

.info-space-search-hint {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1.3rem;
  line-height: 1.5;
  color: #7a7f87;
}

/* List section — 히어로 inner와 동일 폭 */
.info-space-list-sec {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 20px 0;
}

.info-space-section-head {
  margin-bottom: 20px;
}

.info-space-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

.info-space-search-result-meta {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7280;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-space-search-result-count {
  margin-left: 6px;
  font-weight: 600;
  color: #374151;
}

.info-space-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .info-space-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .info-space-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.info-space-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  overflow: hidden;
}

.info-space-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  justify-content: center;
}

.info-space-card-link:hover .info-space-card-title,
.info-space-card-link:focus-visible .info-space-card-title {
  color: #0c1118;
}

.info-space-card-link:focus-visible {
  outline: 2px solid #0c1118;
  outline-offset: 2px;
}

.info-space-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  overflow: hidden;
}

.info-space-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 썸네일 없음: 이미지 영역 미출력, 텍스트만 */
.info-space-card.is-no-thumb .info-space-card-body {
  padding-top: 20px;
  padding: 20px 40px 20px;
}

.info-space-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 25px;
  min-width: 0;
}

.info-space-card-title {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.info-space-card-date {
  font-size: 15px;
  font-weight: 400;
  color: #6b7280;
  white-space: nowrap;
}

.info-space-empty {
  padding: 48px 16px;
  text-align: center;
  font-size: 15px;
  color: #6b7280;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  background: #f9fafb;
}

.info-space-empty-msg {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
}

.info-space-empty-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #0c1118;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
}

.info-space-empty-clear:hover {
  background: #1f2937;
}

.info-space-empty-clear:focus-visible {
  outline: 2px solid #0c1118;
  outline-offset: 2px;
}

/* ============================================================
   DETAIL — 헤더 + 본문 + 이전/다음(1열)
   ============================================================ */
.info-space-detail {
  width: 100%;
  margin: 0;
  padding: 0;
}

.info-space-detail-header {
  background: #ffffff;
  padding: 20px 20px 0;
}

.info-space-detail-header-inner,
.info-space-detail-body-inner,
.info-space-detail-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  min-width: 0;
}

.info-space-detail-header-inner {
  border-bottom:1px solid #eee;
  padding-bottom:30px;
}

.info-space-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 28px;
  margin-left: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #8b919a;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
  transition: color 0.15s ease;
}

.info-space-back-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

.info-space-back:hover,
.info-space-back:focus-visible {
  color: #111827;
}

.info-space-back:focus-visible {
  outline: 2px solid #0c1118;
  outline-offset: 3px;
  border-radius: 2px;
}

.info-space-detail-title {
  margin: 0;
  margin-left: 10px;
  max-width: 36em;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.025em;
  color: #0e0f14;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.info-space-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 15px 10px;
  border-top: 1px solid #f0f1f4;
  border-bottom: 1px solid #f0f1f4;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
}

.info-space-detail-meta-label {
  font-weight: 500;
  color: #9ca3af;
}

.info-space-detail-date {
  font-variant-numeric: tabular-nums;
  color: #4b5563;
  font-weight: 500;
}

.info-space-detail-body {
  padding: 40px 20px 12px;
  background: #ffffff;
}

.info-space-detail-thumb {
  margin: 0 0 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e8eb;
  background: #f3f4f6;
}

.info-space-detail-thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.info-space-detail-content {
  margin-bottom: 0;
  padding: 0 10px;
  font-size: 16px;
  line-height: 1.75;
  color: #1f2937;
  min-width: 0;
}

/* style.css `p { margin:0 }` 등 레거시 리셋보다 우선 — 문단 간격 강제 */
.info-space-detail-content p {
  margin: 0 0 1.15em !important;
  padding: 0;
}

.info-space-detail-content p:last-child {
  margin-bottom: 0 !important;
}

/* 굵은 소제목 전용 문단 (엔터로 분리된 타이틀 역할) */
.info-space-detail-content p.is-subtitle {
  margin: 1.5em 0 0.45em !important;
  font-size: 1.05em;
  line-height: 1.4;
  color: #111827;
}

.info-space-detail-content p.is-subtitle + p {
  margin-top: 0.15em !important;
}

.info-space-detail-content h1,
.info-space-detail-content h2,
.info-space-detail-content h3,
.info-space-detail-content h4 {
  margin: 1.55em 0 0.65em !important;
  padding: 0;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.info-space-detail-content h1 { font-size: 1.35em; }
.info-space-detail-content h2 { font-size: 1.22em; }
.info-space-detail-content h3 { font-size: 1.1em; }
.info-space-detail-content h4 { font-size: 1.05em; }

.info-space-detail-content h2:first-child,
.info-space-detail-content h3:first-child {
  margin-top: 0.4em !important;
}

.info-space-detail-content ul,
.info-space-detail-content ol {
  margin: 0 0 1.15em !important;
  padding-left: 1.45em !important;
  list-style-position: outside;
}

.info-space-detail-content ul {
  list-style-type: disc !important;
}

.info-space-detail-content ol {
  list-style-type: decimal !important;
}

.info-space-detail-content li {
  margin: 0 0 0.7em !important;
  padding: 0;
  line-height: 1.65;
  list-style: inherit !important;
}

.info-space-detail-content li:last-child {
  margin-bottom: 0.2em !important;
}

/* 리스트 안 굵은 라벨 + 줄바꿈 본문 */
.info-space-detail-content li strong {
  display: inline;
  font-weight: 700;
  color: #111827;
}

.info-space-detail-content li br {
  display: block;
  content: "";
  margin-top: 0.2em;
}

.info-space-detail-content blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-left: 3px solid #0c1118;
  background: #f7f8fa;
  color: #374151;
}

.info-space-detail-content a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-space-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

.info-space-detail-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
}

.info-space-detail-content th,
.info-space-detail-content td {
  border: 1px solid #e5e8eb;
  padding: 8px 10px;
  text-align: left;
  word-break: break-word;
}

.info-space-detail-content th {
  background: #f7f8fa;
  font-weight: 600;
}

.info-space-detail-footer {
  padding: 32px 20px 56px;
  background: #ffffff;
}

/* 이전/다음: 1열 2행 */
.info-space-detail-pager {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #eceef2;
  border-bottom: 1px solid #eceef2;
}

.info-space-pager-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  min-width: 0;
  min-height: 56px;
  padding: 20px 10px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f0f1f4;
  transition: background-color 0.15s ease;
}

.info-space-pager-item:last-child {
  border-bottom: none;
}

a.info-space-pager-item:hover,
a.info-space-pager-item:focus-visible {
  background: #fafbfc;
}

a.info-space-pager-item:focus-visible {
  outline: 2px solid #0c1118;
  outline-offset: -2px;
}

.info-space-pager-item.is-empty {
  opacity: 0.4;
  cursor: default;
}

.info-space-pager-label {
  font-size: 15px;
  font-weight: 500;
  color: #8b919a;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.info-space-pager-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.info-space-pager-title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: #0e0f14;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

.info-space-pager-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #c4c8d0;
}

a.info-space-pager-item:hover .info-space-pager-chevron,
a.info-space-pager-item:focus-visible .info-space-pager-chevron {
  color: #6b7280;
}

.info-space-detail-bottom {
  display: flex;
  justify-content: center;
  padding-top: 32px;
}

.info-space-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #0e0f14;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.info-space-list-btn:hover,
.info-space-list-btn:focus-visible {
  background: #f7f8fa;
  border-color: #c5cad3;
}

.info-space-list-btn:focus-visible {
  outline: 2px solid #0c1118;
  outline-offset: 2px;
}

/* ── prefers-reduced-motion: instant filled title ── */
@media (prefers-reduced-motion: reduce) {
  html:has(.info-space-list-page) {
    scroll-behavior: auto;
  }

  .info-space-svg-stroke,
  .info-space-svg-stroke.active {
    stroke-dashoffset: 0;
    animation: none !important;
  }

  .info-space-svg-solid,
  .info-space-svg-solid.active {
    clip-path: inset(0 0% 0 0);
    animation: none !important;
  }

  .info-space-page *,
  .info-space-page *::before,
  .info-space-page *::after {
    transition: none !important;
  }
}

/* ── ≤ 1280px (pf exact hero/search) ── */
@media (max-width: 1280px) {
  .info-space-hero { padding: 200px 0 80px; }
  .info-space-subtitle { font-size: 2.0rem; }
  .info-space-search { margin-top: 24px; }
  .info-space-search-form { padding: 16px 18px 14px; }
  .info-space-search-input { height: 48px; padding-left: 42px; font-size: 1.5rem; }
  .info-space-search-btn { min-height: 48px; padding: 0 16px; }
}

/* ── ≤ 1024px ── */
@media (max-width: 1024px) {
  .info-space-hero { padding: 150px 0 60px; }
  .info-space-subtitle { font-size: 1.8rem; }
  .info-space-search { width: 100%; }
  .info-space-search-row { flex-direction: column; align-items: stretch; }
  .info-space-search-btn { width: 100%; }
}

/* ── ≤ 768px ── */
@media (max-width: 768px) {
  .info-space-hero { padding: 140px 0 50px; }
  .info-space-hero-inner { padding: 0 20px; }
  .info-space-display-title { font-size: clamp(4rem, 10vw, 6rem); }
  .info-space-fill-title { display: block; width: 100%; max-width: 100%; }
  .info-space-svg-title { width: 100%; height: auto; }
  .info-space-subtitle { font-size: 1.6rem; margin-top: 20px; }
  .info-space-search { margin-top: 20px; }
  .info-space-search-form { padding: 14px 14px 12px; border-radius: 16px; }
  .info-space-search-box::before { left: 14px; width: 16px; height: 16px; background-size: 16px 16px; }
  .info-space-search-input { height: 46px; padding-left: 38px; font-size: 1.4rem; border-radius: 12px; }
  .info-space-search-btn { min-height: 46px; border-radius: 12px; font-size: 1.4rem; }
  .info-space-search-hint { font-size: 1.2rem; }

  .info-space-list-sec {
    padding: 28px 16px 0;
  }

  .info-space-detail-header {
    padding: 16px 16px 28px;
  }

  .info-space-back {
    margin-bottom: 22px;
  }

  .info-space-detail-title {
    font-size: 22px;
  }

  .info-space-detail-meta {
    margin-top: 14px;
    padding: 15px 10px;
  }

  .info-space-detail-body {
    padding: 28px 16px 8px;
  }

  .info-space-detail-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .info-space-detail-footer {
    padding: 24px 16px 44px;
  }

  .info-space-pager-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 14px 2px;
  }

  .info-space-pager-title {
    font-size: 14px;
  }

  /* detail keeps header clearance on small screens */
  .info-space-detail-page .info-space-main {
    padding-top: 80px;
  }
}

/* ── ≤ 480px ── */
@media (max-width: 480px) {
  .info-space-hero { padding: 130px 0 36px; }
  .info-space-hero-inner { padding: 0 20px; }
  .info-space-display-title { font-size: clamp(3.2rem, 10vw, 4.8rem); }
  .info-space-svg-title { width: 100%; }
  .info-space-subtitle { font-size: 1.4rem; margin-top: 16px; }
  .info-space-search { margin-top: 18px; }
  .info-space-search-form { padding: 12px 12px 10px; border-radius: 14px; }
  .info-space-search-box::before { left: 12px; }
  .info-space-search-input { height: 44px; padding-left: 36px; font-size: 1.35rem; border-radius: 10px; }
  .info-space-search-btn { min-height: 44px; border-radius: 10px; }
  .info-space-search-hint { font-size: 1.1rem; }
}
