/* 숨은 지원금 찾기 · 관련 기관 안내 */

/* 전체 폭 템플릿: 위쪽 헤더·메뉴·티커는 그대로, 좌우 사이드바만 숨김 */
body.ytax-full .layout-container > .sidebar { display: none !important; }
body.ytax-full .layout-container::before, body.ytax-full .layout-container::after { display: none !important; }
body.ytax-full .post-header { display: none; }
body.ytax-full #main { border: 0 !important; }
@media (min-width: 1000px) {
	body.ytax-full .layout-container { grid-template-columns: 100% !important; }
	body.ytax-full .layout-container > #main { grid-column: 1 !important; padding: 0 24px 32px !important; }
}
@media (min-width: 50em) {
	body.ytax-full .main { width: 100% !important; margin-left: 0 !important; float: none !important; }
}

.ys { --ys-ink: #1d1a16; --ys-text: #3d3428; --ys-muted: #5f584e; --ys-line: #e6e0d6; --ys-soft: #fbf8f3; --ys-chip: #f1ece4; --ys-brand: #7d6c50; --ys-beige: #a8977b; --ys-focus: #1f5eff;
	color: var(--ys-ink); font-size: 16px; line-height: 1.5; margin: 8px 0 24px; }
.ys *, .ys *::before, .ys *::after { box-sizing: border-box; }
.ys button, .ys select, .ys input { font: inherit; letter-spacing: normal; text-transform: none; }
.ys button { cursor: pointer; }
.ys :focus-visible, .ys-drawer :focus-visible { outline: 3px solid var(--ys-focus); outline-offset: 2px; }
.ys-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ys .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ys p { margin: 0; }

/* 히어로 */
.ys-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 24px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(120deg, #fbf8f3 0%, #f3ebdf 100%); border: 1px solid #ece4d7; overflow: hidden; }
.ys-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ys-eyebrow { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ys-line); font-size: 13px; font-weight: 700; color: var(--ys-brand); }
.ys .ys-title { margin: 0; font-size: 29px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; color: var(--ys-ink); }
.ys-lead { font-size: 15px; color: var(--ys-muted); }
.ys-points { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 2px 0 0; padding: 0; list-style: none; }
.ys-points li { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ys-text); }
.ys-points .ys-ico { color: #5f8a6b; stroke-width: 3; }
.ys-hero-art { flex: 0 1 200px; max-width: 100%; height: auto; }
.ys-hero-art text { font-family: inherit; }
.ys-who-wrap { flex: 1 1 100%; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px dashed #dccfbb; }
.ys-who-title { font-size: 15px; font-weight: 800; }
.ys-who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.ys-who { min-height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--ys-line); border-radius: 14px; background: #fff; color: var(--ys-ink); animation: ys-tilein .35s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--ys-d, 0ms); transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.ys-who-ico { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ys-c); color: #fff; }
.ys-who-label { font-size: 15px; font-weight: 800; }
.ys-who-sub { font-size: 11px; color: var(--ys-muted); }
.ys-who:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(125,108,80,.18); }
.ys-who:hover .ys-who-ico { animation: ys-hop .45s ease; }
.ys-who:active { transform: scale(.96); }
.ys-who[aria-pressed="true"] { background: var(--ys-c); border-color: var(--ys-c); color: #fff; box-shadow: 0 8px 20px rgba(29,26,22,.18); }
.ys-who[aria-pressed="true"] .ys-who-ico { background: rgba(255,255,255,.22); animation: ys-pop .3s ease; }
.ys-who[aria-pressed="true"] .ys-who-sub { color: rgba(255,255,255,.92); }

/* 본문 */
.ys-body { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.ys-filters { flex: 1 1 280px; max-width: 300px; display: flex; flex-direction: column; gap: 18px; padding: 20px; background: var(--ys-soft); border: 1px solid var(--ys-line); border-radius: 16px; }
.ys-filters > * { flex-shrink: 0; }
.ys-results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ys-field, .ys-group { display: flex; flex-direction: column; gap: 8px; }
.ys-label { font-size: 14px; font-weight: 700; }
.ys-opt { font-weight: 400; color: var(--ys-muted); }
.ys-sub { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ys-muted); }
.ys-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ys .ys-input { width: 100%; height: 44px; margin: 0; border: 1px solid #cfc6b8; border-radius: 10px; padding: 0 10px; font-size: 15px; background: #fff; color: var(--ys-ink); transition: border-color .2s ease, box-shadow .2s ease; }
.ys .ys-input:focus { border-color: var(--ys-brand); box-shadow: 0 0 0 4px rgba(125,108,80,.18); outline: none; }
.ys .ys-input:disabled { background: #f4f1ec; color: #8a8174; }
.ys-search { position: relative; display: block; margin: 0; }
.ys-search .ys-sicon { position: absolute; left: 12px; top: 13px; color: #8a8174; transition: transform .35s cubic-bezier(.3,1.6,.5,1), color .2s ease; }
.ys .ys-search input { width: 100%; height: 44px; margin: 0; border: 1px solid #cfc6b8; border-radius: 10px; padding: 0 40px 0 38px; font-size: 15px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ys-search:focus-within input { border-color: var(--ys-brand); box-shadow: 0 0 0 4px rgba(125,108,80,.18); outline: none; }
.ys-search:focus-within .ys-sicon { transform: scale(1.15) rotate(-12deg); color: var(--ys-brand); }
.ys .ys-clear { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: var(--ys-chip); color: var(--ys-text); font-size: 16px; line-height: 1; animation: ys-pop .25s ease both; }
.ys-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ys .ys-chip { min-height: 40px; display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0 12px; border: 1px solid #cfc6b8; border-radius: 999px; background: #fff; color: var(--ys-text); font-size: 14px; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .12s ease; }
.ys .ys-chip:active { transform: scale(.93); }
.ys .ys-chip-check { display: none; stroke-width: 3; }
.ys .ys-chip[aria-pressed="true"] { border-color: var(--ys-brand); background: var(--ys-brand); color: #fff; font-weight: 700; animation: ys-ping .55s ease-out; }
.ys .ys-chip[aria-pressed="true"] .ys-chip-check { display: inline-block; animation: ys-pop .28s ease both; }
.ys .ys-reset { height: 44px; margin: 0; border: 1px solid var(--ys-brand); border-radius: 999px; background: #fff; color: var(--ys-brand); font-size: 15px; font-weight: 700; }
.ys .ys-apply, .ys-mbar, .ys-sheet-head, .ys-scrim { display: none; }

.ys-res-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ys-headline { font-size: 20px; font-weight: 800; }
.ys-num { display: inline-block; color: var(--ys-brand); }
.ys-num.ys-bump { animation: ys-bump .35s ease; }
.ys-sort { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; }
.ys-sort .ys-input { width: auto; height: 40px; font-size: 14px; }
.ys-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.ys-summary:empty { display: none; }
.ys .ys-sum { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ys-chip); color: var(--ys-text); font-size: 14px; animation: ys-chipin .25s cubic-bezier(.3,1.5,.5,1) both; }
.ys-tabs { display: flex; flex-wrap: wrap; gap: 0 2px; border-bottom: 1px solid var(--ys-line); }
.ys .ys-tab { position: relative; flex: none; min-height: 44px; margin: 0; padding: 0 12px; border: 0; background: transparent; white-space: nowrap; font-size: 15px; color: var(--ys-muted); }
.ys .ys-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px; background: var(--ys-brand); transform: scaleX(0); transition: transform .25s ease; }
.ys .ys-tab.on { font-weight: 800; color: var(--ys-ink); }
.ys .ys-tab.on::after { transform: scaleX(1); }
.ys-legend-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ys-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ys-leg, .ys-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.ys-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ys-dot.ys-pulse { animation: ys-dotping 1.4s ease-out infinite; }
.ys-hide { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; font-size: 14px; color: var(--ys-text); cursor: pointer; }
.ys-hide input { width: 18px; height: 18px; margin: 0; accent-color: var(--ys-brand); }
.ys-bar { height: 3px; border-radius: 3px; background: var(--ys-brand); transform-origin: left; }
.ys-bar.run { animation: ys-bar .3s ease-out both; }

.ys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ys .ys-card { text-align: left; display: flex; flex-direction: column; gap: 8px; min-height: 220px; margin: 0; padding: 18px; border: 1px solid var(--ys-line); border-radius: 14px; background: #fff; color: var(--ys-ink); font-weight: 400; animation: ys-rise .38s cubic-bezier(.2,.7,.2,1) both; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ys .ys-card.g1 { animation-name: ys-riseB; }
.ys .ys-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(125,108,80,.16); border-color: var(--ys-beige); }
.ys .ys-card.is-closed { background: #f7f5f2; }
.ys .ys-card.is-closed:hover { transform: none; box-shadow: none; }
.ys-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ys-card-status { display: flex; flex-direction: column; gap: 3px; }
.ys-when { font-size: 13px; color: var(--ys-muted); }
.ys-stamp { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; padding: 5px 0 4px; border: 1px solid #ddd3c4; border-radius: 10px; background: var(--ys-soft); line-height: 1.15; }
.ys-stamp-m, .ys-stamp-c { font-size: 11px; color: var(--ys-muted); }
.ys-stamp-c { font-size: 10px; }
.ys-stamp-d { font-size: 21px; font-weight: 800; color: var(--ys-ink); }
.ys-stamp.is-urgent .ys-stamp-d { color: #9a3412; }
.ys-stamp.is-closed .ys-stamp-d { color: #8a847b; text-decoration: line-through; }
.ys-card-name { font-size: 13px; color: var(--ys-muted); }
.ys-card-benefit { font-size: 19px; font-weight: 800; line-height: 1.35; }
.is-closed .ys-card-benefit { color: #6b665f; text-decoration: line-through; text-decoration-color: #b3aca2; }
.ys-card-target { font-size: 14px; color: var(--ys-text); }
.ys-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--ys-muted); }
.ys-card-meta span + span::before { content: "· "; }
.ys-card-more { font-size: 14px; font-weight: 700; color: var(--ys-brand); }
.ys-skel { min-height: 210px; border-radius: 14px; background: linear-gradient(90deg, #f1ece4 0, #faf7f2 50%, #f1ece4 100%); background-size: 400px 100%; animation: ys-shimmer 1.2s linear infinite; }
.ys-empty, .ys-error { padding: 36px; text-align: center; color: var(--ys-muted); border: 1px dashed #cfc6b8; border-radius: 16px; }
.ys .ys-more { align-self: center; min-height: 44px; margin: 0; padding: 0 22px; border: 1px solid var(--ys-brand); border-radius: 999px; background: #fff; color: var(--ys-brand); font-weight: 700; }
.ys-note { padding: 14px 16px; border-radius: 12px; background: var(--ys-soft); font-size: 13px; line-height: 1.6; color: var(--ys-muted); }
.ys-source { font-size: 12px; color: var(--ys-muted); }
.ys [hidden] { display: none !important; }

/* 상세 (body 아래에 붙음) */
html.ys-lock, html.ys-lock body { overflow: hidden; }
.ys-dim { position: fixed; inset: 0; z-index: 99998; background: rgba(29,26,22,.42); animation: ys-fade .2s ease both; }
.ys-drawer { box-sizing: border-box; position: fixed; top: 0; right: 0; bottom: 0; z-index: 99999; width: min(480px, 100%); overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; background: #fff; color: #1d1a16; box-shadow: -12px 0 32px rgba(0,0,0,.16); font-size: 15px; line-height: 1.6; animation: ys-slidein .3s cubic-bezier(.2,.7,.2,1) both; }
.ys-drawer:focus { outline: none; }
.ys-drawer * { box-sizing: border-box; }
.ys-dr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ys-dr-org { font-size: 13px; color: #5f584e; }
.ys-drawer .ys-dr-title { margin: 4px 0 0; font-size: 22px; font-weight: 800; line-height: 1.3; }
.ys-drawer .ys-dr-close { width: 44px; height: 44px; flex: none; margin: 0; padding: 0; border: 0; border-radius: 999px; background: #f1ece4; color: #3d3428; font-size: 20px; cursor: pointer; }
.ys-dr-period { margin: 0; color: #3d3428; }
.ys-dr-benefit { padding: 14px 16px; border-radius: 12px; background: #fbf8f3; font-size: 18px; font-weight: 800; color: #7d6c50; }
.ys-dr-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 16px; font-weight: 800; color: #1d1a16; }
.ys-dr-sec h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #7d6c50; }
.ys-dr-text { margin: 0; white-space: pre-line; color: #3d3428; word-break: keep-all; overflow-wrap: anywhere; }
.ys-acc { border: 1px solid #e6e0d6; border-radius: 12px; }
.ys-drawer .ys-acc-btn { width: 100%; min-height: 48px; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 0 16px; border: 0; background: transparent; font: inherit; font-weight: 700; color: #1d1a16; cursor: pointer; }
.ys-acc-pane { padding: 0 16px 16px; animation: ys-fade .2s ease both; }
.ys-dr-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e6e0d6; }
.ys-drawer a.ys-btn-primary, .ys-drawer a.ys-btn-line { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; }
.ys-drawer a.ys-btn-primary { background: #7d6c50; color: #fff; }
.ys-drawer a.ys-btn-line { border: 1px solid #7d6c50; color: #7d6c50; background: #fff; }
.ys-dr-note { margin: 4px 0 0; font-size: 13px; color: #5f584e; }
.ys-skel-line { min-height: 18px; border-radius: 8px; margin-bottom: 10px; background: linear-gradient(90deg, #f1ece4 0, #faf7f2 50%, #f1ece4 100%); background-size: 400px 100%; animation: ys-shimmer 1.2s linear infinite; }
.ys-skel-line.short { width: 60%; }

/* 모바일: 필터는 아래에서 올라오는 창, 상세도 아래에서 */
@media (max-width: 760px) {
	.ys-hero { padding: 14px 16px; }
	.ys .ys-title { font-size: 23px; }
	.ys-hero-art { flex-basis: 96px; width: 96px; }
	.ys-hero-text { flex-basis: 200px; }
	.ys-points { display: none; }
	.ys-who-grid { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
	.ys-who { flex: none; width: 88px; min-height: 88px; }
	.ys-who-sub { display: none; }
	.ys-mbar { display: flex; gap: 8px; margin-bottom: 12px; }
	.ys-mbar .ys-search { flex: 1; min-width: 0; }
	.ys .ys-filter-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 10px; background: var(--ys-brand); color: #fff; font-size: 15px; font-weight: 700; }
	.ys-badge { min-width: 20px; height: 20px; border-radius: 999px; background: #fff; color: var(--ys-brand); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
	.ys-desk-only { display: none !important; }
	.ys-body { display: block; }
	.ys-filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; max-width: none; max-height: 86vh; overflow-y: auto; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -8px 28px rgba(0,0,0,.16); transform: translateY(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.7,.2,1), visibility 0s .32s; }
	.ys.ys-sheet-open .ys-filters { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.7,.2,1); }
	.ys.ys-sheet-open .ys-scrim { display: block; position: fixed; inset: 0; z-index: 99989; background: rgba(29,26,22,.42); animation: ys-fade .2s ease both; }
	.ys-sheet-head { display: flex; justify-content: space-between; align-items: center; }
	.ys .ys-sheet-close { width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--ys-chip); font-size: 20px; }
	.ys .ys-apply { display: block; position: sticky; bottom: 0; height: 52px; margin: 0; border: 0; border-radius: 999px; background: var(--ys-brand); color: #fff; font-size: 16px; font-weight: 800; }
	.ys-headline { font-size: 17px; }
	.ys-sort { display: none; }
	.ys-grid { grid-template-columns: 1fr; gap: 12px; }
	.ys .ys-card { min-height: 0; }
	.ys-drawer { top: auto; left: 0; width: 100%; max-height: 88vh; padding: 18px 16px 22px; border-radius: 20px 20px 0 0; animation-name: ys-sheetup; }
}

/* 관련 기관 안내 */
.ys a.ys-back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 36px; margin-bottom: 14px; padding: 0 14px; border-radius: 999px; background: var(--ys-chip); color: #5f5240; font-size: 14px; font-weight: 700; text-decoration: none; }
.ys-ask { flex: 0 1 360px; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--ys-line); font-size: 14px; }
.ys .ys-ask a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: var(--ys-ink); text-decoration: none; border-top: 1px solid var(--ys-chip); }
.ys-ask a b { font-size: 22px; color: var(--ys-brand); }
.ys-ag-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.ys-ag-tools .ys-search { flex: 1 1 280px; max-width: 420px; }
.ys-ag-count { font-size: 15px; color: var(--ys-muted); margin-bottom: 12px !important; }
.ys-ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ys-ag-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--ys-line); border-radius: 16px; background: #fff; animation: ys-rise .38s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--ys-d, 0ms); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ys-ag-card.g1 { animation-name: ys-riseB; }
.ys-ag-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(125,108,80,.16); border-color: var(--ys-beige); }
.ys-ag-card:hover .ys-ag-phone-ico { animation: ys-ring .6s ease; }
.ys-ag-card:hover .ys-ag-badge { transform: scale(1.08) rotate(-4deg); }
.ys-ag-top { display: flex; align-items: flex-start; gap: 12px; }
.ys-ag-badge { flex: none; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.ys-ag-field { font-size: 12px; font-weight: 700; color: var(--ys-brand); }
.ys .ys-ag-card h2 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.35; }
.ys-ag-center, .ys-ag-hours { font-size: 13px; color: var(--ys-muted); }
.ys-ag-phone { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--ys-soft); }
.ys .ys-ag-phone a { display: inline-flex; align-items: center; gap: 8px; color: var(--ys-ink); text-decoration: none; }
.ys-ag-phone strong { font-size: 24px; }
.ys-ag-phone-ico { color: var(--ys-brand); }
.ys .ys-ag-copy { min-height: 36px; margin: 0; padding: 0 12px; border: 1px solid #cfc6b8; border-radius: 999px; background: #fff; color: var(--ys-text); font-size: 13px; font-weight: 700; }
.ys .ys-ag-copy.is-done { color: #2f6b45; border-color: #9cc3a9; animation: ys-pop .25s ease; }
.ys-ag-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ys-ag-items span { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--ys-chip); color: var(--ys-text); }
.ys-ag-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--ys-chip); font-size: 14px; }
.ys .ys-ag-links a { color: var(--ys-brand); font-weight: 700; text-decoration: none; }
.ys .ys-ag-links a + a { color: var(--ys-muted); font-weight: 400; }
.ys-ag-notes { margin: 20px 0 0; padding: 16px 18px 16px 34px; border-radius: 14px; background: var(--ys-soft); font-size: 13px; line-height: 1.7; color: var(--ys-muted); }

/* 움직임 */
@keyframes ys-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ys-riseB { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ys-tilein { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ys-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
@keyframes ys-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes ys-ping { from { box-shadow: 0 0 0 0 rgba(125,108,80,.45); } to { box-shadow: 0 0 0 10px rgba(125,108,80,0); } }
@keyframes ys-chipin { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ys-bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ys-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ys-shimmer { from { background-position: -200px 0; } to { background-position: 200px 0; } }
@keyframes ys-dotping { 0% { box-shadow: 0 0 0 0 rgba(224,118,63,.55); } 100% { box-shadow: 0 0 0 7px rgba(224,118,63,0); } }
@keyframes ys-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ys-slidein { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ys-sheetup { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ys-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
@keyframes ys-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ys-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ys-sweep { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, -4px); } }
.ys-float { animation: ys-floaty 3.2s ease-in-out infinite; }
.ys-float2 { animation-delay: -1.4s; }
.ys-twinkle { animation: ys-twinkle 2.4s ease-in-out infinite; }
.ys-glass { animation: ys-sweep 4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
	.ys *, .ys *::before, .ys *::after, .ys-drawer, .ys-dim, .ys-drawer * { animation: none !important; transition: none !important; }
	.ys .ys-card:hover, .ys-who:hover, .ys-ag-card:hover { transform: none; }
}

/* 1.5.3: 테마의 칸 구분선(세로 1px)이 전체 폭 화면을 가로지르지 않게 */
body.ytax-full .content-container::before,
body.ytax-full .content-container::after { display: none !important; }

/* 1.5.3: 분야 탭은 줄바꿈(가로 스크롤 없음), 필터 아래 기관 안내 버튼 */
.ys .ys-ag-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--ys-line); border-radius: 14px; background: #fff; color: var(--ys-ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ys .ys-ag-link:hover, .ys .ys-ag-link:focus-visible { border-color: var(--ys-brand); box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.ys-ag-link-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--ys-chip); color: var(--ys-brand); }
.ys-ag-link-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.ys-ag-link-txt small { font-size: 12px; color: var(--ys-muted); }
.ys-ag-link-txt strong { font-size: 15px; font-weight: 800; }
.ys-ag-link-go { color: var(--ys-brand); font-weight: 800; transition: transform .2s ease; }
.ys .ys-ag-link:hover .ys-ag-link-go { transform: translateX(3px); }
@media (max-width: 760px) {
	.ys .ys-tab { min-height: 38px; padding: 0 9px; font-size: 14px; }
	.ys .ys-tab::after { left: 7px; right: 7px; }
}

/* 1.5.3: 상세 창 읽기 쉽게 — 항목 간격, 큰/작은 항목, 신청 기간·문의처 카드 */
.ys-dr-body { display: flex; flex-direction: column; gap: 22px; }
.ys-dr-sec { padding-top: 2px; }
.ys-rt { display: flex; flex-direction: column; gap: 12px; }
.ys-rt-g { display: flex; flex-direction: column; gap: 6px; }
.ys-rt p { margin: 0; color: #3d3428; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.ys-rt-l1 { position: relative; padding-left: 16px; font-weight: 600; color: #1d1a16 !important; }
.ys-rt-l1::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #7d6c50; }
.ys-rt-l2 { position: relative; padding-left: 30px; }
.ys-rt-l2::before { content: ""; position: absolute; left: 17px; top: .8em; width: 6px; height: 1.5px; background: #a8977b; }
.ys-rt-note { padding: 8px 12px; border-radius: 8px; background: #fbf8f3; font-size: 14px; }
.ys-info { display: flex; flex-direction: column; gap: 0; border: 1px solid #e6e0d6; border-radius: 14px; overflow: hidden; }
.ys-info-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.ys-info-row + .ys-info-row { border-top: 1px solid #efe9e0; }
.ys-info-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px; background: #f1ece4; color: #7d6c50; }
.ys-info-ico .ys-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ys-info-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ys-info-label { font-size: 13px; font-weight: 700; color: #5f584e; }
.ys-info-line { margin: 0; font-size: 15px; color: #1d1a16; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.ys-drawer .ys-tel { font-weight: 800; color: #7d6c50; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ys-drawer .ys-acc { margin-top: 2px; }

/* 1.5.3: 분야는 왼쪽 필터의 칩으로, 카드에 '내 조건 맞춤 / 일반 혜택' 배지 */
.ys .ys-fchip { min-height: 36px; padding: 0 11px; font-size: 13px; }
.ys-fcnt { font-size: 12px; font-weight: 400; opacity: .7; }
.ys .ys-fchip[aria-pressed="true"] .ys-fcnt { opacity: .9; }
.ys-fit { align-self: flex-start; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: 100%; padding: 3px 10px; border-radius: 999px; font-size: 12px; line-height: 1.5; }
.ys-fit.is-match { background: #e9f3ec; color: #24613d; border: 1px solid #bfdcc8; }
.ys-fit-k { font-weight: 800; }
.ys-fit-k::before { content: "✓ "; }
.ys-fit-why { color: #3b6b4e; }
.ys-fit.is-general { background: #f3f0ea; color: #75695a; border: 1px solid #e2dbcf; }
.is-closed .ys-fit { opacity: .7; }

/* 1.5.6: 상세 창 공유 */
.ys-dr-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.ys-drawer .ys-dr-share { height: 44px; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0 14px; border: 1px solid #e2dbcf; border-radius: 999px; background: #fff; color: #3d3428; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.ys-drawer .ys-dr-share:hover, .ys-drawer .ys-dr-share[aria-expanded="true"] { border-color: #7d6c50; background: #fbf8f3; }
.ys-share { padding: 14px; border: 1px solid #e6e0d6; border-radius: 14px; background: #fbf8f3; animation: ys-fade .2s ease both; }
.ys-share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ys-drawer .ys-share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 0 14px; border: 1px solid #ddd3c4; border-radius: 999px; background: #fff; color: #3d3428; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ys-drawer .ys-share-btn:hover, .ys-drawer .ys-share-btn:focus-visible { border-color: #7d6c50; }
.ys-drawer .ys-share-btn.is-copy { background: #7d6c50; border-color: #7d6c50; color: #fff; }
.ys-share-msg { margin: 8px 0 0; font-size: 13px; color: #5f584e; word-break: break-all; }
.ys-share-msg:empty { display: none; }
@media (max-width: 420px) { .ys-dr-share-t { display: none; } .ys-drawer .ys-dr-share { width: 44px; padding: 0; justify-content: center; } }
