:root {
  --bg: #f4efe7;
  --surface: rgba(255, 250, 244, 0.9);
  --surface-strong: #fffdfa;
  --line: rgba(61, 48, 39, 0.12);
  --text: #2f241d;
  --muted: #6d5c50;
  --brand: #b2542d;
  --brand-deep: #6f3118;
  --accent: #e3c46f;
  --shadow: 0 18px 50px rgba(62, 39, 24, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 92px;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(227, 196, 111, 0.32), transparent 28%),
    radial-gradient(circle at right, rgba(178, 84, 45, 0.18), transparent 30%),
    linear-gradient(180deg, #f9f5ee 0%, var(--bg) 100%);
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.topbar-fixed {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(62, 39, 24, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.hero-header {
  padding: 20px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.home-btn:hover {
  background: rgba(178, 84, 45, 0.08);
  color: var(--brand-deep);
  border-color: var(--brand);
}

.nav-page-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-page-link:hover {
  background: var(--brand);
  color: #fff;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-deep);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.menu-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
}

.menu-item > button,
.single-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-item:hover > button,
.menu-item:focus-within > button,
.single-link:hover,
.single-link:focus-visible {
  background: rgba(178, 84, 45, 0.1);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 18px 35px rgba(61, 48, 39, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 10;
}

.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: rgba(227, 196, 111, 0.26);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 34px;
  align-items: end;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.notice-banner {
  padding: 16px 18px;
  border: 1px solid rgba(178, 84, 45, 0.2);
  border-radius: 18px;
  background: rgba(255, 248, 241, 0.96);
  color: var(--brand-deep);
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.workspace {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.dash-card {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(178, 84, 45, 0.12);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.dash-card:hover,
.dash-card:focus-visible {
  border-color: rgba(178, 84, 45, 0.35);
  box-shadow: 0 12px 24px rgba(95, 60, 39, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.workspace {
  padding: 28px;
  min-height: 520px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: fade-up 0.24s ease;
}

.panel-head h2 {
  margin: 0 0 14px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.info-card,
.policy-item {
  padding: 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.info-card h3,
.policy-item h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.info-card p,
.policy-item p,
.rich-copy p {
  color: var(--muted);
}

.rich-copy,
.policy-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

/* 노무 지식 패널 */
.lk-desc {
  font-size: 12pt;
  color: #555;
  margin: 0 0 22px;
  line-height: 1.7;
}

.lk-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.lk-search-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12pt;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.lk-search-row input:focus {
  border-color: var(--brand);
}

.lk-search-row .primary-button {
  flex-shrink: 0;
}

.lk-no-result {
  grid-column: 1 / -1;
  font-size: 12pt;
  color: #999;
  padding: 24px 0;
  text-align: center;
}

.lk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* 관련기사 목록 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0cfc0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.news-card:hover {
  border-color: #c0613a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-card-date {
  font-size: 10pt;
  color: #888;
}

.news-card strong {
  font-size: 13pt;
  color: #2f241d;
  line-height: 1.4;
}

.news-card-summary {
  font-size: 10.5pt;
  color: #666;
  line-height: 1.6;
}

.news-card-more {
  font-size: 10.5pt;
  color: #7a3419;
  font-weight: bold;
  margin-top: 2px;
}

.news-empty {
  font-size: 12pt;
  color: #999;
  padding: 24px 0;
  text-align: center;
}

.lk-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: #fff;
  border: 1px solid #e0cfc0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lk-card:hover {
  border-color: #c0613a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.lk-tag {
  display: inline-block;
  font-size: 10pt;
  font-weight: bold;
  color: #c0613a;
  background: #fff4ec;
  border: 1px solid #f0c0a0;
  border-radius: 4px;
  padding: 2px 8px;
  align-self: flex-start;
}

.lk-card strong {
  font-size: 13pt;
  color: #2f241d;
  line-height: 1.4;
}

.lk-summary {
  font-size: 10.5pt;
  color: #666;
  line-height: 1.6;
  flex: 1;
}

.lk-more {
  font-size: 10.5pt;
  color: #7a3419;
  font-weight: bold;
  margin-top: 4px;
}

.article-links {
  margin-top: 28px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e8d8c8;
  border-radius: 8px;
}

.page-cross-link {
  margin-top: 24px;
  padding: 20px 24px;
  background: #fff4ec;
  border: 1.5px solid #f0c0a0;
  border-radius: 10px;
}

.page-cross-link-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-cross-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-cross-link-text strong {
  font-size: 1rem;
  color: #7a3419;
}

.page-cross-link-text span {
  font-size: 0.88rem;
  color: #666;
}

.page-cross-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: #7a3419;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s;
}

.page-cross-link-btn:hover {
  background: #5a2410;
}

.article-links-title {
  font-size: 16px;
  color: #7a3419;
  margin: 0 0 4px;
}

.article-links-desc {
  font-size: 11pt;
  color: #666;
  margin: 0 0 16px;
}

.article-link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-link-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  background: #fdf8f4;
  border: 1px solid #e0cfc0;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.article-link-card:hover {
  border-color: #c0613a;
  background: #fff4ec;
}

.article-link-card strong {
  font-size: 12pt;
  color: #7a3419;
  line-height: 1.4;
}

.article-link-card span {
  font-size: 10.5pt;
  color: #555;
  line-height: 1.5;
}

.review-content {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dash-card strong,
.dash-card span {
  display: block;
}

.dash-card strong {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.placeholder-box,
.board-list,
.toolbox,
.status-box,
.file-list {
  margin-top: 22px;
  padding: 22px;
  border: 1px dashed rgba(111, 49, 24, 0.25);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.92);
}

.board-list {
  display: grid;
  gap: 12px;
}

.toolbox {
  display: grid;
  gap: 16px;
  border-style: solid;
}

.field {
  display: grid;
  gap: 8px;
}

.field-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field span,
.field legend {
  font-weight: 700;
}

.field small {
  color: var(--muted);
}

.example-download {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 16px;
  background: rgba(255, 248, 241, 0.95);
}

.example-download strong {
  display: block;
  margin-bottom: 4px;
}

.example-download p {
  margin: 0;
  font-size: 0.93rem;
}

.example-download ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-download {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(111, 49, 24, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 249, 243, 0.98), rgba(246, 236, 223, 0.95));
}

.guide-download strong {
  display: block;
  margin-bottom: 4px;
}

.guide-download p {
  margin: 0;
  font-size: 0.93rem;
}

.guide-download .secondary-button {
  flex-shrink: 0;
}

.template-library-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.template-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.template-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.template-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.template-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.template-card p {
  margin: 0;
  color: var(--muted);
}

.template-card .badge {
  flex-shrink: 0;
}

.template-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.template-empty {
  margin-top: 18px;
  padding: 22px;
  border: 1px dashed rgba(111, 49, 24, 0.25);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.92);
  color: var(--muted);
}

.field input[type="file"],
.field input[type="number"],
.field input[type="text"],
.field input[type="date"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(61, 48, 39, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.split-option.is-hidden {
  display: none;
}

.sheet-picker.is-hidden {
  display: none;
}

.sheet-picker {
  display: grid;
  gap: 14px;
}

.rate-adjust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rate-adjust-selector-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}

.rate-adjust-selector-item {
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(244, 239, 231, 0.55);
}

.rate-adjust-card {
  display: grid;
  gap: 12px;
}

.rate-adjust-rule-list {
  display: grid;
  gap: 12px;
}

.rate-adjust-rule-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(61, 48, 39, 0.1);
  border-radius: 14px;
  background: rgba(255, 253, 250, 0.94);
}

.rate-adjust-rule-actions {
  flex-wrap: wrap;
}

.rate-adjust-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rate-adjust-card-head h3 {
  margin: 0;
  font-size: 1rem;
}

.rate-adjust-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rate-adjust-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rate-adjust-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244, 239, 231, 0.85);
  color: var(--brand-deep);
  font-size: 0.82rem;
}

.rate-adjust-chip-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

.rate-adjust-exception-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.workstat-result.is-hidden {
  display: none;
}

.workstat-result {
  margin-top: 22px;
}

.vacation-calc-result.is-hidden {
  display: none;
}

.vacation-calc-result {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.vacation-calc-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vacation-calc-card {
  padding: 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.vacation-calc-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.vacation-calc-card p {
  margin: 6px 0 0;
}

.vacation-calc-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(61, 48, 39, 0.08);
}

.vacation-calc-metric:last-child {
  border-bottom: 0;
}

.vacation-calc-metric strong {
  color: var(--brand-deep);
}

.workstat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.severance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.severance-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.severance-result.is-hidden {
  display: none;
}

.severance-result {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.severance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.severance-card {
  padding: 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.severance-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.severance-card p {
  margin: 6px 0 0;
}

/* 세후 급여계산기 */
.net-salary-result.is-hidden {
  display: none;
}

.net-salary-result {
  margin-top: 22px;
}

.net-salary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.net-salary-card {
  padding: 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.net-salary-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.net-salary-card--main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--text);
}

.net-salary-card--main h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.net-salary-amount {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.net-salary-sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.net-salary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(61, 48, 39, 0.08);
  font-size: 0.9rem;
}

.net-salary-row:last-child {
  border-bottom: 0;
}

.net-salary-row--total {
  margin-top: 4px;
  font-weight: 600;
  color: var(--brand-deep);
}

.net-salary-row strong {
  white-space: nowrap;
}

/* 임원퇴직금한도계산기 */
.exec-ret-result.is-hidden {
  display: none;
}

.exec-ret-result {
  margin-top: 22px;
}

.exec-ret-segments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.exec-ret-segment {
  padding: 14px 16px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 250, 0.96);
}

.exec-ret-segment-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 0 0 10px;
}

.exec-ret-segment-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

/* 연도별 급여 입력 테이블 */
.exec-ret-year-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 6px;
}

.exec-ret-year-table thead th {
  text-align: left;
  padding: 6px 8px;
  font-weight: 600;
  border-bottom: 2px solid rgba(61, 48, 39, 0.15);
  color: var(--muted);
  white-space: nowrap;
}

.exec-ret-year-table tbody td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(61, 48, 39, 0.07);
  vertical-align: middle;
}

.exec-ret-year-table tbody tr:last-child td {
  border-bottom: none;
}

.exec-ret-year-table input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.88rem;
  border: 1px solid rgba(61, 48, 39, 0.2);
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.exec-ret-year-table input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
}

.exec-ret-seg-footer {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(61, 48, 39, 0.1);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.exec-ret-seg-footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.exec-ret-seg-footer-item strong {
  color: var(--text);
  font-size: 0.95rem;
}

.exec-ret-seg-footer-item--accent strong {
  color: var(--brand-deep);
  font-size: 1rem;
}

.exec-ret-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.exec-ret-card {
  padding: 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.exec-ret-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.exec-ret-card--main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--text);
}

.exec-ret-card--main h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.exec-ret-amount {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

.exec-ret-amount--over {
  color: #c0392b;
}

.exec-ret-amount--ok {
  color: #27ae60;
}

.exec-ret-sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.exec-ret-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(61, 48, 39, 0.08);
  font-size: 0.9rem;
}

.exec-ret-row:last-child {
  border-bottom: 0;
}

.exec-ret-row--total {
  margin-top: 4px;
  font-weight: 600;
  color: var(--brand-deep);
}

.exec-ret-row--over {
  font-weight: 600;
  color: #c0392b;
}

/* 대출상환계산기 */
.loan-result.is-hidden {
  display: none;
}

.loan-result {
  margin-top: 22px;
}

.loan-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.loan-card {
  padding: 20px 18px;
  border: 1px solid rgba(31, 58, 95, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.loan-card h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.loan-card-amount {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.loan-card--interest .loan-card-amount {
  color: #c0392b;
}

.loan-card-sub {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* 탭 */
.loan-tab-bar {
  display: flex;
  gap: 6px;
  margin-top: 28px;
  border-bottom: 2px solid rgba(31, 58, 95, 0.12);
  padding-bottom: 0;
}

.loan-tab {
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.loan-tab:hover {
  color: var(--text);
}

.loan-tab.active {
  color: #1f3a5f;
  border-bottom-color: #1f3a5f;
}

/* 테이블 */
.loan-tbl-scroll {
  margin-top: 12px;
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid rgba(31, 58, 95, 0.12);
  border-radius: 12px;
}

.loan-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.loan-tbl thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.loan-tbl thead th {
  padding: 10px 14px;
  background: #1f3a5f;
  color: #fff;
  font-weight: 600;
  font-size: 0.83rem;
  text-align: center;
  white-space: nowrap;
}

.loan-tbl tbody tr {
  border-bottom: 1px solid rgba(31, 58, 95, 0.07);
  transition: background 0.1s;
}

.loan-tbl tbody tr:hover {
  background: rgba(31, 58, 95, 0.04);
}

.loan-tbl tbody td {
  padding: 8px 14px;
  color: var(--text);
}

.loan-tbl-center { text-align: center; }
.loan-tbl-right  { text-align: right; }
.loan-tbl-bold   { font-weight: 600; }
.loan-tbl-muted  { color: var(--muted); }
.loan-tbl-interest { color: #c0392b; }

.loan-tbl-year-sep td {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f3a5f;
  background: #ebf2fa;
  letter-spacing: 0.03em;
}

.loan-tbl-total td {
  padding: 10px 14px;
  font-weight: 700;
  background: #1f3a5f;
  color: #fff;
  border-top: 2px solid #1f3a5f;
}

.loan-tbl-total .loan-tbl-interest {
  color: #ffaaaa;
}

@media (max-width: 700px) {
  .loan-cards {
    grid-template-columns: 1fr;
  }

  .loan-tbl {
    font-size: 0.8rem;
  }

  .loan-tbl thead th,
  .loan-tbl tbody td {
    padding: 7px 8px;
  }
}

.severance-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(61, 48, 39, 0.08);
}

.severance-metric:last-child {
  border-bottom: 0;
}

.severance-metric strong {
  color: var(--brand-deep);
}

.severance-table-wrap {
  max-height: 420px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 14px;
  background: #fff;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.result-table th,
.result-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(61, 48, 39, 0.1);
  text-align: left;
  white-space: nowrap;
}

.result-table th {
  position: sticky;
  top: 0;
  background: #fff7ef;
  color: var(--brand-deep);
  font-size: 0.88rem;
}

.result-table tbody tr:nth-child(even) {
  background: rgba(244, 239, 231, 0.42);
}

.sheet-card {
  padding: 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.sheet-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.sheet-options {
  display: grid;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.action-row {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.primary-button {
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff9f4;
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(111, 49, 24, 0.24);
  outline: none;
}

.secondary-button {
  padding: 14px 20px;
  border: 1px solid rgba(111, 49, 24, 0.22);
  border-radius: 14px;
  background: #fffaf6;
  color: var(--brand-deep);
  font-weight: 700;
  cursor: pointer;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(111, 49, 24, 0.12);
  outline: none;
}

.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  text-decoration: underline;
  outline: none;
}

.status-box {
  border-style: solid;
  color: var(--muted);
}

.status-box.error {
  color: #8e2727;
  border-color: rgba(142, 39, 39, 0.28);
  background: rgba(255, 243, 243, 0.96);
}

.status-box.success {
  color: #1f6b42;
  border-color: rgba(31, 107, 66, 0.28);
  background: rgba(243, 255, 248, 0.96);
}

.file-list {
  display: grid;
  gap: 10px;
  border-style: solid;
}

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(244, 239, 231, 0.85);
}

.file-chip strong {
  font-size: 0.96rem;
}

.file-chip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.board-row {
  display: grid;
  grid-template-columns: 72px 1fr 80px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(244, 239, 231, 0.8);
}

.guide-links-section {
  background: #faf4ee;
  border-top: 1px solid #e8d8c8;
  padding: 32px 20px;
}

.guide-links-inner {
  max-width: 860px;
  margin: 0 auto;
}

.guide-links-section h2 {
  font-size: 16px;
  color: #7a3419;
  margin: 0 0 6px;
}

.guide-links-section p {
  font-size: 13px;
  color: #666;
  margin: 0 0 14px;
}

.guide-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.guide-links-list li a {
  font-size: 13px;
  color: #7a3419;
  text-decoration: none;
}

.guide-links-list li a:hover {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 18px 12px 4px;
  color: var(--muted);
}

.site-footer a {
  color: var(--brand-deep);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(178, 84, 45, 0.14);
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.badge.alt {
  background: rgba(227, 196, 111, 0.26);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .topbar,
  .topbar-inner,
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-inner {
    display: grid;
  }

  .menu-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 126px;
  }

  .page-shell {
    width: min(100% - 20px, 1280px);
    margin-top: 10px;
  }

  .hero-header,
  .workspace {
    border-radius: 22px;
  }

  .topbar {
    gap: 12px;
  }

  .menu-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-item > button,
  .single-link {
    width: 100%;
  }

  .dropdown {
    position: static;
    min-width: unset;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .menu-item:hover .dropdown,
  .menu-item:focus-within .dropdown {
    display: block;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .article-link-cards,
  .lk-grid {
    grid-template-columns: 1fr;
  }

  .lk-search-row {
    flex-direction: column;
  }

  .template-library-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .workstat-grid {
    grid-template-columns: 1fr;
  }

  .rate-adjust-grid,
  .rate-adjust-exception-list,
  .rate-adjust-selector-list {
    grid-template-columns: 1fr;
  }

  .vacation-calc-summary,
  .severance-grid,
  .severance-grid-compact,
  .severance-summary,
  .net-salary-cards,
  .exec-ret-cards,
  .exec-ret-segment-body {
    grid-template-columns: 1fr;
  }

  .exec-ret-seg-footer {
    justify-content: flex-start;
  }


  .board-row {
    grid-template-columns: 1fr;
  }

  .example-download {
    flex-direction: column;
    align-items: flex-start;
  }

  .example-download .secondary-button {
    width: 100%;
  }

  .guide-download {
    flex-direction: column;
  }

  .guide-download .secondary-button {
    width: 100%;
  }
}
