/* working_days_calculator — tool-specific design (calendar paper, Swiss red accent). Shared: nav, footer, sidebars, ad script only. */
body[data-tool="working_days_calculator"] {
  --wd-bg: #F7F6F2; --wd-card: #FFFFFF; --wd-ink: #16181D; --wd-ink2: #4A4F59; --wd-mute: #858B96; --wd-line: #E4E2DC; --wd-soft: #EFEDE7;
  --wd-red: #D52B1E; --wd-red-soft: #FBE3E1; --wd-amber: #B7791F; --wd-amber-soft: #FBF0DC; --wd-c: #6B7280; --wd-we: #ECEAE4; --wd-work: #16181D; --wd-in: #1F6FEB;
  --wd-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --wd-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  background: var(--wd-bg); color: var(--wd-ink); font-family: var(--wd-sans);
}
body[data-tool="working_days_calculator"] .dt-nav { background: var(--wd-bg); border-bottom: 1px solid var(--wd-line); }
body[data-tool="working_days_calculator"] .dt-nav .navbar-brand { color: var(--wd-ink); }
.dt-bare { display: block; width: 100%; flex: 1; }
.wdx { max-width: 1120px; margin: 0 auto; padding: 34px 20px 64px; }
.wd-hero h1 { font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; margin: 0; max-width: 22ch; }
.wd-hero h1::before { content: ""; display: block; width: 28px; height: 28px; margin-bottom: 16px; border-radius: 4px; background: var(--wd-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z'/%3E%3C/svg%3E") center/100% no-repeat; }
.wd-hero p { margin: 12px 0 0; font-size: 18px; line-height: 1.55; color: var(--wd-ink2); max-width: 64ch; }

.wd { margin-top: 26px; background: var(--wd-card); border: 1px solid var(--wd-line); border-radius: 16px; padding: 24px 28px 26px; }
.wd-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 24px; align-items: end; }
.wd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wd-field label, .wd-lab { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wd-mute); }
.wd select, .wd input[type="date"], .wd input[type="number"] { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 17px; font-weight: 500; color: var(--wd-ink); background: var(--wd-card); border: 1.5px solid var(--wd-line); border-radius: 10px; padding: 10px 12px; height: 46px; }
.wd select:focus, .wd input:focus { outline: none; border-color: var(--wd-ink); box-shadow: 0 0 0 3px rgba(213,43,30,.15); }
.wd-region select { font-size: 18px; font-weight: 600; }
.wd-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wd-week button, .wd-mode button, .wd-ybtn button { font: inherit; cursor: pointer; border: 1.5px solid var(--wd-line); background: var(--wd-card); color: var(--wd-ink2); border-radius: 8px; height: 46px; font-size: 14px; font-weight: 600; padding: 0 4px; }
.wd-week button[aria-pressed="true"] { background: var(--wd-ink); border-color: var(--wd-ink); color: #fff; }
.wd button:focus-visible, .wd summary:focus-visible, .wd input[type="checkbox"]:focus-visible, .wd input[type="radio"]:focus-visible { outline: 2px solid var(--wd-red); outline-offset: 2px; }
.wd-mode { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; background: var(--wd-soft); border-radius: 12px; max-width: 100%; }
.wd-mode button { border: 0; background: transparent; height: 38px; padding: 0 16px; border-radius: 9px; }
.wd-mode button[aria-pressed="true"] { background: var(--wd-card); color: var(--wd-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
body[data-mode="add"] .only-range, body:not([data-mode="add"]) .only-add { display: none; }
body[data-country]:not([data-country="CH"]) .only-ch { display: none; }

.wd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px 32px; margin-top: 18px; }
.wd-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.wd-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--wd-ink2); margin: 8px 0; cursor: pointer; }
.wd-chk input, .wd-opt input[type="radio"] { accent-color: var(--wd-red); width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.wd-hint { font-size: 13px; color: var(--wd-mute); margin: 2px 0 8px 25px; line-height: 1.45; }
.only-add .wd-hint { margin-left: 0; }
.wd-opt { margin-top: 14px; border-top: 1px dashed var(--wd-line); padding-top: 10px; }
.wd-opt summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 6px 0; }
.wd-opt fieldset { border: 0; padding: 0; margin: 8px 0 6px; }
.wd-opt legend { font-size: 14px; color: var(--wd-ink2); margin-bottom: 6px; padding: 0; }
.wd-opt fieldset label { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin: 6px 0; color: var(--wd-ink2); cursor: pointer; }

.wd-out { border-left: 1px solid var(--wd-line); padding-left: 32px; min-width: 0; }
.wd-res { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wd-res b { font-size: 76px; line-height: 1; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--wd-ink); }
body[data-mode="add"] .wd-res b { font-size: 40px; letter-spacing: -.02em; }
.wd-res span { font-size: 18px; color: var(--wd-ink2); font-weight: 500; }
.wd-sub { margin: 8px 0 0; color: var(--wd-ink2); font-size: 15px; }
.wd-err { margin: 8px 0 0; color: var(--wd-red); font-size: 14px; }
.wd-err:empty { display: none; }
.wd-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 18px; background: var(--wd-we); gap: 2px; }
.wd-bar span { display: block; min-width: 3px; }
.b-work, .k-work { background: var(--wd-work); } .b-half, .k-half { background: repeating-linear-gradient(135deg, var(--wd-red) 0 3px, #fff 3px 6px); } .b-hol, .k-hol { background: var(--wd-red); } .b-we, .k-we { background: #D3D0C8; }
.wd-keys { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 0 0; font-size: 14px; color: var(--wd-ink2); }
.wd-keys i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.wd-keys b { color: var(--wd-ink); font-variant-numeric: tabular-nums; }
.wd-list { margin-top: 16px; }
.wd-hl { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; border-top: 1px solid var(--wd-line); }
.wd-hl li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--wd-soft); font-size: 15px; }
.wd-hl time { font-family: var(--wd-mono); font-size: 13px; color: var(--wd-ink2); white-space: nowrap; }
.wd-hl em { font-style: normal; font-size: 12px; color: var(--wd-red); }
.wd-hl .more { display: block; color: var(--wd-mute); }
.wd-none { color: var(--wd-mute); font-size: 15px; }
.tag { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.t-L { background: var(--wd-red-soft); color: #A11F14; } .t-K { background: var(--wd-amber-soft); color: #8A5A12; } .t-C { background: var(--wd-soft); color: var(--wd-c); }
.wd-link { margin-top: 14px; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--wd-ink2); text-decoration: underline; cursor: pointer; }

.wd-year { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--wd-line); }
.wd-yhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wd-yhead h2 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
.wd-ybtn { display: flex; gap: 4px; }
.wd-ybtn button { height: 36px; padding: 0 12px; font-variant-numeric: tabular-nums; }
.wd-ybtn button[aria-pressed="true"] { background: var(--wd-red); border-color: var(--wd-red); color: #fff; }
.wd-ycols { display: grid; grid-template-columns: minmax(0, 410px) minmax(0, 1fr); gap: 24px; margin-top: 16px; align-items: start; }
.wd-table { overflow-x: auto; border: 1px solid var(--wd-line); border-radius: 12px; background: var(--wd-card); }
.wd-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.wd-table th, .wd-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--wd-soft); }
.wd-table thead th { font-size: 11px; letter-spacing: .03em; overflow-wrap: anywhere; text-transform: uppercase; color: var(--wd-mute); font-weight: 600; border-bottom: 1px solid var(--wd-line); }
.wd-table tbody th { font-weight: 500; }
.wd-table tfoot th, .wd-table tfoot td { border-top: 1.5px solid var(--wd-ink); border-bottom: 0; font-weight: 700; }
.wd-table tr:last-child td, .wd-table tr:last-child th { border-bottom: 0; }
.wd-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--wd-ink2); }
.wd-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.wd-legend .hL { background: var(--wd-red); } .wd-legend .hK { background: var(--wd-amber); } .wd-legend .hC { background: #fff; border: 1.5px dashed var(--wd-c); box-sizing: border-box; } .wd-legend .half { background: repeating-linear-gradient(135deg, var(--wd-red) 0 3px, #fff 3px 6px); } .wd-legend .we { background: var(--wd-we); }
.wd-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px 16px; }
.wd-m h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; text-transform: capitalize; }
.wd-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.wd-g b { font-size: 10px; color: var(--wd-mute); text-align: center; font-weight: 500; }
.wd-g i { font-style: normal; font-size: 11px; text-align: center; line-height: 21px; border-radius: 4px; font-variant-numeric: tabular-nums; color: var(--wd-ink); }
.wd-g i.e { visibility: hidden; }
.wd-g i.out { opacity: .32; }
.wd-g i.we { background: var(--wd-we); color: var(--wd-mute); }
.wd-g i.hL { background: var(--wd-red); color: #fff; font-weight: 600; }
.wd-g i.hK { background: var(--wd-amber); color: #fff; font-weight: 600; }
.wd-g i.hC { box-shadow: inset 0 0 0 1.5px var(--wd-c); }
.wd-g i.half { background: repeating-linear-gradient(135deg, #F3B2AC 0 3px, #fff 3px 6px); font-weight: 600; }
.wd-g i.off { box-shadow: inset 0 0 0 1px #D3D0C8; color: var(--wd-mute); }
.wd-g i.we.hL, .wd-g i.we.hK { opacity: .55; }
.wd-year h3 { font-size: 18px; margin: 26px 0 10px; }
.wd-holt td small { display: block; color: var(--wd-mute); font-size: 12px; }
.wd-holt tr.nc td { color: var(--wd-mute); }
.wd-holt time { font-family: var(--wd-mono); font-size: 13px; white-space: nowrap; }
.wd-foot { display: flex; gap: 14px 20px; align-items: flex-start; flex-wrap: wrap; margin-top: 14px; }
.wd-btn { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1.5px solid var(--wd-ink); background: var(--wd-card); color: var(--wd-ink); border-radius: 9px; padding: 9px 14px; }
.wd-btn:hover { background: var(--wd-ink); color: #fff; }
.wd-src { flex: 1; min-width: 0; margin: 0; font-size: 12px; line-height: 1.5; color: var(--wd-mute); overflow-wrap: anywhere; }
.wd-src a { color: var(--wd-ink2); }

.wd-adwrap { margin: 40px 0 8px; }
.wd-article, .wd-faq, .wd-more { max-width: 760px; margin: 0 auto; }
.wd-article { margin-top: 48px; font-size: 17px; line-height: 1.75; color: var(--wd-ink2); }
.wd-article h2, .wd-faq h2, .wd-more h2 { font-size: 27px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--wd-ink); margin: 50px 0 12px; }
.wd-article h2:first-child { margin-top: 0; }
.wd-article p { margin: 0 0 14px; } .wd-article b { color: var(--wd-ink); } .wd-article a { color: var(--wd-ink); }
.wd-article ul { padding-left: 1.2em; } .wd-article li { margin: 6px 0; }
.wd-article .wd-table { margin: 14px 0 18px; }
.wd-eq { font-family: var(--wd-mono); font-size: 15px; background: var(--wd-card); border: 1px solid var(--wd-line); border-left: 4px solid var(--wd-red); border-radius: 6px; padding: 12px 14px; color: var(--wd-ink); }
.wd-srcs { font-size: 15px; overflow-wrap: anywhere; }
.wd-srcs small { color: var(--wd-mute); }
.wd-q { border-bottom: 1px solid var(--wd-line); }
.wd-q summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-size: 18px; font-weight: 600; }
.wd-q summary::-webkit-details-marker { display: none; }
.wd-q summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--wd-mute); }
.wd-q[open] summary::after { content: "\2212"; }
.wd-q p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--wd-ink2); }
.wd-more > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wd-more a { display: block; text-decoration: none; padding: 14px 16px; border: 1px solid var(--wd-line); border-radius: 12px; background: var(--wd-card); color: var(--wd-ink); }
.wd-more a:hover { border-color: var(--wd-ink); }
.wd-more b { display: block; font-size: 15px; } .wd-more span { display: block; font-size: 13px; color: var(--wd-mute); margin-top: 2px; }

@media (max-width: 900px) {
  .wd-top, .wd-grid, .wd-ycols { grid-template-columns: minmax(0, 1fr); }
  .wd-out { border-left: 0; padding-left: 0; border-top: 1px solid var(--wd-line); padding-top: 18px; }
}
@media (max-width: 640px) {
  .wdx { padding: 22px 14px 48px; }
  .wd-hero h1 { font-size: 32px; }
  .wd-hero p { font-size: 16px; }
  .wd { padding: 16px 14px 18px; border-radius: 14px; }
  .wd-mode { display: flex; }
  .wd-mode button { flex: 1; padding: 0 8px; font-size: 13px; height: auto; min-height: 38px; line-height: 1.25; }
  .wd-week button { font-size: 12px; height: 40px; }
  .wd-res b { font-size: 60px; }
  body[data-mode="add"] .wd-res b { font-size: 30px; }
  .wd-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wd-table th, .wd-table td { padding: 7px 9px; }
  .wd-article { font-size: 16px; }
  .wd-article h2, .wd-faq h2, .wd-more h2 { font-size: 23px; margin-top: 40px; }
  .wd-more > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wd-hero h1 { font-size: 27px; max-width: none; }
  .wd-hero h1::before { width: 22px; height: 22px; margin-bottom: 10px; }
  .wd-hero p { font-size: 15px; margin-top: 8px; }
  .wd { margin-top: 18px; }
  .wd-mode { margin-top: 16px; }
  .wd-chk { margin: 6px 0; }
}
