/* Shared editorial layout for the welfare directory and its 17 linked pages. */
.kuru-welfare-page .entry-title { font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.65; text-wrap: pretty; background: var(--navy); color: var(--gold-soft); padding: 26px 28px; border-radius: 12px; margin-top: 0; margin-bottom: 18px; }
.kuru-welfare-page .entry-title::after { content: ''; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 18px; }
.kuru-welfare-page .entry-title.welfare-title-fit { white-space: nowrap; font-size: var(--welfare-title-size, clamp(1.35rem, 2.2vw, 1.65rem)); }
.kuru-welfare-page .post-meta { margin-bottom: 26px; }
.kuru-welfare-page .entry-content { overflow: visible; }
.kuru-welfare-page .col-center { min-width: 0; }
.welfare-notice { max-width: 70ch; margin-inline: auto; font-size: 1.0625rem; line-height: 1.9; color: var(--ink); }
.welfare-notice p { margin: 0 0 1em; }
.welfare-intro { padding-bottom: 12px; }
.welfare-intro strong { font-weight: 600; color: var(--navy); }
.welfare-notice .welfare-purpose { background: #fff7e3; padding: 20px 22px; margin-top: 22px; }
.welfare-original-heading { font-weight: 600; color: var(--navy); }
.welfare-section { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 18px; }
.entry-content .welfare-section h2 { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 12px; font-family: 'Prompt', 'IBM Plex Sans Thai', sans-serif; font-size: 1.2rem; font-weight: 600; line-height: 1.6; margin: 0 0 18px; background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 10px; }
.welfare-number { display: inline-flex; justify-content: center; align-items: center; min-width: 36px; min-height: 36px; padding: 2px 8px; background: var(--gold); color: var(--navy); border-radius: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-content .welfare-documents { margin: 14px 0 22px; padding: 0; list-style: none; }
.welfare-documents li { position: relative; padding: 14px 18px 14px 36px; border-bottom: 1px solid var(--line); }
.welfare-documents li:nth-child(odd) { background: var(--blue-soft); }
.welfare-documents li::before { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); left: 16px; top: 28px; }
.welfare-documents li:last-child { border-bottom: 0; }
.welfare-documents li::marker { color: var(--navy); }
.welfare-documents.preserve-markers li { padding-left: 18px; }
.welfare-documents.preserve-markers li::before { display: none; }
.welfare-benefits li:nth-child(2) { background: #fff7e3; }
.welfare-money { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.entry-content .welfare-section .welfare-heading-plain { display: block; }
.entry-content .welfare-subclause h3 { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 12px; align-items: center; font-size: 1.08rem; line-height: 1.7; margin: 22px 0 14px; padding: 12px 16px; background: var(--blue-soft); }
.welfare-subclause .welfare-number { background: #fff; color: var(--navy); }
.welfare-files { display: grid; gap: 10px; }
.entry-content a.welfare-file { position: relative; display: block; padding: 16px 44px 16px 18px; color: var(--navy); background: var(--blue-soft); text-decoration: none; line-height: 1.75; font-weight: 500; overflow-wrap: anywhere; }
.entry-content a.welfare-file::after { content: ''; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2b5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.entry-content a.welfare-file:hover { background: #fff0c7; color: var(--navy); }
.welfare-file:focus-visible, .welfare-table-scroll:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.entry-content .welfare-menu { list-style: none; margin: 24px 0 0; padding: 0; }
.welfare-menu li { border-bottom: 1px solid var(--line); }
.welfare-menu li:nth-child(even) a.welfare-file { background: #fff; }
.welfare-menu li:nth-child(even) a.welfare-file:hover { background: #fff0c7; }
.welfare-directory > p { color: var(--navy); font-size: 1.0625rem; }
.welfare-table-scroll { overflow-x: auto; max-width: 100%; scrollbar-color: var(--navy) var(--blue-soft); scrollbar-width: thin; }
.entry-content table.welfare-payments { min-width: 520px; margin: 0; font-size: 1rem; line-height: 1.8; }
.entry-content .welfare-payments th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; }
.welfare-payments tbody tr:nth-child(odd) { background: var(--blue-soft); }
.welfare-payments th:first-child, .welfare-payments td:first-child { width: 42px; text-align: center; }
.welfare-payments th:last-child, .welfare-payments td:last-child { width: 112px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
  .kuru-welfare-page .entry-title { padding: 20px 18px; }
  .welfare-notice { font-size: 1rem; line-height: 1.9; }
  .welfare-notice .welfare-purpose { padding: 16px; }
  .entry-content .welfare-section h2 { gap: 10px; font-size: 1.1rem; padding: 12px; }
  .welfare-number { min-height: 32px; }
  .welfare-section { padding-top: 22px; }
}
