/* TaxReck Desk Notes: one note (an article page), on top of blocks.css, split.css and notes.css (the tags and dates).
   Class names start with nt-. Built 30 Sep 2026. Each note opens with the short answer and its key figures, then the
   sections, a worked example, questions, the GOV.UK sources and the calculator it pairs with. */

/* the still half carries the note's full title, so it is set smaller than a page headline */
.say > h1.long{font-size:clamp(21px,1.9vw,30px);letter-spacing:-.035em;line-height:1.1}
@media (max-width:1099px){ .say > h1.long{font-size:clamp(27px,7vw,42px);line-height:1.06} }

/* ---------- 01 the short answer ---------- */
.nt-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 18px}
.nt-meta .dn-meta{margin-top:0!important}
.nt-hero{margin:0 0 clamp(18px,2.2vw,28px)}
.nt-hero img{display:block;width:100%;height:clamp(230px,29vw,380px);object-fit:cover;border-radius:26px}
.nt-short{padding:clamp(20px,2.4vw,32px);border-radius:24px;background:var(--ink);color:#fff}
.nt-short b{display:block;margin-bottom:10px;color:var(--acc);font-size:12.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.nt-short p{margin:0!important;max-width:66ch;color:#fff;font-size:clamp(17px,1.5vw,20px);line-height:1.55}
.nt-figs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 clamp(16px,2vw,28px);margin:clamp(22px,2.6vw,32px) 0 0;padding:0;list-style:none}
.nt-figs li{padding:16px 0 0;border-top:2px solid var(--ink)}
.nt-figs b{display:block;color:var(--ink);font-size:clamp(22px,2.2vw,30px);font-weight:800;letter-spacing:-.04em;line-height:1.1}
.nt-figs span{display:block;margin-top:7px;color:var(--muted);font-size:13.5px;line-height:1.45}

/* ---------- the text ---------- */
.nt-body{max-width:72ch}
.nt-body > p{margin-top:14px!important;color:var(--graphite);font-size:16.5px;line-height:1.72}
.nt-body > p:first-child{margin-top:0!important}
.nt-body h3{margin:30px 0 0;color:var(--ink);font-size:clamp(18px,1.55vw,21px);font-weight:800;letter-spacing:-.025em;line-height:1.25}
.nt-body > ul,.nt-body > ol{margin:12px 0 0;padding:0;list-style:none}
.nt-body > ul > li,.nt-body > ol > li{position:relative;padding:7px 0 7px 24px;color:var(--graphite);font-size:16px;line-height:1.62}
.nt-body > ul > li::before{content:"";position:absolute;left:2px;top:17px;width:8px;height:8px;border-radius:50%;background:var(--acc)}
.nt-body > ol{counter-reset:nt}
.nt-body > ol > li{padding-left:34px}
.nt-body > ol > li::before{counter-increment:nt;content:counter(nt);position:absolute;left:0;top:9px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--ink);color:var(--acc);font-size:11.5px;font-weight:800}
.nt-body a,.nt-wide a{color:var(--acc-text);font-weight:700}
.nt-body strong{color:var(--ink)}

.nt-wide{margin-top:20px}
.nt-table{width:100%;border-collapse:collapse;font-size:15px}
.nt-table caption{padding:0 0 10px;color:var(--muted);font-size:13px;text-align:left}
.nt-table th{padding:10px 14px 10px 0;border-bottom:2px solid var(--ink);color:var(--ink);font-size:12.5px;font-weight:800;letter-spacing:.05em;text-align:left;text-transform:uppercase;vertical-align:bottom}
.nt-table td{padding:12px 14px 12px 0;border-bottom:1px solid var(--line);color:var(--graphite);line-height:1.5;vertical-align:top}
.nt-table td:first-child,.nt-table th[scope=row]{color:var(--ink);font-weight:800;text-transform:none;letter-spacing:0;font-size:15px;border-bottom:1px solid var(--line)}
.nt-table td:last-child,.nt-table th:last-child{padding-right:0}
.nt-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* a worked example: the figures in rows, the answer picked out */
.nt-ex{margin-top:24px;padding:clamp(20px,2.4vw,30px);border-radius:24px;background:var(--soft,#F4F6F9)}
.nt-ex-k{margin:0!important;color:var(--acc-text);font-size:12.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.nt-ex h3{margin:8px 0 0;color:var(--ink);font-size:clamp(18px,1.6vw,22px);font-weight:800;letter-spacing:-.025em;line-height:1.25}
.nt-ex > p{margin-top:10px!important;max-width:68ch;color:var(--graphite);font-size:15.5px;line-height:1.65}
.nt-rows{margin:16px 0 0;padding:0;list-style:none;border-top:2px solid var(--ink)}
.nt-rows li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:baseline;padding:11px 0;border-bottom:1px solid rgba(11,16,32,.1);color:var(--graphite);font-size:15px;line-height:1.45}
.nt-rows b{color:var(--ink);font-size:16.5px;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.nt-rows li.sum{margin-top:8px;padding:12px 14px;border:0;border-radius:12px;background:var(--ink);color:#fff;font-weight:700}
.nt-rows li.sum b{color:var(--acc)}
.nt-rows li.head{padding-top:18px;border-bottom:0;color:var(--ink);font-size:13px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.nt-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.4vw,18px);margin-top:16px}
.nt-two > div{padding:clamp(18px,2vw,24px);border-radius:18px;background:#fff}
.nt-two h4{margin:0;color:var(--ink);font-size:16px;font-weight:800;letter-spacing:-.02em}
.nt-two .nt-rows{margin-top:10px}

.nt-note{margin-top:20px!important;padding:16px 20px;border-left:4px solid var(--acc);border-radius:0 16px 16px 0;background:var(--acc-soft);color:var(--ink)!important;font-size:15.5px!important;line-height:1.6!important}
.nt-note b{font-weight:800}

/* ---------- questions, sources, what it pairs with ---------- */
.nt-src{margin:0;padding:0;list-style:none;counter-reset:src;max-width:72ch}
.nt-src li{position:relative;padding:12px 0 12px 38px;border-top:1px solid var(--line);color:var(--graphite);font-size:15px;line-height:1.5}
.nt-src li::before{counter-increment:src;content:counter(src);position:absolute;left:0;top:12px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--acc-soft);color:var(--acc-text);font-size:12px;font-weight:800}
.nt-src a{color:var(--ink);font-weight:700;text-decoration-color:var(--acc);text-decoration-thickness:2px;text-underline-offset:3px}
.nt-src a:hover{color:var(--acc-text)}
.nt-src small{display:block;margin-top:2px;color:var(--muted);font-size:12.5px;word-break:break-all}
.nt-checked{margin-top:16px!important;color:var(--muted);font-size:13.5px}
.nt-pair{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 24px;align-items:center;margin-top:clamp(24px,3vw,36px);padding:clamp(20px,2.4vw,30px);border-radius:24px;background:var(--ink);color:#fff}
.nt-pair small{display:block;color:var(--acc);font-size:12.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.nt-pair b{display:block;margin-top:6px;font-size:clamp(18px,1.7vw,23px);font-weight:800;letter-spacing:-.03em;line-height:1.2}
.nt-rel-h{margin:clamp(28px,3.4vw,40px) 0 0!important;color:var(--ink);font-size:17px;font-weight:800;letter-spacing:-.025em}
.nt-rel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,1.4vw,18px);margin-top:14px}

/* ---------- narrower screens ---------- */
@media (max-width:1000px){
  .nt-two,.nt-rel{grid-template-columns:1fr}
  .nt-pair{grid-template-columns:1fr}
}
@media (max-width:620px){
  .nt-figs{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
  .nt-hero img{border-radius:20px}
  .nt-table{font-size:14px}
  .nt-table td,.nt-table th{padding-right:10px}
  .nt-rows li{gap:10px}
}

/* the still half on a laptop about 900px tall: the note's title and its ten-line contents list leave no room for the
   summary as well, and the short answer beside it says the same thing */
@media (min-width:1100px) and (min-height:881px) and (max-height:960px){
  .lmid:has(h1.long) .lsub{display:none}
}

/* room between a table or a worked example and the text that follows it */
.nt-wide + .nt-body,.nt-ex + .nt-body{margin-top:24px}
