@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --canvas-bg: #f6f8f7;
  --chart-white: #ffffff;
  --teal-900: #134e4a;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-50: #f0fdfa;
  --teal-200: #99f6e4;
  --coral-600: #e11d48;
  --coral-50: #fff1f2;
  --amber-700: #b45309;
  --amber-50: #fffbeb;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --grid-line: #dce4e2;
  --grid-strong: #b8c7c4;
  --font-ui: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--canvas-bg);
  color: var(--slate-700);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.66;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.yc-frame {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 스위스 클리닉 화이트 상단 바 ===== */
.yc-navbar {
  background: var(--chart-white);
  border-bottom: 2px solid var(--teal-600);
  position: sticky;
  top: 0;
  z-index: 95;
}

.yc-navbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.yc-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.yc-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--teal-200);
  object-fit: cover;
}

.yc-brand__label strong {
  display: block;
  font-size: 18.5px;
  font-weight: 900;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.yc-brand__label span {
  display: block;
  font-family: var(--font-code);
  font-size: 10.8px;
  font-weight: 700;
  color: var(--teal-700);
  letter-spacing: 0.04em;
}

.yc-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-700);
  flex-wrap: wrap;
}

.yc-links a:hover { color: var(--teal-600); }

/* ===== 상단 스위스 비대칭 그리드 헤더 & 아포테카리 배너 ===== */
.yc-reception {
  margin: 24px 0 20px;
  background: var(--chart-white);
  border: 1px solid var(--grid-strong);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.yc-reception__left {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--grid-line);
}

.yc-serial {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-family: var(--font-code);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.yc-reception__left h1 {
  margin: 0 0 10px;
  font-size: clamp(21px, 2.3vw, 27px);
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.yc-reception__left p {
  margin: 0 0 16px;
  font-size: 14.3px;
  color: var(--slate-500);
}

.yc-finder {
  position: relative;
}

.yc-finder input {
  width: 100%;
  padding: 12px 84px 12px 15px;
  border: 1.5px solid var(--grid-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--slate-900);
  background: #fafcfb;
  outline: none;
}

.yc-finder input:focus {
  border-color: var(--teal-600);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.yc-finder button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  color: var(--teal-700);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: none;
}

.yc-finder-msg {
  margin-top: 9px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--teal-50);
  color: var(--teal-900);
  font-size: 13px;
  font-weight: 700;
  display: none;
}

.yc-reception__right {
  background: #f9fbfa;
  padding: 12px;
  display: flex;
  align-items: center;
}

.yc-reception__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== 고유 인터랙티브 기능: 원클릭 트리아지(상황별 즉시 처방 창구) ===== */
.yc-triage {
  background: var(--chart-white);
  border: 1px solid var(--grid-strong);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.yc-triage__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.yc-triage__head strong {
  font-size: 15.5px;
  color: var(--slate-900);
}

.yc-triage__btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.yc-tbtn {
  padding: 8px 13px;
  border-radius: 7px;
  border: 1px solid var(--grid-strong);
  background: var(--canvas-bg);
  color: var(--slate-700);
  font-family: inherit;
  font-size: 13.2px;
  font-weight: 700;
  cursor: pointer;
}

.yc-tbtn.is-selected,
.yc-tbtn:hover {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #ffffff;
}

.yc-rx-box {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: 9px;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.yc-rx-box__note {
  flex: 1 1 320px;
  font-size: 13.6px;
  color: var(--teal-900);
  font-weight: 600;
}

.yc-rx-box__links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yc-rx-go {
  padding: 7px 13px;
  border-radius: 6px;
  background: var(--chart-white);
  border: 1px solid var(--teal-600);
  color: var(--teal-700);
  font-size: 13px;
  font-weight: 800;
}

.yc-rx-go:hover {
  background: var(--teal-700);
  color: #ffffff;
}

/* ===== 11호기 고유 아키텍처: 3열 스위스 벤토 클리닉 차트 보드 (총 6개 차트) ===== */
.yc-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.yc-dept {
  background: var(--chart-white);
  border: 1px solid var(--grid-strong);
  border-top: 4px solid var(--teal-600);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.yc-dept--urgent {
  border-top-color: var(--coral-600);
}

.yc-dept__top {
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--grid-line);
}

.yc-dept__code {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 800;
  color: var(--teal-700);
  display: block;
  margin-bottom: 3px;
}

.yc-dept--urgent .yc-dept__code {
  color: var(--coral-600);
}

.yc-dept__top h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 900;
  color: var(--slate-900);
}

.yc-rx-list {
  list-style: none;
  margin: 0;
  padding: 6px 18px;
  flex: 1;
}

.yc-rx-item {
  padding: 9px 0;
  border-bottom: 1px dashed var(--grid-line);
}

.yc-rx-item:last-child { border-bottom: 0; }

.yc-rx-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.yc-rx-item__a {
  font-weight: 800;
  font-size: 14px;
  color: var(--slate-900);
}

.yc-rx-item__a:hover {
  color: var(--teal-600);
  text-decoration: underline;
}

.yc-tag {
  font-family: var(--font-code);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--teal-50);
  color: var(--teal-700);
}

.yc-tag--jp {
  background: var(--amber-50);
  color: var(--amber-700);
}

.yc-tag--sos {
  background: var(--coral-50);
  color: var(--coral-600);
}

.yc-rx-item__p {
  margin: 0;
  font-size: 12.4px;
  color: var(--slate-500);
  line-height: 1.45;
}

.yc-dept__foot {
  padding: 10px 18px;
  background: #f9fbfa;
  border-top: 1px solid var(--grid-line);
  border-radius: 0 0 9px 9px;
  font-size: 12.6px;
  font-weight: 800;
  color: var(--teal-700);
  text-align: right;
}

.yc-dept__foot a:hover { text-decoration: underline; }

/* ===== 하단 고유 본문: 병원비·치과비 절감 & 연말정산 3단계 실전 프로토콜 ===== */
.yc-protocol {
  background: var(--chart-white);
  border: 1px solid var(--grid-strong);
  border-radius: 12px;
  padding: 26px 28px;
  margin-bottom: 36px;
}

.yc-protocol h2 {
  margin: 0 0 8px;
  font-size: 19.5px;
  font-weight: 900;
  color: var(--slate-900);
}

.yc-protocol__sub {
  margin: 0 0 18px;
  font-size: 14.2px;
  color: var(--slate-500);
}

.yc-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.yc-stage {
  background: var(--canvas-bg);
  border: 1px solid var(--grid-line);
  border-radius: 9px;
  padding: 18px;
}

.yc-stage__step {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: var(--teal-700);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.yc-stage h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--slate-900);
}

.yc-stage p {
  margin: 0;
  font-size: 13.4px;
  color: var(--slate-700);
  line-height: 1.66;
}

/* ===== 서브 차트(/chart/, /ethics/) 전용 레이아웃 ===== */
.yc-sub-main {
  padding: 28px 0 46px;
}

.yc-sub-banner {
  background: var(--chart-white);
  border: 1px solid var(--grid-strong);
  border-left: 5px solid var(--teal-600);
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 18px;
}

.yc-sub-banner h1 {
  margin: 6px 0 8px;
  font-size: 22.5px;
  font-weight: 900;
  color: var(--slate-900);
}

.yc-chart-sheet {
  background: var(--chart-white);
  border: 1px solid var(--grid-strong);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.yc-chart-row {
  padding: 17px 22px;
  border-bottom: 1px solid var(--grid-line);
}

.yc-chart-row:last-child { border-bottom: 0; }

.yc-chart-row__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.yc-chart-row__link {
  font-size: 15.8px;
  font-weight: 800;
  color: var(--slate-900);
}

.yc-chart-row__link:hover {
  color: var(--teal-600);
  text-decoration: underline;
}

.yc-clinical-note {
  background: var(--chart-white);
  border: 1px solid var(--grid-strong);
  border-radius: 10px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.yc-clinical-note h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
}

.yc-clinical-note h3 {
  margin: 18px 0 6px;
  font-size: 15.4px;
  font-weight: 800;
  color: var(--teal-700);
}

.yc-clinical-note p {
  margin: 0 0 11px;
  font-size: 14.2px;
  line-height: 1.76;
}

.yc-dept-switcher {
  background: var(--chart-white);
  border: 1px solid var(--grid-line);
  border-radius: 10px;
  padding: 18px 20px;
}

.yc-dept-switcher h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--teal-700);
}

.yc-switch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.yc-switch-pills a {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--canvas-bg);
  border: 1px solid var(--grid-strong);
  font-size: 12.8px;
  font-weight: 700;
}

.yc-switch-pills a:hover,
.yc-switch-pills a.is-active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #ffffff;
}

.yc-footer {
  background: var(--slate-900);
  color: #cbd5e1;
  padding: 28px 0 36px;
  font-size: 13px;
}

.yc-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #ffffff;
}

.yc-footer__nav a:hover { color: var(--teal-200); }

@media (max-width: 980px) {
  .yc-reception { grid-template-columns: 1fr; }
  .yc-reception__left { border-right: 0; border-bottom: 1px solid var(--grid-line); }
  .yc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yc-stages { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .yc-bento { grid-template-columns: 1fr; }
  .yc-reception__left, .yc-protocol, .yc-sub-banner, .yc-clinical-note { padding: 20px 16px; }
}