/* /key-tax-dates-2026-27 — designed page. A wall planner of the tax year (months down, days across), then the
   dates as a dated agenda, the year-end deadlines on a twelve-month ruler, and the rolling VAT and payroll dates. */
.dz-key-tax-dates-2026-27 { --tint: #f5f4ef; --cell: #f1f0ec; --wk: #e2e0d8; --pale: #e3f19a; }
.dz-key-tax-dates-2026-27 p { margin: 0 0 12px; }
.dz-key-tax-dates-2026-27 p:last-child { margin-bottom: 0; }
.dz-key-tax-dates-2026-27 .k-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.dz-key-tax-dates-2026-27 .k-btns .btn { margin: 0; }

/* Top: headline beside the note, then the planner */
.dz-key-tax-dates-2026-27 .k-top { padding: 56px 0 64px; }
.dz-key-tax-dates-2026-27 .k-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 64px; align-items: end; margin-bottom: 40px; }
.dz-key-tax-dates-2026-27 .k-head h1 { margin: 0; }
.dz-key-tax-dates-2026-27 .k-head-side { border-left: 6px solid var(--lime); padding-left: 24px; }
.dz-key-tax-dates-2026-27 .k-head-side .lead { color: var(--black); font-weight: 700; }
.dz-key-tax-dates-2026-27 .k-head-side a { color: var(--black); }

.dz-key-tax-dates-2026-27 .k-plan-wrap { border: 2px solid var(--black); border-radius: var(--radius); padding: 18px 18px 16px; }
.dz-key-tax-dates-2026-27 .k-plan { display: grid; grid-template-columns: 82px repeat(31, minmax(0, 1fr)); grid-auto-rows: 29px; gap: 3px; }
.dz-key-tax-dates-2026-27 .k-plan > * { grid-row: var(--r); grid-column: var(--c); }
.dz-key-tax-dates-2026-27 .k-dn { display: grid; place-items: center; font-size: .78rem; font-weight: 900; color: var(--grey); }
.dz-key-tax-dates-2026-27 .k-mn { display: flex; align-items: center; font-size: .88rem; font-weight: 900; color: var(--black); white-space: nowrap; }
.dz-key-tax-dates-2026-27 .k-mn .ls { display: none; }
.dz-key-tax-dates-2026-27 .k-c { background: var(--cell); border-radius: 3px; }
.dz-key-tax-dates-2026-27 .k-c.we { background: var(--wk); }
.dz-key-tax-dates-2026-27 .k-c.x { background: transparent; }
.dz-key-tax-dates-2026-27 .k-c.nx { background: repeating-linear-gradient(135deg, var(--cell) 0 4px, #fff 4px 8px); }
.dz-key-tax-dates-2026-27 a.k-c { display: grid; place-items: center; font-size: .8rem; font-weight: 900; color: var(--black); text-decoration: none; }
.dz-key-tax-dates-2026-27 .ev-sa { background: var(--lime) !important; }
.dz-key-tax-dates-2026-27 .ev-pay { background: var(--black) !important; color: var(--white) !important; }
.dz-key-tax-dates-2026-27 .ev-paye { background: var(--pale) !important; }
.dz-key-tax-dates-2026-27 .ev-mtd { background: var(--lime) !important; box-shadow: inset 0 0 0 3px var(--black); }
.dz-key-tax-dates-2026-27 .ev-end { background: var(--white) !important; box-shadow: inset 0 -5px 0 var(--black), inset 0 0 0 1px var(--black); }
.dz-key-tax-dates-2026-27 .ev-q { background: var(--white) !important; box-shadow: inset 0 0 0 2px var(--black); }
.dz-key-tax-dates-2026-27 a.k-c:hover { transform: scale(1.18); position: relative; z-index: 1; }
.dz-key-tax-dates-2026-27 .k-c.is-today { outline: 3px solid var(--black); outline-offset: 1px; position: relative; z-index: 2; }
.dz-key-tax-dates-2026-27 .k-key { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; }
.dz-key-tax-dates-2026-27 .k-key li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 700; color: var(--black); }
.dz-key-tax-dates-2026-27 .k-key i { width: 22px; height: 22px; border-radius: 3px; flex: none; }
.dz-key-tax-dates-2026-27 .k-key i.nx { background: repeating-linear-gradient(135deg, var(--cell) 0 4px, #fff 4px 8px); box-shadow: inset 0 0 0 1px var(--line); }

/* Agenda */
.dz-key-tax-dates-2026-27 .k-fixed { background: var(--tint); padding: 72px 0 80px; }
.dz-key-tax-dates-2026-27 .k-fixed h2 { margin-bottom: 28px; }
.dz-key-tax-dates-2026-27 .k-agenda { list-style: none; margin: 0; padding: 0; }
.dz-key-tax-dates-2026-27 .k-month { border-top: 4px solid var(--black); padding: 12px 0 0; margin-top: 16px; }
.dz-key-tax-dates-2026-27 .k-month:first-child { margin-top: 0; }
.dz-key-tax-dates-2026-27 .k-row { position: relative; display: grid; grid-template-columns: 130px 200px minmax(0, 1fr) 250px; gap: 4px 28px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #cfd6a8; scroll-margin-top: 110px; }
.dz-key-tax-dates-2026-27 .k-row:target { background: var(--white); box-shadow: -14px 0 0 var(--white), 14px 0 0 var(--white); }
.dz-key-tax-dates-2026-27 .k-anchor { position: absolute; top: -110px; }
.dz-key-tax-dates-2026-27 .k-row time { display: flex; align-items: baseline; gap: 10px; }
.dz-key-tax-dates-2026-27 .k-row time b { font-family: "Anton", "Arial Narrow", sans-serif; font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--black); min-width: 1.3em; }
.dz-key-tax-dates-2026-27 .k-row time span { font-size: .9rem; font-weight: 700; color: var(--grey); }
.dz-key-tax-dates-2026-27 .k-row h4 { margin: 0; }
.dz-key-tax-dates-2026-27 .k-row p { margin: 0; }
.dz-key-tax-dates-2026-27 .k-row > a { font-weight: 900; color: var(--black); text-decoration: underline; text-decoration-color: var(--black); text-underline-offset: .2em; }
.dz-key-tax-dates-2026-27 .k-row.is-past time b { color: #a3a89a; }

/* Year end ruler */
.dz-key-tax-dates-2026-27 .k-ye { background: var(--black); color: #e9e9e2; padding: 72px 0 80px; }
.dz-key-tax-dates-2026-27 .k-ye h2 { color: var(--white); }
.dz-key-tax-dates-2026-27 .k-ye-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; }
.dz-key-tax-dates-2026-27 .k-ye-head p { margin: 0; }
.dz-key-tax-dates-2026-27 .k-ruler { margin-top: 48px; }
.dz-key-tax-dates-2026-27 .k-ticks { position: relative; height: 64px; margin: 0 40px 0 34px; border-bottom: 3px solid #5a5a54; }
.dz-key-tax-dates-2026-27 .k-ticks span { position: absolute; left: var(--at); bottom: -9px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 900; color: #b8b8b0; font-size: .9rem; }
.dz-key-tax-dates-2026-27 .k-ticks span::after { content: ""; width: 15px; height: 15px; border-radius: 50%; background: #5a5a54; }
.dz-key-tax-dates-2026-27 .k-ticks span.on { color: var(--white); }
.dz-key-tax-dates-2026-27 .k-ticks span.on::after { background: var(--lime); width: 22px; height: 22px; margin-bottom: -3px; }
.dz-key-tax-dates-2026-27 .k-ticks em { font-style: normal; }
.dz-key-tax-dates-2026-27 .k-ticks i { display: none; font-style: normal; }
.dz-key-tax-dates-2026-27 .k-pins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: 40px; }
.dz-key-tax-dates-2026-27 .k-pin, .dz-key-tax-dates-2026-27 .k-cs { border-top: 5px solid var(--lime); padding-top: 16px; }
.dz-key-tax-dates-2026-27 .k-pin b, .dz-key-tax-dates-2026-27 .k-cs b { display: block; color: var(--white); font-weight: 900; margin-bottom: 6px; }
.dz-key-tax-dates-2026-27 .k-ye a { color: var(--white); font-weight: 900; text-decoration: underline; text-underline-offset: .2em; }
.dz-key-tax-dates-2026-27 .k-cs { margin-top: 40px; border-top-color: #5a5a54; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 6px 40px; align-items: baseline; }
.dz-key-tax-dates-2026-27 .k-cs b { margin: 0; }
.dz-key-tax-dates-2026-27 .k-cs p { margin: 0; }

/* VAT and payroll, side by side */
.dz-key-tax-dates-2026-27 .k-every { padding: 72px 0; }
.dz-key-tax-dates-2026-27 .k-every .inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 72px; }
.dz-key-tax-dates-2026-27 .k-col { scroll-margin-top: 110px; }
.dz-key-tax-dates-2026-27 .k-col dl { margin: 22px 0 18px; }
.dz-key-tax-dates-2026-27 .k-col dl > div { border-top: 1px solid var(--line); padding: 16px 0; }
.dz-key-tax-dates-2026-27 .k-col dt { font-weight: 900; color: var(--black); margin-bottom: 4px; }
.dz-key-tax-dates-2026-27 .k-col dd { margin: 0; }
.dz-key-tax-dates-2026-27 .k-col dd a { display: block; margin-top: 6px; font-weight: 900; color: var(--black); text-decoration: underline; text-underline-offset: .2em; }

/* Reading */
.dz-key-tax-dates-2026-27 .k-read { padding: 0 0 72px; }
.dz-key-tax-dates-2026-27 .k-read h2 { border-top: 4px solid var(--black); padding-top: 40px; }
.dz-key-tax-dates-2026-27 .k-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 32px; }
.dz-key-tax-dates-2026-27 .k-links a { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; background: var(--cell); border-radius: var(--radius); text-decoration: none; border-bottom: 4px solid var(--lime); transition: background .15s; }
.dz-key-tax-dates-2026-27 .k-links a:hover { background: var(--tint); }
.dz-key-tax-dates-2026-27 .k-links b { color: var(--black); font-weight: 900; }
.dz-key-tax-dates-2026-27 .k-src { color: var(--grey); }

/* Close */
.dz-key-tax-dates-2026-27 .k-close { padding: 0 0 72px; }
.dz-key-tax-dates-2026-27 .k-close .inner { border: 2px solid var(--black); border-radius: var(--radius); border-left-width: 14px; border-left-color: var(--lime); padding-top: 40px; padding-bottom: 40px; max-width: calc(var(--max) - 48px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px 64px; align-items: center; }
.dz-key-tax-dates-2026-27 .k-close-side p { margin-top: 18px; color: var(--black); }
.dz-key-tax-dates-2026-27 .k-close-side a:not(.btn) { color: var(--black); }

@media (max-width: 1100px) {
  .dz-key-tax-dates-2026-27 .k-row { grid-template-columns: 120px minmax(0, 1fr); }
  .dz-key-tax-dates-2026-27 .k-row h4, .dz-key-tax-dates-2026-27 .k-row p, .dz-key-tax-dates-2026-27 .k-row > a { grid-column: 2; }
  .dz-key-tax-dates-2026-27 .k-row time { grid-row: 1 / span 3; }
  .dz-key-tax-dates-2026-27 .k-plan a.k-c { font-size: .68rem; }
  .dz-key-tax-dates-2026-27 .k-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .dz-key-tax-dates-2026-27 .k-top { padding-top: 36px; }
  .dz-key-tax-dates-2026-27 .k-head, .dz-key-tax-dates-2026-27 .k-every .inner, .dz-key-tax-dates-2026-27 .k-close .inner { grid-template-columns: 1fr; }
  .dz-key-tax-dates-2026-27 .k-close .inner { margin: 0 16px; padding: 28px 20px; border-left-width: 10px; }
  /* The planner turns on its side: months across, days down */
  .dz-key-tax-dates-2026-27 .k-plan-wrap { padding: 12px 10px; }
  .dz-key-tax-dates-2026-27 .k-plan { grid-template-columns: 24px repeat(16, minmax(0, 1fr)); grid-auto-rows: 15px; gap: 2px; }
  .dz-key-tax-dates-2026-27 .k-plan > * { grid-row: var(--c); grid-column: var(--r); }
  .dz-key-tax-dates-2026-27 .k-mn { justify-content: center; font-size: .8rem; }
  .dz-key-tax-dates-2026-27 .k-mn .lf { display: none; }
  .dz-key-tax-dates-2026-27 .k-mn .ls { display: inline; }
  .dz-key-tax-dates-2026-27 .k-dn { font-size: .66rem; }
  .dz-key-tax-dates-2026-27 .k-plan a.k-c { font-size: 0; }
  .dz-key-tax-dates-2026-27 a.k-c:hover { transform: none; }
  .dz-key-tax-dates-2026-27 .k-plan { grid-template-rows: 20px; }
  .dz-key-tax-dates-2026-27 .k-key { gap: 8px 18px; }
  .dz-key-tax-dates-2026-27 .k-key li { font-size: .86rem; }
  .dz-key-tax-dates-2026-27 .k-key i { width: 18px; height: 18px; }
  .dz-key-tax-dates-2026-27 .k-fixed, .dz-key-tax-dates-2026-27 .k-ye { padding: 52px 0 56px; }
  .dz-key-tax-dates-2026-27 .k-row { grid-template-columns: 74px minmax(0, 1fr); gap: 4px 14px; }
  .dz-key-tax-dates-2026-27 .k-row time { flex-direction: column; gap: 4px; }
  .dz-key-tax-dates-2026-27 .k-row time span { font-size: .78rem; }
  .dz-key-tax-dates-2026-27 .k-ticks { margin: 0 12px 0 8px; height: 40px; }
  .dz-key-tax-dates-2026-27 .k-ticks em { display: none; }
  .dz-key-tax-dates-2026-27 .k-ticks i { display: inline; }
  .dz-key-tax-dates-2026-27 .k-ticks span { font-size: .78rem; gap: 6px; }
  .dz-key-tax-dates-2026-27 .k-ticks span::after { width: 10px; height: 10px; }
  .dz-key-tax-dates-2026-27 .k-ticks span.on::after { width: 16px; height: 16px; }
  .dz-key-tax-dates-2026-27 .k-pins, .dz-key-tax-dates-2026-27 .k-cs { grid-template-columns: 1fr; }
  .dz-key-tax-dates-2026-27 .k-links { grid-template-columns: 1fr; }
  .dz-key-tax-dates-2026-27 .k-every { padding: 52px 0; }
}
