/* AI 주간 보고 — PostX */
.post-content .postx-aiwr {
  --aiwr-accent: #1d4ed8;
  --aiwr-muted: #64748b;
  --aiwr-border: #e2e8f0;
  --aiwr-text: #1e293b;
  --aiwr-text-soft: #475569;
  --aiwr-fs-body: 0.925rem;
  --aiwr-lh: 1.72;
  margin: 0 0 2rem;
  font-size: var(--aiwr-fs-body);
  line-height: var(--aiwr-lh);
  color: var(--aiwr-text);
}

.post-content .postx-aiwr #weekly-briefing-section.postx-aiwr__briefing-scope {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.post-content .postx-aiwr #weekly-briefing-section.postx-aiwr__briefing-scope .tb-brief-panel {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
}

.post-content .postx-aiwr__hero {
  background: linear-gradient(145deg, #0c1929 0%, #1e40af 100%);
  color: #f8fafc;
  border-radius: 14px;
  padding: 1.35rem 1.6rem 1.45rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
}

.post-content .postx-aiwr__hero,
.post-content .postx-aiwr__hero * {
  color: #f1f5f9;
}

.post-content .postx-aiwr__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.post-content .postx-aiwr__week {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.85rem;
}

.post-content .postx-aiwr__headline {
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  color: #ffffff !important;
}

/* PostX 전역 h2 규칙(::before·검정) 무력화 */
.tb-main-panel .tb-postx-body.post-content .postx-aiwr__hero .postx-aiwr__headline {
  display: block;
  color: #ffffff !important;
  padding-left: 0;
  border: none;
}

.tb-main-panel .tb-postx-body.post-content .postx-aiwr__hero .postx-aiwr__headline::before {
  content: none;
  display: none;
}

.post-content .postx-aiwr__sub-block {
  margin: 1.25rem 0 0.65rem;
}

.post-content .postx-aiwr__rule {
  border: none;
  border-top: 1px solid #cbd5e1;
  margin: 0.45rem 0 0.85rem;
}

.post-content .postx-aiwr__section-rule {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 1.75rem 0 0.5rem;
}

.post-content .postx-aiwr__em,
.post-content .postx-aiwr__briefing-scope .tb-brief-em {
  color: var(--aiwr-accent);
  font-weight: 800;
}

.post-content .postx-aiwr__prose {
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--aiwr-text);
  margin-bottom: 0.65rem;
}

.post-content .postx-aiwr__prose--situation {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--aiwr-border);
  border-radius: 10px;
}

.post-content .postx-aiwr__prose p {
  margin: 0 0 0.75rem;
}

.post-content .postx-aiwr__prose p:last-child {
  margin-bottom: 0;
}

.post-content .postx-aiwr__prose strong:not(.postx-aiwr__em) {
  color: #0f172a;
  font-weight: 700;
}

.post-content .postx-aiwr__sector {
  margin: 0 0 1.15rem;
  padding: 0.65rem 0 0.85rem 0.85rem;
  border-left: 3px solid #cbd5e1;
  border-bottom: 1px dashed #e2e8f0;
}

.post-content .postx-aiwr__sector:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.post-content .postx-aiwr__sector-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.post-content .postx-aiwr__sector-themes {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.post-content .postx-aiwr__sector-body {
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--aiwr-text-soft);
}

.post-content .postx-aiwr__sector-body p {
  margin: 0 0 0.5rem;
}

.post-content .postx-aiwr__week-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

@media (max-width: 900px) {
  .post-content .postx-aiwr__week-grid {
    grid-template-columns: 1fr;
  }
}

.post-content .postx-aiwr__week-col {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.post-content .postx-aiwr__week-col--macro {
  border-top: 3px solid #2563eb;
}

.post-content .postx-aiwr__week-col--industry {
  border-top: 3px solid #059669;
}

.post-content .postx-aiwr__week-col--earnings {
  border-top: 3px solid #d97706;
}

.post-content .postx-aiwr__week-col-head {
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.post-content .postx-aiwr__week-col-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.post-content .postx-aiwr__week-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.75rem 0.65rem;
}

.post-content .postx-aiwr__week-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.post-content .postx-aiwr__week-item:last-child {
  border-bottom: none;
}

.post-content .postx-aiwr__week-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.post-content .postx-aiwr__week-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.post-content .postx-aiwr__week-item-date {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.post-content .postx-aiwr__week-item-body {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #475569;
}

.post-content .postx-aiwr__strategy-card {
  margin: 0 0 0.25rem;
  padding: 1rem 1.05rem 1.1rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.06);
}

.post-content .postx-aiwr__strategy-lede {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--aiwr-text);
  background: rgba(255, 255, 255, 0.85);
  border-left: 4px solid #ea580c;
  border-radius: 0 8px 8px 0;
}

.post-content .postx-aiwr__strategy-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 820px) {
  .post-content .postx-aiwr__strategy-pillars {
    grid-template-columns: 1fr;
  }
}

.post-content .postx-aiwr__strategy-pillar {
  padding: 0.7rem 0.75rem 0.8rem;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  min-height: 100%;
}

.post-content .postx-aiwr__strategy-pillar-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.tb-main-panel .tb-postx-body.post-content .postx-aiwr__strategy-pillar-title::before {
  content: none;
  display: none;
}

.post-content .postx-aiwr__strategy-pillar-body {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--aiwr-text-soft);
}

.post-content .postx-aiwr__strategy-follow {
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #fdba74;
}

.post-content .postx-aiwr__strategy-follow-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c2410c;
}

.post-content .postx-aiwr__strategy-follow-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--aiwr-text);
}

.post-content .postx-aiwr__strategy-follow-list li {
  margin-bottom: 0.35rem;
}

.post-content .postx-aiwr__strategy-follow-list li:last-child {
  margin-bottom: 0;
}

.post-content .postx-aiwr__strategy-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-content .postx-aiwr__strategy-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid #ffedd5;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #334155;
}

.post-content .postx-aiwr__strategy-list li:last-child {
  border-bottom: none;
}

.post-content .postx-aiwr__strategy-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #c2410c;
  background: #ffedd5;
  border-radius: 6px;
}

.post-content .postx-aiwr__strategy-text {
  flex: 1;
  min-width: 0;
}

.post-content .postx-aiwr__strategy-md {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #334155;
}

.post-content .postx-aiwr__strategy-md ul {
  margin: 0;
  padding-left: 1.1rem;
}

.post-content .postx-aiwr .postx-aiwr-compact-table-wrap,
.post-content .postx-aiwr .postx-aiwr-news-table-wrap {
  overflow-x: visible;
  margin: 0.35rem 0 0.85rem;
  max-width: 100%;
}

.post-content .postx-aiwr .postx-aiwr-compact-table {
  width: 100%;
  table-layout: fixed;
  font-size: 0.82rem;
}

.post-content .postx-aiwr .postx-aiwr-compact-table th {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.78rem;
}

.post-content .postx-aiwr .postx-aiwr-compact-table td {
  color: var(--aiwr-text-soft);
}

.post-content .postx-aiwr .postx-aiwr-compact-table th,
.post-content .postx-aiwr .postx-aiwr-compact-table td {
  white-space: normal !important;
  padding: 9px 7px !important;
  vertical-align: top;
  line-height: 1.45;
}

.post-content .postx-aiwr .postx-aiwr-compact-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.post-content .postx-aiwr .postx-aiwr-news-wrap {
  overflow-x: visible;
  margin: 0.75rem 0 1rem;
  max-width: 100%;
}

.post-content .postx-aiwr .postx-aiwr-news-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  font-size: 0.76rem;
}

.post-content .postx-aiwr .postx-aiwr-news-table th,
.post-content .postx-aiwr .postx-aiwr-news-table td {
  white-space: normal !important;
  word-break: keep-all;
  overflow-wrap: break-word;
  vertical-align: top;
  line-height: 1.4;
  padding: 7px 5px !important;
  text-align: left !important;
}

.post-content .postx-aiwr .postx-aiwr-news-table th:first-child,
.post-content .postx-aiwr .postx-aiwr-news-table td:first-child {
  width: 7%;
  font-size: 0.72rem;
  color: #64748b;
  padding-right: 4px !important;
}

.post-content .postx-aiwr .postx-aiwr-news-table th:nth-child(2),
.post-content .postx-aiwr .postx-aiwr-news-table td:nth-child(2) {
  font-weight: 600;
  color: #0f172a;
}

.post-content .postx-aiwr .postx-aiwr-news-table th:nth-child(3),
.post-content .postx-aiwr .postx-aiwr-news-table td:nth-child(3) {
  color: #475569;
}

.post-content .postx-aiwr .postx-aiwr-news-table th:nth-child(4),
.post-content .postx-aiwr .postx-aiwr-news-table td:nth-child(4) {
  font-size: 0.72rem;
  color: #64748b;
}

.post-content .postx-aiwr__meta {
  font-size: 0.8rem;
  margin-top: 0.75rem;
  opacity: 0.82;
  color: #cbd5e1 !important;
}

.post-content .postx-aiwr__band {
  margin: 1.75rem 0 1rem;
  padding: 0.65rem 0 0.5rem;
  border-bottom: 2px solid var(--aiwr-accent);
}

.post-content .postx-aiwr__band-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
}

.post-content .postx-aiwr__band-sub {
  font-size: 0.82rem;
  color: var(--aiwr-muted);
  margin-top: 0.2rem;
}

.post-content .postx-aiwr h3,
.post-content .postx-aiwr h4 {
  color: #0f172a;
  font-weight: 700;
}

.tb-main-panel .tb-postx-body.post-content .postx-aiwr hr {
  border: none;
  border-top: 1px solid #cbd5e1;
  margin: 1.75rem 0 1.25rem;
}

.tb-main-panel .tb-postx-body.post-content .postx-aiwr h3 + p,
.tb-main-panel .tb-postx-body.post-content .postx-aiwr h3 + div {
  margin-top: 0.35rem;
}

.post-content .postx-aiwr__sub-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.35rem 0 0.65rem;
  padding: 0;
  border: none;
}

.tb-main-panel .tb-postx-body.post-content .postx-aiwr__sub-title::before {
  content: none;
  display: none;
}

.post-content .postx-aiwr__summary-box {
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1rem;
  background: #f1f5f9;
  border: 1px solid var(--aiwr-border);
  border-left: 4px solid var(--aiwr-accent);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #334155;
}

.post-content .postx-aiwr__summary-box p {
  margin: 0;
}

.post-content .postx-aiwr__risk-lead {
  font-size: 0.8rem;
  color: var(--aiwr-muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.post-content .postx-aiwr__risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .post-content .postx-aiwr__risk-grid {
    grid-template-columns: 1fr;
  }
}

.post-content .postx-aiwr__risk-card {
  border: 1px solid var(--aiwr-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.post-content .postx-aiwr__risk-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.post-content .postx-aiwr__risk-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.post-content .postx-aiwr__risk-card-sev {
  flex-shrink: 0;
  min-width: 1.65rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
}

.post-content .postx-aiwr__risk-card-sev[data-sev='1'],
.post-content .postx-aiwr__risk-card-sev[data-sev='2'] {
  background: #fee2e2;
  color: #b91c1c;
}

.post-content .postx-aiwr__risk-card-sev[data-sev='3'] {
  background: #fef3c7;
  color: #b45309;
}

.post-content .postx-aiwr__risk-card-sev[data-sev='4'],
.post-content .postx-aiwr__risk-card-sev[data-sev='5'] {
  background: #dcfce7;
  color: #15803d;
}

.post-content .postx-aiwr__risk-card-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #475569;
}

.post-content .postx-aiwr__brief-panel .tb-brief-strategy {
  margin-top: 0.25rem;
}

.post-content .postx-aiwr__checklist {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.post-content .postx-aiwr__checklist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.35rem;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
}

.post-content .postx-aiwr__checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--aiwr-accent);
}

/* closing_wrap — strategy_section 안 tail 로만 사용 */

.post-content .postx-aiwr .postx-echart {
  margin: 0.75rem 0 1.25rem;
  border: 1px solid var(--aiwr-border);
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 640px) {
  .post-content .postx-aiwr {
    font-size: 0.9rem;
  }

  .post-content .postx-aiwr__hero {
    padding: 1rem 1.05rem 1.1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
  }

  .post-content .postx-aiwr__headline {
    font-size: 1.18rem;
    line-height: 1.45;
  }

  .post-content .postx-aiwr__prose--situation {
    padding: 0.7rem 0.8rem;
  }

  .post-content .postx-aiwr .postx-aiwr-compact-table-wrap,
  .post-content .postx-aiwr .postx-aiwr-news-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding-bottom: 0.25rem;
  }

  .post-content .postx-aiwr .postx-aiwr-compact-table,
  .post-content .postx-aiwr .postx-aiwr-news-table {
    min-width: 520px;
  }

  .tb-main-panel .tb-postx-body.post-content .postx-aiwr h3 {
    padding: 8px 10px 9px;
    margin-top: 1.65rem !important;
    margin-bottom: 0.75rem !important;
  }

  .post-content .postx-aiwr__briefing-scope .tb-brief-grid {
    grid-template-columns: 1fr;
  }

  .post-content .postx-aiwr .postx-echart {
    min-height: 280px;
  }
}
