/* Date and law pages (/notice/<slug>, /notices, /on, /on/<date>; worker/notice-page.ts), step 2.6. They use the place
   pages' stylesheet (direction A: white page, black sheet, numbered sections) and add only what a notice or a date
   needs: records with their figures, old to new lines, the lists. Phone first. Red and green mark a cost going up or
   down, as on the place pages; a reading (the rand, a dam) is never coloured. */
.nt h1.nt-long { font-size: clamp(1.5rem, 3.6vw, 2.5rem); line-height: 1.08; letter-spacing: -.03em; }
.nt code { font: 500 max(.75rem, .78em)/1.3 var(--mono); overflow-wrap: anywhere; }
.nt-intro { margin: 6px 0 10px !important; max-width: 44em; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }

/* A record and the figures the document set for it */
.nt-recs { display: grid; }
.nt-rec { padding: 13px 0; border-top: 1px solid var(--rule); min-width: 0; scroll-margin-top: 84px; }
.nt-rec:target { margin: 0 -10px; padding: 13px 10px; background: color-mix(in srgb, var(--accent) 9%, var(--bg)); border-top-color: var(--accent); }
.nt-rec-l { font-weight: 620; font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.nt-rec-l span { display: block; margin-top: 1px; font-weight: 400; font-size: .82rem; letter-spacing: 0; color: var(--ink-3); }
.nt-figs, .nt-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.nt-figs li, .nt-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--rule); }
.nt-figs li:first-child, .nt-lines li:first-child { border-top: 0; }
.nt-fig-n, .nt-ln-n { font-size: .9rem; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
.nt-ln-n a { margin-left: 4px; font-size: .8rem; }
.nt-fig-v { font: 620 1.12rem/1.2 var(--sans); letter-spacing: -.02em; text-align: right; white-space: nowrap; }
.nt-fig-v small { font: 500 .8125rem/1.2 var(--sans); letter-spacing: 0; color: var(--ink-3); white-space: normal; }
.nt-fig-m { grid-column: 1 / -1; font-size: .76rem; line-height: 1.4; color: var(--ink-3); }
.nt-fig-m a, .nt-rec-id a, .nt-links a { color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nt-lines .pl-move { font-size: 1.02rem; text-align: right; white-space: nowrap; }
.nt-rec-id { margin-top: 6px !important; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
.nt-rec-id code { color: var(--ink-2); }

/* Parts of a long document, and the change dates either side of a date */
.nt-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 12px 0; padding: 9px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font-size: .86rem; }
.nt-pager > :last-child { text-align: right; }
.nt-pager span { color: var(--ink-3); font: 500 .75rem/1.3 var(--mono); text-transform: uppercase; }
.nt-pager a { font-weight: 600; }
.pl-side .nt-pager { margin-top: 14px; border-top: 0; }

/* The document: our copy, the source, search */
.nt-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px !important; font-size: .95rem; font-weight: 600; }
.nt-links span { font-weight: 400; color: var(--ink-3); }
/* Check it yourself: the fingerprint of the file the link gives, in full, and how to work it out (worker/notice-page.ts checkBox). */
.nt-check { margin-top: 16px; max-width: 46rem; padding: 16px 18px 14px; border: 1px solid var(--ink); border-radius: var(--r-sm); background: var(--surface); }
.nt-check-h { margin: 0 0 10px !important; font: 500 .75rem/1.3 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); }
.nt-print { display: grid; gap: 4px; margin: 0 0 10px !important; font-size: .8125rem; color: var(--ink-3); }
.nt-print span { font: 500 .75rem/1.3 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.nt-print code { padding: 8px 10px; background: var(--core); color: var(--on-core); border-radius: 4px; font: 400 .75rem/1.55 var(--mono); overflow-wrap: anywhere; user-select: all; }
.nt-check ol { margin: 12px 0 0; padding-left: 1.3em; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.nt-check ol li { margin: 0 0 6px; }
.nt-check ol code { font-size: .8rem; overflow-wrap: anywhere; }
.nt-check-n { margin: 10px 0 0 !important; font-size: .82rem; line-height: 1.45; color: var(--ink-3); }
.nt-check-n a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.nt-cited { margin-top: 8px; }
.nt-cited li { grid-template-columns: minmax(0, 1fr); }
.nt-cited li span { text-align: left; }
.nt .pl-gaps li a { font-weight: 600; }
.nt .pl-gaps li span:first-child:not(:last-child) { color: inherit; font-size: inherit; text-align: left; }

/* A date: figures grouped by the notice that set them */
.nt-grp { border-top: 1px solid var(--rule); }
.nt-grp summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; min-height: 48px; padding: 8px 0; cursor: pointer; list-style: none; }
.nt-grp summary::-webkit-details-marker { display: none; }
.nt-grp summary::after { content: '+'; grid-row: 1 / span 2; grid-column: 2; font: 500 1.2rem/1 var(--mono); color: var(--accent-ink); }
.nt-grp[open] summary::after { content: '−'; }
.nt-grp-t { font-weight: 620; font-size: .98rem; line-height: 1.3; }
.nt-grp-c { grid-column: 1; font: 500 .75rem/1.4 var(--mono); text-transform: uppercase; color: var(--ink-3); }
.nt-grp > .nt-lines { margin-top: 0; padding-top: 2px; border-top: 1px solid var(--rule); }
.nt-grp > .pl-src { margin: 4px 0 12px; }

/* The lists: every notice, the notices of a large group */
.nt-ix { list-style: none; margin: 0; padding: 0; display: grid; }
.nt-ix li { display: grid; gap: 1px; padding: 10px 0; border-top: 1px solid var(--rule); min-width: 0; }
.nt-ix li[hidden] { display: none; }
.nt-ix a { font-weight: 620; font-size: .98rem; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.nt-ix a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nt-ix-t { font-size: .86rem; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-ix-m { font: 500 .75rem/1.5 var(--mono); text-transform: uppercase; color: var(--ink-3); }

/* The calendar */
.nt-cal li > span:last-child { min-width: 0; }
.nt-cal b a { text-decoration: none; }
.nt-cal b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nt-year { margin: 18px 0 6px !important; font: 500 .75rem/1 var(--mono); color: var(--accent-ink); }
.nt-days { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-days a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 9px; border: 1px solid var(--rule-2); border-radius: 2px; font: 500 .75rem/1 var(--mono); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nt-days a:hover, .nt-days a:focus-visible { border-color: var(--ink); color: var(--ink); }
.nt-jump { margin-top: 14px; }
.nt-jump label { display: block; margin-bottom: 6px; font: 500 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.nt-jump div { display: flex; gap: 8px; }
.nt-jump input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 10px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--surface); color: var(--ink); font: 400 .95rem var(--sans); }
.nt-jump button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--ink); color: var(--bg); font: 600 .92rem var(--sans); cursor: pointer; }

@media (min-width: 980px) {
  .nt-recs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
  .nt-ix { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .nt-ix.nt-ix-s { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nt-grp[open] > .nt-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .nt-grp[open] > .nt-lines li:nth-child(2) { border-top: 0; }
  .nt .pl-sec .pl-gaps { max-width: none; }
}
/* On the wide sheet the lists and records run three across (the small list four). */
@media (min-width: 1080px) {
  .nt-recs, .nt-ix { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col); }
  .nt-ix.nt-ix-s { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nt-grp[open] > .nt-lines { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col); }
  .nt-grp[open] > .nt-lines li:nth-child(3) { border-top: 0; }
}
.nt-ix-h { font-weight: 600; color: var(--ink); } /* a week of dam reports as one row (site review L-039) */
.nt-ix-t a { font-weight: 500; font-size: inherit; }
/* /notices folded by year (site review F-050) */
.nt-yr { border-top: 1px solid var(--rule); }
.nt-yr > summary { cursor: pointer; min-height: 44px; display: list-item; padding: 10px 0; font-size: 1.05rem; }
.nt-yr > summary span { color: var(--ink-3); font-size: .86rem; margin-left: 6px; }
