/* The listing reader (homepage, #reader): a newsprint classified, a red pencil, and the notes beside it. One plain face,
   nothing under 16 px, words on flat colour. */

/* The moving pencil leans past the sheet's edge; nothing of it may widen the page. */
.region--reader { overflow: hidden; overflow: clip visible; }
.rd { --pencil: #B9321F; --lead: #8E2414; --rule: #C9BEA6; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); scroll-margin-top: 22px; }
.rd__defs { position: absolute; }
.rd__defs symbol { overflow: visible; }
.rd [hidden] { display: none; }

/* ---- The clipping: cut out with scissors, pinned; its own column rule leaves a margin for the numbers ---------------- */
.ad { position: relative; padding: 22px 16px 78px 10px; }
.ad__back { position: absolute; inset: 0; filter: drop-shadow(2px 5px 6px rgba(43, 26, 17, .26)); }
.ad__paper { position: absolute; inset: 0; background: var(--newsprint); clip-path: polygon(2px 4px, 18% 1px, 43% 4px, 71% 0, calc(100% - 4px) 3px, 100% 26%, calc(100% - 3px) 52%, 100% 78%, calc(100% - 2px) calc(100% - 4px), 74% 100%, 52% calc(100% - 4px), 27% calc(100% - 1px), 1px calc(100% - 5px), 4px 71%, 0 46%, 3px 21%); }
.ad__pin { position: absolute; z-index: 2; top: -8px; left: 50%; width: 21px; height: 21px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #FBEBB9 0 9%, #E2B447 34%, #A87420 74%, #6E4A14 100%); box-shadow: 3px 5px 4px rgba(43, 26, 17, .42); }
.ad__head { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 18px; margin: 0; padding: 8px 2px 7px; border-top: 4px double var(--ink); border-bottom: 1px solid var(--ink); }
.ad__sec { font: 800 21px/1.3 var(--f-ui); }
.ad__tag { font: 700 17px/1.3 var(--f-ui); color: var(--lead); }
.ad__body { position: relative; margin-top: 4px; }
.ad__body::before { content: ""; position: absolute; left: 38px; top: 0; bottom: -6px; width: 1px; background: var(--rule); }
.ad__text { position: relative; padding: 15px 0 4px 46px; font: 400 18px/1.78 var(--f-ui); overflow-wrap: anywhere; }
.ad__l { margin: 0 0 .45em; }
.ad__l--h { margin-bottom: .55em; font: 800 22px/1.3 var(--f-ui); letter-spacing: -.005em; }
.ad__fold { display: block; width: 100%; min-height: 46px; margin: 2px 0 .6em; padding: 9px 0; border: 0; border-top: 1px dashed var(--ink-2); border-bottom: 1px dashed var(--ink-2); background: none; color: var(--ink-2); font: 600 17px/1.4 var(--f-ui); text-align: left; cursor: pointer; }
.ad__fold:hover { color: var(--ink); text-decoration: underline; }
.ad__next { position: absolute; left: 56px; right: 26px; bottom: 16px; height: 36px; opacity: .9; background: linear-gradient(var(--rule), var(--rule)) 0 0 / 64px 1px no-repeat, linear-gradient(var(--rule), var(--rule)) 0 14px / 46% 6px no-repeat, linear-gradient(var(--rule), var(--rule)) 0 29px / 78% 6px no-repeat; }
.ad__in { position: relative; display: block; width: 100%; min-height: 280px; margin: 0; padding: 15px 0 8px 46px; border: 0; border-radius: 0; resize: none; background: transparent; color: var(--ink); font: 400 18px/1.78 var(--f-ui); }
.ad__in::placeholder { color: var(--ink-2); opacity: 1; }
.ad__in:focus { outline: none; }
.ad__in:focus-visible { outline: 3px solid var(--sky); outline-offset: 6px; }

/* ---- The marks: links over the exact words. Without the script each line of words carries its own drawn stroke -------- */
.mk { color: inherit; text-decoration: none; padding: 10px 0; }
.mk:hover { text-decoration: none; }
.mk:focus-visible { outline-offset: 2px; }
.mk__t { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 6' preserveAspectRatio='none'%3E%3Cpath d='M1 3.4C30 1.8 62 4.5 96 2.9S162 2 199 3.7' fill='none' stroke='%23B9321F' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 100% / 100% 6px no-repeat; }
.mk--w .mk__t, .mk--f .mk__t { padding-bottom: 6px; background-size: 100% 9px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 9' preserveAspectRatio='none'%3E%3Cpath d='M1 2.4C30 1 62 3.4 96 2S162 1.4 199 2.7M2 6.9C34 5.4 70 8 104 6.5S168 6 198 7.2' fill='none' stroke='%23B9321F' stroke-width='2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"); }
.mk__n { display: inline-block; width: 28px; height: 28px; margin: -5px 5px -7px 0; vertical-align: middle; }
.mk__n .fig { width: 28px; height: 28px; }
.fig { display: block; width: 31px; height: 31px; overflow: visible; fill: none; stroke: var(--lead); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fig__o { stroke: var(--pencil); stroke-width: 1.4; }
.mk.on .mk__t { background-color: rgba(232, 166, 28, .42); }
/* With scripts the numbers never take room in the line, so nothing moves when the pencil draws them in the margin. */
.js .rd:not(.rd--ink) .mk__n { position: absolute; opacity: 0; }
.rd--ink .mk__t { background-image: none; }
.rd--ink .mk__n { position: absolute; width: 31px; height: 31px; margin: 0; }
.rd--ink .mk__n .fig { width: 31px; height: 31px; }
.rd--armed .ad__ink { visibility: hidden; }
.rd--armed .mk__n { opacity: 0; }
.rd--ink .mk__n::after, .nt__n::after { content: ""; position: absolute; inset: -7px; }
.rd--drawing .mk__n { opacity: 0; }
.rd--drawing .mk.is-drawn .mk__n { opacity: 1; transition: opacity .18s ease; }
.ad__ink { position: absolute; left: 0; top: 0; max-width: none; overflow: visible; pointer-events: none; mix-blend-mode: multiply; fill: none; stroke: var(--pencil); stroke-linecap: round; stroke-linejoin: round; }
.pk--a { stroke-width: 2.3; opacity: .88; }
.pk--b { stroke-width: 1.1; opacity: .55; }
.ad__tip { position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 0; visibility: hidden; pointer-events: none; }
.ad__tip svg { position: absolute; left: 0; top: -7.75px; max-width: none; transform: rotate(38deg); transform-origin: 0 50%; filter: drop-shadow(4px 6px 3px rgba(43, 26, 17, .3)); }
.rd--drawing .ad__tip { visibility: visible; }
.ad__pencil { position: absolute; z-index: 2; right: -6px; bottom: 16px; width: 190px; height: auto; transform: rotate(-7deg); filter: drop-shadow(2px 6px 4px rgba(43, 26, 17, .38)); }
.rd--drawing .ad__pencil { visibility: hidden; }

.rd__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 20px; min-height: 46px; }
.rd__tools:empty { display: none; }
.rd__link { min-height: 46px; padding: 6px 0; border: 0; background: none; color: var(--sky-deep); font: 600 18px/1.3 var(--f-ui); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rd__link:hover { text-decoration-thickness: 2px; }
.rd__safe, .rd__live, .rd__nojs { margin: 12px 0 0; font: 500 17px/1.5 var(--f-ui); }
.rd__live { font-weight: 700; }
.rd__live:empty, .js .rd__nojs { display: none; }
.nt--asks .tagbtn { display: none; }
.js .nt--asks .tagbtn { display: inline-flex; }

/* ---- The notes, as an editor leaves them: no boxes; the number is the way back to the words --------------------------- */
.nt h3 { margin: 0 0 16px; padding: 0 0 12px; font: 800 26px/1.15 var(--f-disp); letter-spacing: -.012em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 210 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5C36 2.2 74 6.6 112 3.8S178 2.6 208 5.2' fill='none' stroke='%23B9321F' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 210px 8px no-repeat; }
.nt + .nt { margin-top: 36px; }
.nt__list, .nt__plan { list-style: none; margin: 0; padding: 0; }
.nt__i { position: relative; margin: 0 0 15px; padding: 0 0 0 48px; font: 400 18px/1.5 var(--f-ui); scroll-margin: 90px; }
.nt__i p { margin: 0; text-wrap: pretty; }
.nt__i b { font-weight: 700; }
.nt__n { position: absolute; left: 0; top: -3px; width: 33px; height: 33px; }
.nt__n .fig { width: 33px; height: 33px; }
.nt__i:focus { outline: none; }
.nt__i:focus-visible { outline: 3px solid var(--sky); outline-offset: 5px; }
.nt__i.on, .nt__i:target { background: var(--newsprint); box-shadow: 0 0 0 8px var(--newsprint); }
.nt__i--plain { padding-left: 0; }
.nt__i--ask::before { content: ""; position: absolute; left: 5px; top: 3px; width: 22px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M2.4 15.600C5 11 7.600 6.600 9.800 2.200c2.200 4.600 4.800 9 8 13.200' fill='none' stroke='%23B9321F' stroke-width='2.200' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0 / 22px 20px no-repeat; }
.nt--asks .tagbtn { margin: 4px 0 0 48px; }
.nt__none, .nt__calm { margin: 0; font: 400 18px/1.5 var(--f-ui); }
.nt__calm { margin-top: 4px; font-size: 17px; color: var(--ink-2); }
.nt__msg { display: block; width: 100%; margin-top: 14px; padding: 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); font: 400 18px/1.5 var(--f-ui); }

/* The plan: the tag you take with you. */
.nt--plan { position: relative; align-self: start; padding: 24px 22px 18px 66px; background: var(--manila); clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 34px), 0 34px); }
.nt--plan::before { content: ""; position: absolute; left: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: radial-gradient(circle, var(--milk) 0 5.4px, var(--tomato-deep) 6px 11px, transparent 11.6px); }
.rd .nt--plan { margin-top: 0; }
.nt--plan h3 { margin-bottom: 12px; padding-bottom: 0; background: none; }
.nt__plan li { margin: 0 0 10px; font: 400 18px/1.45 var(--f-ui); text-wrap: pretty; }
.rd__watch { max-width: 60em; margin: 34px 0 0; font: 400 18px/1.6 var(--f-ui); color: var(--ink-2); }

@media (min-width: 560px) {
	.ad { padding: 26px 30px 88px 18px; }
	.ad__text, .ad__in { padding-left: 88px; font-size: 19px; line-height: 1.76; }
	.ad__body::before { left: 78px; }
	.ad__l--h { font-size: 25px; }
	.ad__next { left: 106px; right: 40px; bottom: 19px; }
	.mk__n { position: absolute; left: 43px; width: 31px; height: 31px; margin: 0; }
	.mk__n .fig { width: 31px; height: 31px; }
	.mk:nth-of-type(even) .mk__n { left: 8px; }
	.ad__pencil { width: 250px; right: -18px; bottom: 24px; }
	.nt__i, .nt__none, .nt__plan li { font-size: 19px; }
}
@media (min-width: 1000px) {
	.rd { grid-template-columns: minmax(0, min(530px, 50%)) minmax(0, 1fr); grid-template-areas: "left notes" "plan notes"; grid-template-rows: auto 1fr; gap: 32px clamp(38px, 4.2vw, 58px); }
	.rd__left { grid-area: left; }
	.rd__notes { grid-area: notes; padding-top: 6px; }
	.nt--plan { grid-area: plan; }
	.nt h3 { font-size: 30px; }
}
/* Where the screen is tall enough the sheet stays beside the notes while they are read; the plan comes at their end. (Both
   share one cell; the sheet's margin, the plan's own height, is where it stops.) */
@media (min-width: 1000px) and (min-height: 780px) {
	.js .rd:not(.rd--tall) .rd__left { grid-area: 1 / 1 / 3 / 2; align-self: start; position: sticky; top: 22px; margin-bottom: calc(var(--plan, 294px) + 32px); }
	.js .rd:not(.rd--tall) .nt--plan { grid-area: 1 / 1 / 3 / 2; align-self: end; }
}
@media print { .ad__pencil, .rd__tools, .rd__live { display: none; } }
