/* Notices: readable lists, without decorative logo-corner motifs. */
.notices { background: #fff; border-bottom: 1px solid var(--line); }
.notice-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.notice-tools .search { width: 440px; max-width: 100%; }
.notice-filter select { height: 56px; min-width: 156px; padding: 0 34px 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 5px; color: var(--text-2); font-size:var(--type-14); }
.notice-status { padding: 36px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; color: var(--text-2); font-size:var(--type-14); line-height: 1.8; background: var(--paper); }
.notice-list { border-top: 1px solid var(--line); }
.notice-list:empty { border: 0; }
.notice-item { display: grid; grid-template-columns: 122px minmax(0,1fr) 132px; gap: 24px; align-items: start; padding: 25px 6px; border-bottom: 1px solid var(--line); }
.notice-item:hover h3 { color: var(--brand); }
.notice-item__meta { display: grid; justify-items: start; gap: 8px; padding-top: 2px; font-size:var(--type-12); }
.notice-item__category { color: var(--brand); }
.notice-item__pin { font-size:var(--type-12); padding: 2px 6px; color: var(--text-2); background: #EEE9F2; border-radius: 3px; }
.notice-item h3 { font-size:var(--type-16); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.notice-item__main p { margin-top: 7px; color: var(--text-2); font-size:var(--type-14); line-height: 1.7; overflow-wrap: anywhere; }
.notice-item__end { display: grid; justify-items: end; gap: 6px; font-size:var(--type-12); color: var(--muted); }
.notice-item__arrow { color: var(--brand); margin-top: 6px; }
.notice-actions { display: flex; justify-content: center; gap: 18px; margin-top: 28px; }
.notice-actions:has(> [hidden]:only-child) { display: none; }
.detail-header .header__inner { justify-content: space-between; }
.detail-header .detail-home { margin-left: auto; font-size:var(--type-14); color: var(--text-2); }
.detail-main { max-width: 860px; width: calc(100% - 48px); margin: calc(var(--header-h) + 60px) auto 90px; }
.detail-back { font-size:var(--type-14); color: var(--brand); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 14px; font-size:var(--type-12); color: var(--muted); }
.detail-category { color: var(--brand); }
.detail-title { font-size:var(--type-40); font-weight: 600; letter-spacing: -.035em; line-height: 1.5; overflow-wrap: anywhere; }
.detail-summary { font-size:var(--type-16); line-height: 1.85; color: var(--text-2); margin-top: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-body { margin: 32px 0 28px; padding-top: 30px; border-top: 1px solid var(--line); font-size:var(--type-16); line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-source { margin-top: 22px; }
.detail-files { margin-top: 34px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.detail-files h2 { font-size:var(--type-16); font-weight: 600; margin-bottom: 14px; }
.detail-files li + li { margin-top: 10px; }
.detail-files a { display: flex; justify-content: space-between; gap: 14px; color: var(--brand); padding: 8px 0; font-size:var(--type-14); overflow-wrap: anywhere; }
.detail-files small { color: var(--muted); flex: none; }
.detail-end { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size:var(--type-14); color: var(--text-2); }
.detail-footer { padding: 30px 24px; background: var(--paper); color: var(--muted); font-size:var(--type-12); text-align: center; }
@media(max-width:1180px) { .header__inner { gap: 24px; } .gnb a { padding-left: 8px; padding-right: 8px; } }
@media(max-width:640px) {
  .notice-tools { align-items: stretch; flex-direction: column; gap: 10px; }
  .notice-tools .search { width: 100%; }
  .notice-filter select { width: 100%; height: 46px; }
  .notice-item { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 22px 0; }
  .notice-item__meta { display: flex; flex-wrap: wrap; align-items: center; }
  .notice-item h3 { font-size:var(--type-16); }
  .notice-item__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  .notice-item__arrow { margin: 0 0 0 auto; }
  .notice-status { padding: 28px 18px; font-size:var(--type-14); }
  .detail-main { width: calc(100% - 40px); margin-top: calc(var(--header-h) + 36px); margin-bottom: 60px; }
  .detail-meta { margin-top: 28px; }
  .detail-summary, .detail-body { font-size:var(--type-14); }
  .detail-files { padding: 20px 16px; }
  .detail-header .detail-home { font-size:var(--type-12); }
  body.notice-detail { padding-bottom: 0; }
}

/* Customer resources: two visible filter groups and 4/2/1 column cards (PC / tablet / mobile). */
body.page-guides .page-heading { padding: 14px 0 16px; }
body.page-guides .page-heading .breadcrumb { margin-bottom: 8px; }
body.page-guides .page-heading h1 { margin-top: 4px; line-height: 1.3; }
body.page-guides .page-heading__lead { margin-top: 6px; font-size:var(--type-14); line-height: 1.6; }
.page-guides #resources { padding-top: 14px; padding-bottom: 48px; background: #f7f7fa; }
.resources .resources__panel { display: grid; gap: 12px; margin: 0 0 14px; padding: 16px 18px; background: #fff; border: 1px solid #e0dce6; border-radius: 8px; }
.resources .resources__search { display: block; width: 100%; max-width: 560px; }
.resources .resources__filter-label, .resources .resources__group-title, .resources .resources__selected-title { display: block; margin: 0 0 6px; font-size:var(--type-12); font-weight: 700; color: var(--text); }
.resources .resources__search-box { position: relative; display: block; }
.resources .resources__search input { height: 44px; border-radius: 6px; }
.resources .resources__groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.resources .resources__group { min-width: 0; padding: 12px; background: #fbfafc; border: 1px solid #ebe8ef; border-radius: 6px; }
.resources .resources__buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.resources .resources__btn, .resources .resources__chip, .resources .resources__clear, .resources .resource-type { font: inherit; cursor: pointer; }
.resources .resources__btn { min-height: 36px; padding: 6px 12px; background: #fff; border: 1px solid #b9b1c3; border-radius: 6px; font-size:var(--type-14); line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.resources .resources__btn:hover { border-color: var(--brand); color: var(--brand); }
.resources .resources__btn.is-active, .resources .resource-type.is-active { background: #7030A0; border-color: #7030A0; color: #fff; font-weight: 700; }
.resources .resources__btn:focus-visible, .resources .resources__chip:focus-visible, .resources .resources__clear:focus-visible, .resources .resource-type:focus-visible, .resources .resources__type-details summary:focus-visible { outline: 3px solid #1f1f1f; outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.resources .resources__type-details summary { display: inline-flex; align-items: center; gap: 9px; padding: 4px 2px; font-size:var(--type-12); font-weight: 600; color: var(--text-2); cursor: pointer; }
.resources .resources__type-details summary::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.resources .resources__type-details[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.resources .resources__types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.resources .resource-type { min-height: 34px; padding: 5px 12px; background: #fff; border: 1px solid #b9b1c3; border-radius: 6px; font-size:var(--type-14); color: var(--text); }
.resources .resources__selected { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 10px; border-top: 1px solid #ebe8ef; }
.resources .resources__selected-title { margin: 0; }
.resources .resources__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.resources .resources__chip { padding: 4px 10px; background: #f3eef7; border: 1px solid #7030A0; border-radius: 999px; font-size:var(--type-12); color: #4f2073; }
.resources .resources__chip-empty { font-size:var(--type-12); color: var(--text-2); }
.resources .resources__clear { margin-left: auto; padding: 4px 10px; background: #fff; border: 1px solid #b9b1c3; border-radius: 6px; font-size:var(--type-12); color: var(--text); }
.resources .resources__clear[hidden], .resources .resources__legacy-selects[hidden] { display: none; }
.resources .resources__count { margin: 0 0 10px; font-size:var(--type-14); color: var(--text-2); }
.resources .resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border-top: 0; margin-top: 4px; }
.resources .resource-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.resources .resource-card:hover { border-color: var(--brand); background: #fff; }
.resources .resource-card__meta { gap: 6px 8px; }
.resources .resource-card__category { width: auto; padding: 2px 8px; font-size:var(--type-12); font-weight: 600; color: var(--brand); background: #f3eef7; border-radius: 3px; }
.resources .resource-card__situation { padding: 2px 8px; font-size:var(--type-12); color: var(--text-2); background: #f1f0f2; border-radius: 3px; }
.resources .resource-card__type { font-size:var(--type-12); color: var(--muted); opacity: .7; }
.resources .resource-card__type--guide { font-size:var(--type-12); opacity: .55; }
.resources .resource-card__title { font-size:var(--type-16); line-height: 1.45; overflow-wrap: anywhere; word-break: keep-all; }
.resources .resource-card__foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.resources .resource-card__link { margin-top: 0; margin-left: auto; }
.resources .resource-card__content { display: grid; gap: 8px; min-width: 0; }
.resources .resource-card__foot { margin-top: auto; }
/* Preview under the title: verbatim headings or a short excerpt from the public article, max 3 lines. */
.resources .resource-card__summary,
.resources .resource-card__preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-height: calc(1.6em * 2); overflow: hidden; margin: 0; font-size:var(--type-14); line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.resources .resource-card__preview-label { margin-right: 6px; font-size:var(--type-12); font-weight: 700; color: #5c2785; }
.resources .resource-card__preview[data-state="pending"] { display: block; height: calc(1.6em * 2); border-radius: 4px; background: #f1eff4; }
@media (max-width: 1024px) { .resources .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .resources .resource-card { padding: 20px; } }
@media (max-width: 760px) { .resources .resources__groups { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
@media (max-width: 640px) {
  .resources .resources__panel { padding: 12px; }
  .resources .resources__btn { min-height: 40px; }
  .resources .resource-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* ---- Resource cards: the title link is stretched over the whole card (single link, no nested controls) ---- */
.resources .resource-card { position: relative; cursor: pointer; }
.resources .resource-card:focus-within { border-color: var(--brand); }
.resources .resource-card__anchor { color: inherit; text-decoration: none; }
.resources .resource-card__anchor::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.resources .resource-card__anchor:focus-visible { outline: none; }
.resources .resource-card__anchor:focus-visible::after { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---- Detail page: back link + collapsed "더보기" menu (template part, outside the prerendered article) ---- */
.notice-page-content .detail-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.notice-page-content .detail-more { position: relative; flex: none; }
.notice-page-content .detail-more[hidden] { display: none; }
.notice-page-content .detail-more__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; font: inherit; font-size:var(--type-14); font-weight: 600; color: var(--text-2); background: #fff; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.notice-page-content .detail-more__toggle:hover, .notice-page-content .detail-more.is-open .detail-more__toggle { color: var(--brand); border-color: var(--brand); }
.notice-page-content .detail-more__toggle:focus-visible, .notice-page-content .detail-more__copy:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.notice-page-content .detail-more__dots { width: 14px; height: 4px; background: radial-gradient(circle, currentColor 1.6px, transparent 1.8px) 0 50% / 5px 4px repeat-x; }
.notice-page-content .detail-more__menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; display: grid; gap: 6px; width: 260px; max-width: calc(100vw - 40px); padding: 8px; background: #fff; border: 1px solid #ddd6e4; border-radius: 8px; box-shadow: 0 8px 24px rgba(40, 20, 60, .12); }
.notice-page-content .detail-more__menu[hidden] { display: none; }
.notice-page-content .detail-more__copy { width: 100%; min-height: 40px; padding: 8px 12px; font: inherit; font-size:var(--type-14); font-weight: 600; text-align: left; color: var(--brand); background: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.notice-page-content .detail-more__copy:hover { background: #f3eef7; }
.notice-page-content .detail-more__copy.is-copied { color: #fff; background: var(--brand); }
.notice-page-content .detail-more__hint { margin: 0 12px 4px; font-size:var(--type-12); line-height: 1.5; color: var(--muted); }
.notice-page-content .detail-more__fallback { padding: 0 4px 4px; }
.notice-page-content .detail-more__fallback[hidden] { display: none; }
.notice-page-content .detail-more__fallback label { display: grid; gap: 4px; font-size:var(--type-12); color: var(--text-2); }
.notice-page-content .detail-more__input { width: 100%; min-width: 0; padding: 6px 8px; font: inherit; font-size:var(--type-12); color: var(--text); background: #faf8fc; border: 1px solid #b9b1c3; border-radius: 4px; }
@media print { .notice-page-content .detail-more { display: none; } }
/* 고객자료실: 필요한 사항은 위쪽 가로 필터, 업무분야(세금)는 왼쪽 세로 필터. */
.resources .resources__groups { grid-template-columns: minmax(0, 1fr); }
.resources .resources__layout { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 18px; align-items: start; }
.resources .resources__side { position: sticky; top: 88px; }
.resources .resources__side .resources__group { padding: 12px; }
.resources .resources__side .resources__buttons { flex-direction: column; flex-wrap: nowrap; }
.resources .resources__side .resources__btn { width: 100%; text-align: left; }
.resources .resources__results { min-width: 0; display: block; }
.resources .resources__layout .resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .resources .resources__layout .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .resources .resources__layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .resources .resources__side { position: static; }
  .resources .resources__side .resources__buttons { flex-direction: row; flex-wrap: wrap; }
  .resources .resources__side .resources__btn { width: auto; }
}
@media (max-width: 640px) { .resources .resources__layout .resource-grid { grid-template-columns: minmax(0, 1fr); } }
/* W21b: disclosures on small screens; keep tax areas in the desktop left column. */
.resources .resources__category-details { padding: 12px; border: 1px solid #ebe8ef; border-radius: 6px; background: #fbfafc; }
.resources .resources__category-details .resources__group { padding: 8px 0 0; border: 0; background: transparent; }
.resources .resources__results > .resources__selected { margin-bottom: 10px; }
.resources .resource-type[hidden] { display: none; }
@media (max-width: 800px) {
  .resources .resources__layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .resources .resources__side { position: static; }
  .resources .resources__side .resources__buttons { flex-direction: row; flex-wrap: wrap; }
  .resources .resources__side .resources__btn { width: auto; }
  .resources .resources__panel { padding: 12px; gap: 8px; margin-bottom: 6px; }
  .resources .resources__group { padding: 8px; }
  .resources .resources__btn { min-height: 32px; padding: 5px 10px; font-size:var(--type-12); }
  .resources .resources__results > .resources__selected { padding-top: 6px; margin-bottom: 6px; }
}
/* W22: compact four-column results; full-width conditions directly above the result list. */
.resources .resources__layout .resource-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.resources .resources__layout .resource-card{padding:14px;gap:9px}
.resources .resources__results>.resources__selected{width:100%;float:none;display:flex;margin:0 0 8px}
.resources .resources__results>.resources__count{float:none;text-align:left;margin:0 0 10px}
@media(max-width:1024px){.resources .resources__layout .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.resources .resources__layout .resource-grid{grid-template-columns:minmax(0,1fr)}}
/* W22c: filters and cards share the right column; the tax index remains at left. */
.resources .resources__layout{grid-template-areas:"tax filters" "tax results";row-gap:14px}
.resources .resources__layout>.resources__panel{grid-area:filters;margin-bottom:0}
.resources .resources__side{grid-area:tax}
.resources .resources__results{grid-area:results}
.resources .resource-card__meta{flex-wrap:nowrap;white-space:nowrap;overflow:hidden;gap:6px;min-width:0}
.resources .resource-card__meta>span{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resources .resource-card__category{flex:0 1 auto}
.resources .resource-card__situation{flex:0 1 auto}
@media(min-width:801px){.resources .resources__layout>.resources__panel{padding:0;border:0;background:transparent}.resources .resources__search{max-width:none}}
@media(max-width:800px){.resources .resources__layout{grid-template-areas:"filters" "tax" "results";row-gap:10px}}
.resources .resource-card--guide .resource-card__date{display:none}
/* W22d: reserve asynchronous controls and list space before the first response. */
.js .resources .resources__results{min-height:600px}
.resources #resource-situation-buttons{min-height:36px}
.resources .resources__count-slot{min-height:32px}
@media(max-width:800px){.resources #resource-situation-buttons{min-height:70px}}

/* W40: one compact condition/status line; overflow scrolls within the row on small screens. */
.resources .resources__results>.resources__selected{flex-wrap:nowrap;gap:10px;overflow-x:auto;max-width:100%;min-height:44px;padding-bottom:4px}
.resources .resources__selected>*{flex-shrink:0;white-space:nowrap}
.resources .resources__chips{flex-wrap:nowrap}
.resources .resources__selected .resources__count-slot{min-height:0;margin-left:auto}
.resources .resources__selected .resources__count{margin:0}
